]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8fdfa27ca8a3762c72fcbd9c204fbf564f6ebd2a
treed03ce164bd4b2634e31e6e3c504f6f9423f67320
parentcc22ecc195a40fb6de47e615a190b1c7885e2b08
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: 9da066958fd05 ("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