summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>2023-06-04 04:29:00 +0200
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>2023-06-23 10:35:49 +0200
commited5f297802fca41d88fbfa6f9c13b218e7c6f5cb (patch)
tree6635e72ddcb5736b547a8d09b0d24b1970760938 /kernel
parentselftests/ftrace: Add new test case which checks for optimized probes (diff)
downloadlinux-ed5f297802fca41d88fbfa6f9c13b218e7c6f5cb.tar.xz
linux-ed5f297802fca41d88fbfa6f9c13b218e7c6f5cb.zip
tracing/probes: Fix to return NULL and keep using current argc
Fix to return NULL and keep using current argc when there is $argN and the BTF is not available. Link: https://lore.kernel.org/all/168584574094.2056209.2694238431743782342.stgit@mhiramat.roam.corp.google.com/ Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202306030940.Cej2JoUx-lkp@intel.com/ Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/trace_probe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/trace/trace_probe.c b/kernel/trace/trace_probe.c
index ba1c6e059b51..473e1c43bc57 100644
--- a/kernel/trace/trace_probe.c
+++ b/kernel/trace/trace_probe.c
@@ -1273,7 +1273,8 @@ const char **traceprobe_expand_meta_args(int argc, const char *argv[],
trace_probe_log_err(0, NOSUP_BTFARG);
return (const char **)params;
}
- return 0;
+ *new_argc = argc;
+ return NULL;
}
ctx->params = params;
ctx->nr_params = nr_params;