提交 28009ce4 编写于 作者: R Richard Kennedy 提交者: Ingo Molnar

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: NRichard Kennedy <richard@rsk.demon.co.uk>
Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1307460819.1950.5.camel@castor.rskSigned-off-by: NIngo Molnar <mingo@elte.hu>
上级 4ec8363d
...@@ -894,8 +894,8 @@ struct perf_event_context { ...@@ -894,8 +894,8 @@ struct perf_event_context {
u64 parent_gen; u64 parent_gen;
u64 generation; u64 generation;
int pin_count; int pin_count;
struct rcu_head rcu_head;
int nr_cgroups; /* cgroup events present */ int nr_cgroups; /* cgroup events present */
struct rcu_head rcu_head;
}; };
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册