Skip to content

Commit ed5f297

Browse files
committed
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>
1 parent 5985329 commit ed5f297

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

kernel/trace/trace_probe.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,8 @@ const char **traceprobe_expand_meta_args(int argc, const char *argv[],
12731273
trace_probe_log_err(0, NOSUP_BTFARG);
12741274
return (const char **)params;
12751275
}
1276-
return 0;
1276+
*new_argc = argc;
1277+
return NULL;
12771278
}
12781279
ctx->params = params;
12791280
ctx->nr_params = nr_params;

0 commit comments

Comments
 (0)