aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-02-17 13:12:12 -0500
committerSteven Rostedt <srostedt@redhat.com>2009-02-17 13:12:12 -0500
commit35ebf1caa4854ad5ba25f3a72967acc064147994 (patch)
tree6adc0e7db8cb16d18f3683bf729cf8261af93b1f
parent73d8b8bc4f24a97a406d09c8268ac019f4ac661e (diff)
ftrace: show unlimited when traceon or traceoff has no counter
Impact: clean up The traceon and traceoff function probes are confusing to developers to what happens when a counter is not specified. This should help clear things up. # echo "*:traceoff" > set_ftrace_filter # cat /debug/tracing/set_ftrace_filter #### all functions enabled #### do_fork:traceoff:unlimited Signed-off-by: Steven Rostedt <srostedt@redhat.com>
-rw-r--r--kernel/trace/trace_functions.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/trace/trace_functions.c b/kernel/trace/trace_functions.c
index 6ea73ed03bfa..4c113a8c466f 100644
--- a/kernel/trace/trace_functions.c
+++ b/kernel/trace/trace_functions.c
@@ -296,7 +296,9 @@ ftrace_trace_onoff_print(struct seq_file *m, unsigned long ip,
296 else 296 else
297 seq_printf(m, "traceoff"); 297 seq_printf(m, "traceoff");
298 298
299 if (count != -1) 299 if (count == -1)
300 seq_printf(m, ":unlimited\n");
301 else
300 seq_printf(m, ":count=%ld", count); 302 seq_printf(m, ":count=%ld", count);
301 seq_putc(m, '\n'); 303 seq_putc(m, '\n');
302 304