lkml.org 
[lkml]   [2008]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 5/8] ftrace: start wakeup tracing after setting function tracer
    Enabling the wakeup tracer before enabling the function tracing causes
    some strange results due to the dynamic enabling of the functions.

    Signed-off-by: Steven Rostedt <srostedt@redhat.com>
    ---
    kernel/trace/trace_sched_wakeup.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    Index: linux-tip.git/kernel/trace/trace_sched_wakeup.c
    ===================================================================
    --- linux-tip.git.orig/kernel/trace/trace_sched_wakeup.c 2008-07-10 12:19:54.000000000 -0400
    +++ linux-tip.git/kernel/trace/trace_sched_wakeup.c 2008-07-10 12:54:09.000000000 -0400
    @@ -352,9 +352,10 @@ static void start_wakeup_tracer(struct t
    */
    smp_wmb();

    - tracer_enabled = 1;
    register_ftrace_function(&trace_ops);

    + tracer_enabled = 1;
    +
    return;
    fail_deprobe_wake_new:
    marker_probe_unregister("kernel_sched_wakeup_new",
    --


    \
     
     \ /
      Last update: 2008-07-11 03:09    [W:0.018 / U:29.704 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site