rv: Simplify manual steps in monitor creation
authorGabriele Monaco <gmonaco@redhat.com>
Fri, 27 Dec 2024 14:47:49 +0000 (15:47 +0100)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 27 Dec 2024 19:20:03 +0000 (14:20 -0500)
commitbc3d482dcc062963e7dc20565be2a887e5fc9a2d
tree575ecd8ff1793217a9d9a2fd802c5f83c8289ff2
parent64b3e5f0d45329bc593e13b64dcdcf836da006cd
rv: Simplify manual steps in monitor creation

While creating a new monitor in RV, besides generating code from dot2k,
there are a few manual steps which can be tedious and error prone, like
adding the tracepoints, makefile lines and kconfig.

This patch restructures the existing monitors to keep some files in the
monitor's folder itself, which can be automatically generated by future
versions of dot2k.

Monitors have now their own Kconfig and tracepoint snippets. For
simplicity, the main tracepoint definition, is moved to the RV
directory, it defines only the tracepoint classes and includes the
monitor-specific tracepoints, which reside in the monitor directory.

Tracepoints and Kconfig no longer need to be copied and adapted from
existing ones but only need to be included in the main files.
The Makefile remains untouched since there's little advantage in having
a separated Makefile for each monitor with a single line and including
it in the main RV Makefile.

Cc: Juri Lelli <juri.lelli@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: John Kacur <jkacur@redhat.com>
Link: https://lore.kernel.org/20241227144752.362911-6-gmonaco@redhat.com
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
include/trace/events/rv.h [deleted file]
kernel/trace/rv/Kconfig
kernel/trace/rv/Makefile
kernel/trace/rv/monitors/wip/Kconfig [new file with mode: 0644]
kernel/trace/rv/monitors/wip/wip.c
kernel/trace/rv/monitors/wip/wip_trace.h [new file with mode: 0644]
kernel/trace/rv/monitors/wwnr/Kconfig [new file with mode: 0644]
kernel/trace/rv/monitors/wwnr/wwnr.c
kernel/trace/rv/monitors/wwnr/wwnr_trace.h [new file with mode: 0644]
kernel/trace/rv/rv.c
kernel/trace/rv/rv_trace.h [new file with mode: 0644]