Merge tag 'probes-fixes-v6.5-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel...
[platform/kernel/linux-starfive.git] / kernel / trace / trace_uprobe.c
index 7b47e9a..688bf57 100644 (file)
@@ -687,10 +687,12 @@ static int __trace_uprobe_create(int argc, const char **argv)
 
        /* parse arguments */
        for (i = 0; i < argc && i < MAX_TRACE_ARGS; i++) {
+               struct traceprobe_parse_context ctx = {
+                       .flags = (is_return ? TPARG_FL_RETURN : 0) | TPARG_FL_USER,
+               };
+
                trace_probe_log_set_index(i + 2);
-               ret = traceprobe_parse_probe_arg(&tu->tp, i, argv[i],
-                                       (is_return ? TPARG_FL_RETURN : 0) |
-                                       TPARG_FL_USER);
+               ret = traceprobe_parse_probe_arg(&tu->tp, i, argv[i], &ctx);
                if (ret)
                        goto error;
        }