OSDN Git Service

tracing: Add "(fault)" name injection to kernel probes
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 12 Oct 2022 10:40:57 +0000 (06:40 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 12 Oct 2022 17:50:20 +0000 (13:50 -0400)
commit2e9906f84fc7c99388bb7123ade167250d50f1c0
tree7ad03ec28bfce2d3da00b1416a7834bb988384f8
parentf1d3cbfaafc10464550c6d3a125f4fc802bbaed5
tracing: Add "(fault)" name injection to kernel probes

Have the specific functions for kernel probes that read strings to inject
the "(fault)" name directly. trace_probes.c does this too (for uprobes)
but as the code to read strings are going to be used by synthetic events
(and perhaps other utilities), it simplifies the code by making sure those
other uses do not need to implement the "(fault)" name injection as well.

Link: https://lkml.kernel.org/r/20221012104534.644803645@goodmis.org
Cc: stable@vger.kernel.org
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Tom Zanussi <zanussi@kernel.org>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Reviewed-by: Tom Zanussi <zanussi@kernel.org>
Fixes: bd82631d7ccdc ("tracing: Add support for dynamic strings to synthetic events")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_probe_kernel.h