Re: [PATCH 17/18] tracing: Add indirect to indirect access for function based events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH 17/18] tracing: Add indirect to indirect access for function based events
- From: Steven Rostedt <rostedt@xxxxxxxxxxx>
- Date: Fri, 9 Feb 2018 12:18:40 -0500
- Cc: linux-kernel@xxxxxxxxxxxxxxx, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Peter Zijlstra <peterz@xxxxxxxxxxxxx>, Masami Hiramatsu <mhiramat@xxxxxxxxxx>, Tom Zanussi <tom.zanussi@xxxxxxxxxxxxxxx>, linux-rt-users@xxxxxxxxxxxxxxx, linux-trace-users@xxxxxxxxxxxxxxx, Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>, Clark Williams <williams@xxxxxxxxxx>, Jiri Olsa <jolsa@xxxxxxxxxx>, Daniel Bristot de Oliveira <bristot@xxxxxxxxxx>, Juri Lelli <juri.lelli@xxxxxxxxxx>, Jonathan Corbet <corbet@xxxxxxx>, Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx>, Alexei Starovoitov <alexei.starovoitov@xxxxxxxxx>, kernel-team@xxxxxxx
- In-reply-to: <20180209104758.093d31ad@gandalf.local.home>
- References: <20180202230458.840252014@goodmis.org> <20180202231019.582037880@goodmis.org> <20180209051301.GE28206@sejong> <20180209104758.093d31ad@gandalf.local.home>
On Fri, 9 Feb 2018 10:47:58 -0500
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> Good catch!
>
> It should have been:
>
> return process_redirects(arg, val, buf);
Although I need to add this :-p
diff --git a/kernel/trace/trace_event_ftrace.c b/kernel/trace/trace_event_ftrace.c
index 673336e352be..2690d4e46322 100644
--- a/kernel/trace/trace_event_ftrace.c
+++ b/kernel/trace/trace_event_ftrace.c
@@ -562,7 +564,7 @@ process_event(struct func_event *fevent, const char *token, enum func_states sta
ret = add_arg_redirect(fevent->last_arg, val, 0);
if (ret)
break;
- return FUNC_STATE_VAR;
+ return FUNC_STATE_BRACKET_END;
case FUNC_STATE_REDIRECT_BRACKET:
if (WARN_ON(!fevent->last_arg))
@@ -656,6 +658,7 @@ static unsigned long process_redirects(struct func_arg *arg, unsigned long val,
ret = probe_kernel_read(buf, (void *)val, sizeof(long));
if (ret)
return 0;
+ val = *(unsigned long *)buf;
}
}
return val;
Because it wasn't parsing properly, and then not getting the redirect.
-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-trace-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux USB Development]
[Linux USB Development]
[Linux Audio Users]
[Yosemite Hiking]
[Linux Kernel]
[Linux SCSI]