perf: Remove 64-bit alignment padding from perf_event_context
authorRichard Kennedy <richard@rsk.demon.co.uk>
Tue, 7 Jun 2011 15:33:38 +0000 (16:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 1 Jul 2011 09:06:32 +0000 (11:06 +0200)
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>
include/linux/perf_event.h

index e76a410..2f7b5d4 100644 (file)
@@ -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;
 };
 
 /*