]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 7 Mar 2022 10:46:01 +0000 (11:46 +0100)
commitd0ea3f68f801ad0c5c2db31c427b0f24c027b7f7
tree6e6472fb61d71e40bf9625efd4a85e157ceec7da
parent7577c5bb3035ddfa5843eea3f9a73079a60f900e
tracing: Have traceon and traceoff trigger honor the instance

BugLink: https://bugs.launchpad.net/bugs/1963891
commit 302e9edd54985f584cfc180098f3554774126969 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
kernel/trace/trace_events_trigger.c