ftrace/x86: Do not trace .discard.text section
authorSteven Rostedt <srostedt@redhat.com>
Wed, 13 Apr 2011 20:43:29 +0000 (16:43 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 16 May 2011 18:47:13 +0000 (14:47 -0400)
commit2895cd2ab81dfb7bc22637bc110857db44a30b4a
treee68853cf5422e4107bc7d999fa39f0826b481cb7
parentf0201738b61b1adcf6b2c4719c5c415745014c1c
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>
arch/x86/include/asm/setup.h