trace_kprobes: always show group name
PATCH 2/3 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 Lai Jiangshan <[email protected]>
---
kernel/trace/trace_kprobe.c +1 -1
@@ -758,7 +758,7 @@ static int probes_seq_show(struct seq_file *m, void *v)char buf[MAX_ARGSTR_LEN +1 ];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)seq_printf (m," %s+%u" ,probe_symbol (tp), tp->rp.kp.offset);
Quoted 7 lines · Lai Jiangshan
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
Yep, that looks very nice :-)
Acked-by Masami Hiramatsu <[email protected]>
Quoted 18 lines
Signed-off-by Lai Jiangshan <[email protected]>---
kernel/trace/trace_kprobe.c +1
-1@@ -758,7 +758,7 @@ static int probes_seq_show(struct seq_file *m, void *v)char buf[MAX_ARGSTR_LEN +1 ];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)seq_printf (m," %s+%u" ,probe_symbol (tp), tp->rp.kp.offset);
Signature · 7 lines
Masami Hiramatsu Software Engineer Hitachi Computer Products (America), Inc. Software Solutions Division e-mail: [email protected]
[tip:perf/core] trace_kprobes: Always show group name
In reply to Lai JiangshanCommit-ID: 3d9b2e1ddf42dd3df38af7794fa5e39cce760f3b Gitweb: http://git.kernel.org/tip/3d9b2e1ddf42dd3df38af7794fa5e39cce760f3b Author: Lai Jiangshan <[email protected]> AuthorDate: Wed, 25 Nov 2009 16:32:47 +0800 Committer: Ingo Molnar <[email protected]> CommitDate: Fri, 27 Nov 2009 06:43:04 +0100
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 Lai Jiangshan <[email protected]>
Acked-by Masami Hiramatsu <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Frederic Weisbecker <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- kernel/trace/trace_kprobe.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/trace/trace_kprobe.c +1 -1
@@ -760,7 +760,7 @@ static int probes_seq_show(struct seq_file *m, void *v)char buf[MAX_ARGSTR_LEN +1 ];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)seq_printf (m," %s+%u" ,probe_symbol (tp), tp->rp.kp.offset);