tracing: Rename stacktrace field to common_stacktrace
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 24 May 2023 03:09:13 +0000 (23:09 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 24 May 2023 03:38:23 +0000 (23:38 -0400)
commit4b512860bdbdddcf41467ebd394f27cb8dfb528c
treec17979b6a45491440824ab0b7ef94416e334a063
parente30fbc618e97b38dbb49f1d44dcd0778d3f23b8c
tracing: Rename stacktrace field to common_stacktrace

The histogram and synthetic events can use a pseudo event called
"stacktrace" that will create a stacktrace at the time of the event and
use it just like it was a normal field. We have other pseudo events such
as "common_cpu" and "common_timestamp". To stay consistent with that,
convert "stacktrace" to "common_stacktrace". As this was used in older
kernels, to keep backward compatibility, this will act just like
"common_cpu" did with "cpu". That is, "cpu" will be the same as
"common_cpu" unless the event has a "cpu" field. In which case, the
event's field is used. The same is true with "stacktrace".

Also update the documentation to reflect this change.

Link: https://lore.kernel.org/linux-trace-kernel/20230523230913.6860e28d@rorschach.local.home
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Tom Zanussi <zanussi@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Documentation/trace/histogram.rst
include/linux/trace_events.h
kernel/trace/trace.c
kernel/trace/trace_events.c
kernel/trace/trace_events_hist.c