summaryrefslogtreecommitdiff
path: root/include/linux/perf_event.h
diff options
context:
space:
mode:
authorRichard Kennedy <richard@rsk.demon.co.uk>2011-06-07 19:33:38 +0400
committerIngo Molnar <mingo@elte.hu>2011-07-01 13:06:32 +0400
commit28009ce4a8130af7260a9271901b4419834ad152 (patch)
treed594a4cb1178fa634ce0594cc2f6ff5c284064a7 /include/linux/perf_event.h
parent4ec8363dfc1451f8c8f86825731fe712798ada02 (diff)
downloadlinux-28009ce4a8130af7260a9271901b4419834ad152.tar.xz
perf: Remove 64-bit alignment padding from perf_event_context
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>
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r--include/linux/perf_event.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index e76a41010e1f..2f7b5d42ab41 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -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;
};
/*