mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] perf events: remove 64bit alignment padding from perf_event_context
@ 2011-06-07 15:33 Richard Kennedy
  2011-06-07 15:39 ` Peter Zijlstra
  2011-07-01 15:19 ` [tip:perf/core] perf: Remove 64-bit " tip-bot for Richard Kennedy
  0 siblings, 2 replies; 3+ messages in thread
From: Richard Kennedy @ 2011-06-07 15:33 UTC (permalink / raw)
  To: Peter Zijlstra; +Cc: Paul Mackerras, Ingo Molnar, lkml

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>

---

patch against v3.0-rc2
compiled & tested on x86_64

regards
Richard


diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index 3412684..9d5b3d5 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -919,8 +919,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;
 };
 
 /*



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-07-01 15:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-07 15:33 [PATCH] perf events: remove 64bit alignment padding from perf_event_context Richard Kennedy
2011-06-07 15:39 ` Peter Zijlstra
2011-07-01 15:19 ` [tip:perf/core] perf: Remove 64-bit " tip-bot for Richard Kennedy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome