Skip to content

Commit

Permalink
perf: Remove 64-bit alignment padding from perf_event_context
Browse files Browse the repository at this point in the history
Reorder perf_event_context to remove 8 bytes of 64 bit alignment padding
shrinking its size to 192 bytes, allowing it to fit into a smaller slab
and use one fewer cache lines.

Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1307460819.1950.5.camel@castor.rsk
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Richard Kennedy authored and Ingo Molnar committed Jul 1, 2011
1 parent 4ec8363 commit 28009ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/perf_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -894,8 +894,8 @@ struct perf_event_context {
u64 parent_gen;
u64 generation;
int pin_count;
struct rcu_head rcu_head;
int nr_cgroups; /* cgroup events present */
struct rcu_head rcu_head;
};

/*
Expand Down

0 comments on commit 28009ce

Please sign in to comment.