UPSTREAM: tracing: Dump stacktrace trigger to the corresponding instance
commit ce33c845 upstream. The stacktrace event trigger is not dumping the stacktrace to the instance where it was enabled, but to the global "instance." Use the private_data, pointing to the trigger file, to figure out the corresponding trace instance, and use it in the trigger action, like snapshot_trigger does. Link: https://lkml.kernel.org/r/afbb0b4f18ba92c276865bc97204d438473f4ebc.1645396236.git.bristot@kernel.org Cc: stable@vger.kernel.org Fixes: ae63b31e ("tracing: Separate out trace events from global variables") Reviewed-by:Tom Zanussi <zanussi@kernel.org> Tested-by:
Tom Zanussi <zanussi@kernel.org> Signed-off-by:
Daniel Bristot de Oliveira <bristot@kernel.org> Signed-off-by:
Steven Rostedt (Google) <rostedt@goodmis.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit 2da11442) Signed-off-by:
Greg Kroah-Hartman <gregkh@google.com> Change-Id: Ia1b1ec6733c5518b9ab9497658e529983a1ef855
Loading
Please sign in to comment