mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [GIT PULL] probes: Fixes for v7.3-rc7
@ 2026-10-16 11:15 Masami Hiramatsu
  2026-10-17  0:45 ` pr-tracker-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Masami Hiramatsu @ 2026-10-16 11:15 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Martin Kaiser, Steven Rostedt, Masami Hiramatsu, linux-kernel

Hi Linus,

Probes fixes for v7.3-rc7:

- tracing: probes: error if BTF is required but unavailable
  Fix to return an error instead of NULL if BTF is not available when
  user specify '$args*' meta fetch argument for probe events.


Please pull the latest probes-fixes-v7.3-rc7 tree, which can be found at:


  git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
probes-fixes-v7.3-rc7

Tag SHA1: c66008d494387045766f3bf87c3feecdc3fc0423
Head SHA1: 66c658033d842bb75f81f20aaa4a378fe47be1a1


Martin Kaiser (1):
      tracing: probes: error if BTF is required but unavailable

----
 kernel/trace/trace_probe.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---------------------------
commit 66c658033d842bb75f81f20aaa4a378fe47be1a1
Author: Martin Kaiser <martin@kaiser.cx>
Date:   Wed Oct 14 10:37:40 2026 +0200

    tracing: probes: error if BTF is required but unavailable
    
    traceprobe_expand_meta_args expands probe arguments based on BTF info.
    
    Return an error if we have arguments that need expanding but BTF is not
    supported.
    
    The params variable is now unused, it can be removed.
    
    Link: https://lore.kernel.org/all/20261014083838.31020-1-martin@kaiser.cx/
    
    Fixes: d157d7694460 ("tracing/probes: Support BTF field access from $retval")
    Signed-off-by: Martin Kaiser <martin@kaiser.cx>
    Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
    Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>

diff --git a/kernel/trace/trace_probe.c b/kernel/trace/trace_probe.c
index 804442b2f7d2..88518c5322a5 100644
--- a/kernel/trace/trace_probe.c
+++ b/kernel/trace/trace_probe.c
@@ -2287,7 +2287,6 @@ const char **traceprobe_expand_meta_args(int argc, const char *argv[],
 					 int *new_argc, char *buf, int bufsize,
 					 struct traceprobe_parse_context *ctx)
 {
-	const struct btf_param *params = NULL;
 	int i, j, n, used, ret, args_idx = -1;
 	const char **new_argv __free(kfree) = NULL;
 
@@ -2305,7 +2304,7 @@ const char **traceprobe_expand_meta_args(int argc, const char *argv[],
 		if (args_idx != -1) {
 			/* $arg* requires BTF info */
 			trace_probe_log_err(0, NOSUP_BTFARG);
-			return (const char **)params;
+			return ERR_PTR(-EOPNOTSUPP);
 		}
 		*new_argc = argc;
 		return NULL;

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

* Re: [GIT PULL] probes: Fixes for v7.3-rc7
  2026-10-16 11:15 [GIT PULL] probes: Fixes for v7.3-rc7 Masami Hiramatsu
@ 2026-10-17  0:45 ` pr-tracker-bot
  0 siblings, 0 replies; 2+ messages in thread
From: pr-tracker-bot @ 2026-10-17  0:45 UTC (permalink / raw)
  To: Masami Hiramatsu (Google)
  Cc: Linus Torvalds, Martin Kaiser, Steven Rostedt, Masami Hiramatsu,
	linux-kernel

The pull request you sent on Fri, 16 Oct 2026 20:15:17 +0900:

> git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git probes-fixes-v7.3-rc7

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/2d2fe9fd50b57fc2563f4b7bd2fe83906f79c81a

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:[~2026-10-17  0:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-16 11:15 [GIT PULL] probes: Fixes for v7.3-rc7 Masami Hiramatsu
2026-10-17  0:45 ` 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

all inboxes | Powered by JetHome®