linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] tracing: Have bpf and perf reuse the tracefs TRACE_EVENT macros
@ 2023-01-24 20:22 Steven Rostedt
  2023-01-24 20:22 ` [PATCH 1/2] perf/tracing: Use stage6 of tracing to not duplicate macros Steven Rostedt
  2023-01-24 20:22 ` [PATCH 2/2] bpf/tracing: " Steven Rostedt
  0 siblings, 2 replies; 5+ messages in thread
From: Steven Rostedt @ 2023-01-24 20:22 UTC (permalink / raw)
  To: linux-kernel, linux-trace-kernel
  Cc: Masami Hiramatsu, Andrew Morton, Linyu Yuan, Peter Zijlstra,
	Alexei Starovoitov, Daniel Borkmann, bpf

When reviewing Linyu Yuan patches[1] where the change was to move most
the macros from perf and bpf into stages, I realized that the macros
that makes up perf and bpf events are duplicated from the tracefs
macros that were moved into the stages directory. One reason to move
them into that directory was to remove duplicate code.

Remove the macros that are duplicated in the bpf and perf code and use
stage 6, which is the macros used to build the data needed to record
the TRACE_EVENT() TP_fast_assign() into the trace. This will mean they
will pick up bug fixes, as well as any enhacements that are added.

[1] https://lore.kernel.org/lkml/1671181385-5719-1-git-send-email-quic_linyyuan@quicinc.com/

Steven Rostedt (Google) (2):
      perf/tracing: Use stage6 of tracing to not duplicate macros
      bpf/tracing: Use stage6 of tracing to not duplicate macros

----
 include/trace/bpf_probe.h                    | 45 +--------------------------
 include/trace/perf.h                         | 46 +---------------------------
 include/trace/stages/stage6_event_callback.h |  3 ++
 3 files changed, 5 insertions(+), 89 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-01-25  9:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-24 20:22 [PATCH 0/2] tracing: Have bpf and perf reuse the tracefs TRACE_EVENT macros Steven Rostedt
2023-01-24 20:22 ` [PATCH 1/2] perf/tracing: Use stage6 of tracing to not duplicate macros Steven Rostedt
2023-01-25  9:16   ` Peter Zijlstra
2023-01-24 20:22 ` [PATCH 2/2] bpf/tracing: " Steven Rostedt
2023-01-24 21:11   ` Alexei Starovoitov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).