diff options
author | Jiaxing Wang <hello.wjx@gmail.com> | 2015-11-04 04:14:29 +0300 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-11-04 05:51:43 +0300 |
commit | a4d1e68823033905de4f927e2e392e21a1c507e3 (patch) | |
tree | ee17db784fb9fce1826f96d6ccfd32cbed30fef4 /arch/arm64/lib/copy_to_user.S | |
parent | 627645fdb657dfae5fcf26bbf6a6e1b63751dbc8 (diff) | |
download | linux-a4d1e68823033905de4f927e2e392e21a1c507e3.tar.xz |
tracing: Apply tracer specific options from kernel command line.
Currently, the trace_options parameter is only applied in
tracer_alloc_buffers() when global_trace.current_trace is nop_trace,
so a tracer specific option will not be applied even when the specific
tracer is also enabled from kernel command line. For example, the
'func_stack_trace' option can't be enabled with the following kernel
parameter:
ftrace=function ftrace_filter=kfree trace_options=func_stack_trace
We can enable tracer specific options by simply apply the options again
if the specific tracer is also supplied from command line and started
in register_tracer().
To make trace_boot_options_buf can be parsed again, a comma and a space
is put back if they were replaced by strsep and strstrip respectively.
Also make register_tracer() be __init to access the __init data, and
in fact register_tracer is only called from __init code.
Link: http://lkml.kernel.org/r/1446599669-9294-1-git-send-email-hello.wjx@gmail.com
Signed-off-by: Jiaxing Wang <hello.wjx@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'arch/arm64/lib/copy_to_user.S')
0 files changed, 0 insertions, 0 deletions