* [GIT PULL v2] tracing: Fix for v6.19
@ 2025-12-10 2:48 Steven Rostedt
2025-12-10 8:01 ` pr-tracker-bot
0 siblings, 1 reply; 2+ messages in thread
From: Steven Rostedt @ 2025-12-10 2:48 UTC (permalink / raw)
To: Linus Torvalds; +Cc: LKML, Masami Hiramatsu, Mathieu Desnoyers
Linus,
tracing fix for v6.19:
- Fix unused tracepoint build for modules only using exported tracepoints
The tracepoint-update.c code that looks for unused tracepoints expects
if tracepoints are used then it will have tracepoints defined. If
not, it errors out which fails the build.
In most cases this the way things work. A tracepoint can't be used if
it is not defined. There is one exception; If a module only uses
tracepoints that are defined in other modules or the vmlinux proper,
where the tracepoints are exported. In this case, the
tracepoint-update.c code thinks tracepoints are used but not defined
and errors out, failing the build.
When tracepoint-update.c detects this case, if it is a module that is
being processed, exit out normally as it is a legitimate case.
- Add tracepoint-update.c to MAINTAINERS file
The tracepoint-update.c file is specific to tracing so add it to the
tracing subsystem in the MAINTAINERS file.
Please pull the latest trace-v6.19-4 tree, which can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
trace-v6.19-4
Tag SHA1: ee4b6dd23fc915e0745099f0b9d236570858b828
Head SHA1: 2c22361ab628adbca82ab2da6d41b7cfeb14b83c
Steven Rostedt (2):
tracing: Fix unused tracepoints when module uses only exported ones
MAINTAINERS: Add tracepoint-update.c to TRACING section
----
MAINTAINERS | 1 +
scripts/tracepoint-update.c | 3 +++
2 files changed, 4 insertions(+)
---------------------------
Changes since v1: https://lore.kernel.org/all/20251209202032.4430caac@fedora/
- Fixed typos and grammar in change log of patch
- Added MAINTAINERS patch
diff --git a/MAINTAINERS b/MAINTAINERS
index 27bd8a9cf0ad..44036a5b4e3a 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -26298,6 +26298,7 @@ F: include/trace/
F: kernel/trace/
F: kernel/tracepoint.c
F: scripts/tracing/
+F: scripts/tracepoint-update.c
F: tools/testing/selftests/ftrace/
TRACING MMIO ACCESSES (MMIOTRACE)
diff --git a/scripts/tracepoint-update.c b/scripts/tracepoint-update.c
index 7f7d90df14ce..90046aedc97b 100644
--- a/scripts/tracepoint-update.c
+++ b/scripts/tracepoint-update.c
@@ -210,6 +210,9 @@ static int process_tracepoints(bool mod, void *addr, const char *fname)
}
if (!tracepoint_data_sec) {
+ /* A module may reference only exported tracepoints */
+ if (mod)
+ return 0;
fprintf(stderr, "no __tracepoint_strings in file: %s\n", fname);
return -1;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [GIT PULL v2] tracing: Fix for v6.19
2025-12-10 2:48 [GIT PULL v2] tracing: Fix for v6.19 Steven Rostedt
@ 2025-12-10 8:01 ` pr-tracker-bot
0 siblings, 0 replies; 2+ messages in thread
From: pr-tracker-bot @ 2025-12-10 8:01 UTC (permalink / raw)
To: Steven Rostedt; +Cc: Linus Torvalds, LKML, Masami Hiramatsu, Mathieu Desnoyers
The pull request you sent on Tue, 9 Dec 2025 21:48:34 -0500:
> git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git trace-v6.19-4
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/2f7041e59bf023c9e26184b77a1a87bc5e29d83e
Thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-10 8:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-10 2:48 [GIT PULL v2] tracing: Fix for v6.19 Steven Rostedt
2025-12-10 8:01 ` pr-tracker-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox