Skip to content

Commit 6a13a0d

Browse files
mhiramatrostedt
authored andcommitted
ftrace/kprobe: Show the maxactive number on kprobe_events
Show maxactive parameter on kprobe_events. This allows user to save the current configuration and restore it without losing maxactive parameter. Link: http://lkml.kernel.org/r/[email protected] Link: http://lkml.kernel.org/r/158503528846.22706.5549974121212526020.stgit@devnote2 Cc: [email protected] Fixes: 696ced4 ("tracing/kprobes: expose maxactive for kretprobe in kprobe_events") Reported-by: Taeung Song <[email protected]> Signed-off-by: Masami Hiramatsu <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent 8a815e6 commit 6a13a0d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/trace/trace_kprobe.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,8 @@ static int trace_kprobe_show(struct seq_file *m, struct dyn_event *ev)
10781078
int i;
10791079

10801080
seq_putc(m, trace_kprobe_is_return(tk) ? 'r' : 'p');
1081+
if (trace_kprobe_is_return(tk) && tk->rp.maxactive)
1082+
seq_printf(m, "%d", tk->rp.maxactive);
10811083
seq_printf(m, ":%s/%s", trace_probe_group_name(&tk->tp),
10821084
trace_probe_name(&tk->tp));
10831085

0 commit comments

Comments
 (0)