Skip to content

Commit a473414

Browse files
Namhyung Kimrostedt
authored andcommitted
tracing/uprobes: Pass 'is_return' to traceprobe_parse_probe_arg()
Currently uprobes don't pass is_return to the argument parser so that it cannot make use of "$retval" fetch method since it only works for return probes. Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Acked-by: Oleg Nesterov <oleg@redhat.com> Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Cc: zhangwei(Jovi) <jovi.zhangwei@huawei.com> Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
1 parent 5baaa59 commit a473414

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/trace/trace_uprobe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ static int create_trace_uprobe(int argc, char **argv)
514514

515515
/* Parse fetch argument */
516516
ret = traceprobe_parse_probe_arg(arg, &tu->tp.size, parg,
517-
false, false);
517+
is_return, false);
518518
if (ret) {
519519
pr_info("Parse error at argument[%d]. (%d)\n", i, ret);
520520
goto error;

0 commit comments

Comments
 (0)