public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH][GIT PULL][for 2.6.35] tracing: Add alignment to syscall metadata declarations
@ 2010-07-09 19:56 Steven Rostedt
  2010-07-09 20:18 ` Ingo Molnar
  2010-07-09 20:33 ` Sam Ravnborg
  0 siblings, 2 replies; 25+ messages in thread
From: Steven Rostedt @ 2010-07-09 19:56 UTC (permalink / raw)
  To: LKML
  Cc: Ingo Molnar, Frederic Weisbecker, Linus Torvalds, Andrew Morton,
	Zeev Tarantov, Rafael J. Wysocki, Maciej Rutecki


Ingo,

Please pull the latest tip/perf/urgent tree, which can be found at:

  git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace.git
tip/perf/urgent


Steven Rostedt (1):
      tracing: Add alignment to syscall metadata declarations

----
 include/linux/syscalls.h |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---------------------------
commit 44a54f787c0abcf75a2ed49b8ec8b2b512468f73
Author: Steven Rostedt <srostedt@redhat.com>
Date:   Fri Jul 9 15:41:44 2010 -0400

    tracing: Add alignment to syscall metadata declarations
    
    For some reason if we declare a static variable and then assign it
    later, and the assignment contains a __attribute__((__aligned__(#))),
    some versions of gcc will ignore it.
    
    This caused the syscall meta data to not be compact in its section
    and caused a kernel oops when the section was being read.
    
    The fix for these versions of gcc seems to be to add the aligned
    attribute to the declaration as well.
    
    This fixes the BZ regression:
    
      https://bugzilla.kernel.org/show_bug.cgi?id=16353
    
    Reported-by: Zeev Tarantov <zeev.tarantov@gmail.com>
    Tested-by: Zeev Tarantov <zeev.tarantov@gmail.com>
    Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
    LKML-Reference: <AANLkTinkKVmB0fpVeqUkMeqe3ZYeXJdI8xDuzJEOjYwh@mail.gmail.com>
    Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index 7f614ce..13ebb54 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -124,7 +124,8 @@ extern struct trace_event_functions enter_syscall_print_funcs;
 extern struct trace_event_functions exit_syscall_print_funcs;
 
 #define SYSCALL_TRACE_ENTER_EVENT(sname)				\
-	static struct syscall_metadata __syscall_meta_##sname;		\
+	static struct syscall_metadata					\
+	__attribute__((__aligned__(4))) __syscall_meta_##sname;		\
 	static struct ftrace_event_call					\
 	__attribute__((__aligned__(4))) event_enter_##sname;		\
 	static struct ftrace_event_call __used				\
@@ -138,7 +139,8 @@ extern struct trace_event_functions exit_syscall_print_funcs;
 	}
 
 #define SYSCALL_TRACE_EXIT_EVENT(sname)					\
-	static struct syscall_metadata __syscall_meta_##sname;		\
+	static struct syscall_metadata					\
+	__attribute__((__aligned__(4))) __syscall_meta_##sname;		\
 	static struct ftrace_event_call					\
 	__attribute__((__aligned__(4))) event_exit_##sname;		\
 	static struct ftrace_event_call __used				\



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

end of thread, other threads:[~2010-07-22 11:52 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-09 19:56 [PATCH][GIT PULL][for 2.6.35] tracing: Add alignment to syscall metadata declarations Steven Rostedt
2010-07-09 20:18 ` Ingo Molnar
2010-07-09 20:33 ` Sam Ravnborg
2010-07-09 20:46   ` Steven Rostedt
2010-07-09 20:53     ` Sam Ravnborg
2010-07-09 21:05       ` Steven Rostedt
2010-07-09 21:56         ` Sam Ravnborg
2010-07-09 22:02         ` Sam Ravnborg
2010-07-09 21:25   ` Linus Torvalds
2010-07-10  0:22     ` Steven Rostedt
2010-07-10  6:35       ` [PATCH] tracing: properly align linker defined symbols Sam Ravnborg
2010-07-10 10:18         ` Zeev Tarantov
2010-07-10 11:34           ` Steven Rostedt
2010-07-10 13:06             ` Zeev Tarantov
2010-07-10 13:48             ` Sam Ravnborg
2010-07-10 15:36               ` Zeev Tarantov
2010-07-10 13:49           ` Sam Ravnborg
2010-07-10 22:25         ` Linus Torvalds
2010-07-10 22:27           ` Linus Torvalds
2010-07-11  6:07           ` Sam Ravnborg
2010-07-15 15:05         ` Sam Ravnborg
2010-07-15 15:15           ` Steven Rostedt
2010-07-15 18:31             ` Sam Ravnborg
2010-07-22 11:51         ` [tip:perf/urgent] tracing: Properly " tip-bot for Sam Ravnborg
2010-07-10  9:45       ` [PATCH][GIT PULL][for 2.6.35] tracing: Add alignment to syscall metadata declarations Zeev Tarantov

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