summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt2011-04-13 22:43:29 +0200
committerSteven Rostedt2011-05-17 16:41:55 +0200
commit406a733db0052fed66d17008430b6047ecea7b92 (patch)
tree8c5304de8ac9a009983686b2f8b05b8fa115f0d2
parentftrace: Avoid recording mcount on .init sections directly (diff)
downloadkernel-qcow2-linux-406a733db0052fed66d17008430b6047ecea7b92.tar.gz
kernel-qcow2-linux-406a733db0052fed66d17008430b6047ecea7b92.tar.xz
kernel-qcow2-linux-406a733db0052fed66d17008430b6047ecea7b92.zip
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>
-rw-r--r--arch/x86/include/asm/setup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/setup.h b/arch/x86/include/asm/setup.h
index db8aa19a08a2..647d8a06ce4f 100644
--- a/arch/x86/include/asm/setup.h
+++ b/arch/x86/include/asm/setup.h
@@ -88,7 +88,7 @@ void *extend_brk(size_t size, size_t align);
* executable.)
*/
#define RESERVE_BRK(name,sz) \
- static void __section(.discard.text) __used \
+ static void __section(.discard.text) __used notrace \
__brk_reservation_fn_##name##__(void) { \
asm volatile ( \
".pushsection .brk_reservation,\"aw\",@nobits;" \