Mark with "notrace" functions in core code that should not be traced. The "notrace" attribute will prevent gcc from adding a call to mcount on the annotated funtions. Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Steven Rostedt --- lib/smp_processor_id.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-mcount.git/lib/smp_processor_id.c =================================================================== --- linux-mcount.git.orig/lib/smp_processor_id.c 2008-01-17 20:33:16.000000000 -0500 +++ linux-mcount.git/lib/smp_processor_id.c 2008-01-17 20:33:31.000000000 -0500 @@ -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(); --