From: Arnaldo Carvalho de Melo Date: Mon, 12 May 2008 19:20:41 +0000 (+0200) Subject: ftrace: annotate core code that should not be traced X-Git-Tag: v2.6.27-rc1~1102^2^2~1^2~153 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6e766410c4babd37bc7cd5e25009c179781742c8;p=linux-2.6-omap-h63xx.git ftrace: annotate core code that should not be traced Mark with "notrace" functions in core code that should not be traced. The "notrace" attribute will prevent gcc from adding a call to ftrace on the annotated funtions. Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Steven Rostedt Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/lib/smp_processor_id.c b/lib/smp_processor_id.c index 6c90fb90e19..e555ab62fba 100644 --- a/lib/smp_processor_id.c +++ b/lib/smp_processor_id.c @@ -7,7 +7,7 @@ #include #include -unsigned int debug_smp_processor_id(void) +notrace unsigned int debug_smp_processor_id(void) { unsigned long preempt_count = preempt_count(); int this_cpu = raw_smp_processor_id();