linux/kernel/trace
Steven Rostedt (Red Hat) 41d9c0becc tracing: Always show all tracer options in the options directory
There are options that are unique to a specific tracer (like function and
function graph). Currently, these options are only visible in the options
directory when the tracer is enabled.

This has been a pain, especially for something like the func_stack_trace
option that if used inappropriately, could bring the system to a crawl. But
the only way to see it, is to enable the function tracer.

For example, if one had done:

 # cd /sys/kernel/tracing
 # echo __schedule > set_ftrace_filter
 # echo 1 > options/func_stack_trace
 # echo function > current_tracer

The __schedule call will be traced and a stack trace will also be recorded
there. Now when you were done, you may do...

 # echo nop > current_tracer
 # echo > set_ftrace_filter

But you forgot to disable the func_stack_trace. The only way to disable it
is to re-enable function tracing first. If you do not add a filter to
set_ftrace_filter and just do:

 # echo function > current_tracer

Now you would be performing a stack trace on *every* function! On some
systems, that causes a live lock. Others may take a few minutes to fix your
mistake.

Having the func_stack_trace option visible allows you to check it and
disable it before enabling the funtion tracer.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2015-09-30 04:34:54 -04:00
..
Kconfig tracing, perf: Implement BPF programs attached to uprobes 2015-08-06 15:29:14 -03:00
Makefile
blktrace.c tracing: Pass trace_array into trace_buffer_unlock_commit() 2015-09-25 17:38:44 -04:00
bpf_trace.c bpf: add support for %s specifier to bpf_trace_printk() 2015-08-28 16:27:27 -07:00
ftrace.c Mostly this is just clean ups and micro optimizations. 2015-09-08 14:04:14 -07:00
power-traces.c
ring_buffer.c ring-buffer: Revert "ring-buffer: Get timestamp after event is allocated" 2015-09-03 08:57:12 -04:00
ring_buffer_benchmark.c This patch series contains several clean ups and even a new trace clock 2015-06-26 14:02:43 -07:00
rpm-traces.c
trace.c tracing: Always show all tracer options in the options directory 2015-09-30 04:34:54 -04:00
trace.h tracing: Always show all tracer options in the options directory 2015-09-30 04:34:54 -04:00
trace_benchmark.c
trace_benchmark.h
trace_branch.c tracing: Have branch tracer use recursive field of task struct 2015-07-08 11:53:45 -04:00
trace_clock.c
trace_entries.h
trace_event_perf.c
trace_events.c tracing: Pass trace_array into trace_buffer_unlock_commit() 2015-09-25 17:38:44 -04:00
trace_events_filter.c tracing: Allow triggers to filter for CPU ids and process names 2015-08-11 18:01:06 -04:00
trace_events_filter_test.h
trace_events_trigger.c
trace_export.c
trace_functions.c
trace_functions_graph.c ftrace: Fix function_graph duration spacing with 7-digits 2015-07-20 22:30:52 -04:00
trace_irqsoff.c tracing: Do not create function tracer options when not compiled in 2015-09-29 15:01:34 -04:00
trace_kdb.c
trace_kprobe.c lib: introduce strncpy_from_unsafe() 2015-08-28 16:27:27 -07:00
trace_mmiotrace.c tracing: Pass trace_array into trace_buffer_unlock_commit() 2015-09-25 17:38:44 -04:00
trace_nop.c
trace_output.c tracing: Turn seq_print_user_ip() into a static function 2015-09-28 10:16:12 -04:00
trace_output.h tracing: Turn seq_print_user_ip() into a static function 2015-09-28 10:16:12 -04:00
trace_printk.c
trace_probe.c
trace_probe.h kernel/trace_probe: is_good_name can be boolean 2015-09-22 13:11:30 -04:00
trace_sched_switch.c sched: Introduce the 'trace_sched_waking' tracepoint 2015-08-03 12:21:22 +02:00
trace_sched_wakeup.c tracing: Do not create function tracer options when not compiled in 2015-09-29 15:01:34 -04:00
trace_selftest.c
trace_selftest_dynamic.c
trace_seq.c
trace_stack.c tracing: Clean up stack tracing and fix fentry updates 2015-07-20 22:30:50 -04:00
trace_stat.c
trace_stat.h
trace_syscalls.c
trace_uprobe.c tracing/uprobes: Do not print '0x (null)' when offset is 0 2015-08-26 10:43:01 -03:00