diff options
author | Masami Hiramatsu <[email protected]> | 2010-08-27 20:39:06 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2010-09-08 11:47:19 -0300 |
commit | aba91595cfcebd193425e20aabc407531526a1c5 (patch) | |
tree | 5473ed5aebc93bb0aea03a17d7ed968ca0e95dce /kernel/trace/ring_buffer.c | |
parent | 367e94c10092469c896a226a77ef13cf6da757e4 (diff) |
tracing/kprobes: Fix handling of argument names
Set "argN" name for each argument automatically if it has no specified name.
Since dynamic trace event(kprobe_events) accepts special characters for its
argument, its format can show those special characters (e.g. '$', '%', '+').
However, perf can't parse those format because of the character (especially
'%') mess up the format. This sets "argX" name for those arguments if user
omitted the argument names.
E.g.
# echo 'p do_fork %ax IP=%ip $stack' > tracing/kprobe_events
# cat tracing/kprobe_events
p:kprobes/p_do_fork_0 do_fork arg1=%ax IP=%ip arg3=$stack
Reported-by: Srikar Dronamraju <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Masami Hiramatsu <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'kernel/trace/ring_buffer.c')
0 files changed, 0 insertions, 0 deletions