User: Password:
Subscribe / Log in / New account

[RFC][PATCH] tracing: Remove useless 4 bytes of padding from every event

From:  Steven Rostedt <>
To:  LKML <>
Subject:  [RFC][PATCH] tracing: Remove useless 4 bytes of padding from every event
Date:  Wed, 16 May 2012 09:44:31 -0400
Message-ID:  <>
Cc:  Arjan van de Ven <>, Linus Torvalds <>, Ingo Molnar <>, Frederic Weisbecker <>, David Sharp <>, Vaibhav Nagarnaik <>, Peter Zijlstra <>, Andrew Morton <>
Archive-link:  Article

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 <>

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						\

(Log in to post comments)

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds