提交 3d9b2e1d 编写于 作者: L Lai Jiangshan 提交者: Ingo Molnar

trace_kprobes: Always show group name

Sometimes the group name is not "kprobes",
It'll be better if we can read it from tracing/kprobe_events.

 # echo 'r:laijs/vfs_read vfs_read %ax' > kprobe_events
 # cat kprobe_events
 r:laijs/vfs_read vfs_read %ax=%ax
Signed-off-by: NLai Jiangshan <laijs@cn.fujitsu.com>
Acked-by: NMasami Hiramatsu <mhiramat@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <4B0CEBAF.6000104@cn.fujitsu.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 abab9d37
...@@ -760,7 +760,7 @@ static int probes_seq_show(struct seq_file *m, void *v) ...@@ -760,7 +760,7 @@ static int probes_seq_show(struct seq_file *m, void *v)
char buf[MAX_ARGSTR_LEN + 1]; char buf[MAX_ARGSTR_LEN + 1];
seq_printf(m, "%c", probe_is_return(tp) ? 'r' : 'p'); seq_printf(m, "%c", probe_is_return(tp) ? 'r' : 'p');
seq_printf(m, ":%s", tp->call.name); seq_printf(m, ":%s/%s", tp->call.system, tp->call.name);
if (tp->symbol) if (tp->symbol)
seq_printf(m, " %s+%u", probe_symbol(tp), tp->rp.kp.offset); seq_printf(m, " %s+%u", probe_symbol(tp), tp->rp.kp.offset);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册