Audit: rearrange audit_context to save 16 bytes per struct
pahole pointed out that on x86_64 struct audit_context can be rearrainged to save 16 bytes per struct. Since we have an audit_context per task this can acually be a pretty significant gain. Signed-off-by: Eric Paris <eparis@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
e08b061ec0
commit
44e51a1b78
1 changed files with 3 additions and 3 deletions
|
@ -168,12 +168,12 @@ struct audit_context {
|
||||||
int in_syscall; /* 1 if task is in a syscall */
|
int in_syscall; /* 1 if task is in a syscall */
|
||||||
enum audit_state state, current_state;
|
enum audit_state state, current_state;
|
||||||
unsigned int serial; /* serial number for record */
|
unsigned int serial; /* serial number for record */
|
||||||
struct timespec ctime; /* time of syscall entry */
|
|
||||||
int major; /* syscall number */
|
int major; /* syscall number */
|
||||||
|
struct timespec ctime; /* time of syscall entry */
|
||||||
unsigned long argv[4]; /* syscall arguments */
|
unsigned long argv[4]; /* syscall arguments */
|
||||||
int return_valid; /* return code is valid */
|
|
||||||
long return_code;/* syscall return code */
|
long return_code;/* syscall return code */
|
||||||
u64 prio;
|
u64 prio;
|
||||||
|
int return_valid; /* return code is valid */
|
||||||
int name_count;
|
int name_count;
|
||||||
struct audit_names names[AUDIT_NAMES];
|
struct audit_names names[AUDIT_NAMES];
|
||||||
char * filterkey; /* key for rule that triggered record */
|
char * filterkey; /* key for rule that triggered record */
|
||||||
|
@ -198,8 +198,8 @@ struct audit_context {
|
||||||
char target_comm[TASK_COMM_LEN];
|
char target_comm[TASK_COMM_LEN];
|
||||||
|
|
||||||
struct audit_tree_refs *trees, *first_trees;
|
struct audit_tree_refs *trees, *first_trees;
|
||||||
int tree_count;
|
|
||||||
struct list_head killed_trees;
|
struct list_head killed_trees;
|
||||||
|
int tree_count;
|
||||||
|
|
||||||
int type;
|
int type;
|
||||||
union {
|
union {
|
||||||
|
|
Loading…
Reference in a new issue