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 <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Reviewed-by: Steven Rostedt (Google) <[email protected]> Signed-off-by: Masami Hiramatsu (Google) <[email protected]>
1 parent 5985329 commit ed5f297

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)