public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC][PATCH] tracing: Remove useless 4 bytes of padding from every event
@ 2012-05-16 13:44 Steven Rostedt
  2012-05-16 17:24 ` [RFC][PATCH v2] " Steven Rostedt
  2012-05-16 19:33 ` [RFC][PATCH] " Linus Torvalds
  0 siblings, 2 replies; 16+ messages in thread
From: Steven Rostedt @ 2012-05-16 13:44 UTC (permalink / raw)
  To: LKML
  Cc: Arjan van de Ven, Linus Torvalds, Ingo Molnar,
	Frederic Weisbecker, David Sharp, Vaibhav Nagarnaik,
	Peter Zijlstra, Andrew Morton

Now that PowerTop v2 is out, which uses the parse-event library, it no
longer is broken by the removal of the lock-depth field from every
event. Currently we add 4 bytes of empty space to every event. If we
have 1 million events, 4 million bytes are wasted in the ring buffers
(for both ftrace and perf).

But this change will break PowerTop v1. Thus my question is, how long do
we need to keep this wasted space in the ring buffers to satisfy an out
of date tool?

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h
index 5f3f3be..f96dfef 100644
--- a/include/linux/ftrace_event.h
+++ b/include/linux/ftrace_event.h
@@ -49,7 +49,6 @@ struct trace_entry {
 	unsigned char		flags;
 	unsigned char		preempt_count;
 	int			pid;
-	int			padding;
 };
 
 #define FTRACE_MAX_EVENT						\



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

end of thread, other threads:[~2012-05-17 12:11 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-16 13:44 [RFC][PATCH] tracing: Remove useless 4 bytes of padding from every event Steven Rostedt
2012-05-16 17:24 ` [RFC][PATCH v2] " Steven Rostedt
2012-05-16 19:33 ` [RFC][PATCH] " Linus Torvalds
2012-05-16 19:36   ` Arjan van de Ven
2012-05-16 19:47     ` Steven Rostedt
2012-05-16 19:51     ` Linus Torvalds
2012-05-16 20:03       ` Steven Rostedt
2012-05-17  8:04         ` Ingo Molnar
2012-05-16 20:00   ` Steven Rostedt
2012-05-16 20:04     ` Linus Torvalds
2012-05-16 20:07       ` Arjan van de Ven
2012-05-16 20:13         ` Steven Rostedt
2012-05-16 20:14         ` Dave Jones
2012-05-16 20:16           ` Arjan van de Ven
2012-05-17  8:06             ` Ingo Molnar
2012-05-17 12:11               ` Steven Rostedt

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