Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ftrace/x86: Do not trace .discard.text section

The section called .discard.text has tracing attached to it and is
currently ignored by ftrace. But it does include a call to the mcount
stub. Adding a notrace to the code keeps gcc from adding the useless
mcount caller to it.

Link: http://lkml.kernel.org/r/20110421023739.243651696@goodmis.org
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

authored by

Steven Rostedt and committed by
Steven Rostedt
2895cd2a f0201738

+1 -1
+1 -1
arch/x86/include/asm/setup.h
··· 88 88 * executable.) 89 89 */ 90 90 #define RESERVE_BRK(name,sz) \ 91 - static void __section(.discard.text) __used \ 91 + static void __section(.discard.text) __used notrace \ 92 92 __brk_reservation_fn_##name##__(void) { \ 93 93 asm volatile ( \ 94 94 ".pushsection .brk_reservation,\"aw\",@nobits;" \