Skip to content

Commit

Permalink
tracing: use the more proper parameter
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wenji Huang authored and Steven Rostedt committed Feb 17, 2009
1 parent b6887d7 commit af51309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af51309

Please sign in to comment.