tracing: Have traceon and traceoff trigger honor the instance
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 24 Feb 2022 03:38:37 +0000 (22:38 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 25 Feb 2022 17:06:45 +0000 (12:06 -0500)
commit302e9edd54985f584cfc180098f3554774126969
treed03ce164bd4b2634e31e6e3c504f6f9423f67320
parentce33c845b030c9cf768370c951bc699470b09fa7
tracing: Have traceon and traceoff trigger honor the instance

If a trigger is set on an event to disable or enable tracing within an
instance, then tracing should be disabled or enabled in the instance and
not at the top level, which is confusing to users.

Link: https://lkml.kernel.org/r/20220223223837.14f94ec3@rorschach.local.home
Cc: stable@vger.kernel.org
Fixes: ae63b31e4d0e2 ("tracing: Separate out trace events from global variables")
Tested-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Reviewed-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_events_trigger.c