lkml.org 
[lkml]   [2009]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 3/6] tracing: use the more proper parameter
    From: Wenji Huang <wenji.huang@oracle.com>

    Pass tsk to tracing_record_cmdline instead of current.

    Signed-off-by: Wenji Huang <wenji.huang@oracle.com>
    Signed-off-by: Steven Rostedt <srostedt@redhat.com>
    ---
    kernel/trace/trace.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
    index 95f99a7..dc61e82 100644
    --- a/kernel/trace/trace.c
    +++ b/kernel/trace/trace.c
    @@ -336,7 +336,7 @@ __update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu)
    data->rt_priority = tsk->rt_priority;

    /* record this tasks comm */
    - tracing_record_cmdline(current);
    + tracing_record_cmdline(tsk);
    }

    static void
    --
    1.5.6.5
    --


    \
     
     \ /
      Last update: 2009-02-18 12:23    [W:0.020 / U:31.692 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site