lkml.org 
[lkml]   [2008]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[RFC PATCH 02/30 v3] 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 mcount on the annotated funtions.

    Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
    Signed-off-by: Steven Rostedt <srostedt@redhat.com>

    ---
    lib/smp_processor_id.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    Index: linux-compile.git/lib/smp_processor_id.c
    ===================================================================
    --- linux-compile.git.orig/lib/smp_processor_id.c 2008-01-14 13:14:03.000000000 -0500
    +++ linux-compile.git/lib/smp_processor_id.c 2008-01-14 13:14:13.000000000 -0500
    @@ -7,7 +7,7 @@
    #include <linux/kallsyms.h>
    #include <linux/sched.h>

    -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();
    --


    \
     
     \ /
      Last update: 2008-01-15 21:59    [W:0.022 / U:60.968 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site