tracing: Add flag to control different traces
authorTingwei Zhang <tingwei@codeaurora.org>
Mon, 5 Oct 2020 07:13:13 +0000 (10:13 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Oct 2020 10:43:53 +0000 (12:43 +0200)
commit8438f5211479e4b8433f641634362264bc3bbd9e
treeff1d0424ebf55860846a662149d3a48189ab2a73
parent7b9749bd830848bca9179b0a16251ca3c36e82e6
tracing: Add flag to control different traces

More traces like event trace or trace marker will be supported.
Add flag for difference traces, so that they can be controlled
separately. Move current function trace to it's own flag
instead of global ftrace enable flag.

Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Reviewed-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Link: https://lore.kernel.org/r/20201005071319.78508-3-alexander.shishkin@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/trace.h
kernel/trace/trace.c