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: Namhyung Kim <namhyung@xxxxxxxxxx>
- Date: Tue, 13 Feb 2018 18:27:37 +0900
- 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: <20180212122354.1d2fb867@gandalf.local.home>
- References: <20180202230458.840252014@goodmis.org> <20180202231019.582037880@goodmis.org> <20180209051301.GE28206@sejong> <20180209104758.093d31ad@gandalf.local.home> <20180212021534.GH31513@sejong> <20180212122354.1d2fb867@gandalf.local.home>
- User-agent: Mutt/1.9.3 (2018-01-21)
Hi Steve,
On Mon, Feb 12, 2018 at 12:23:54PM -0500, Steven Rostedt wrote:
> On Mon, 12 Feb 2018 11:15:34 +0900
> Namhyung Kim <namhyung@xxxxxxxxxx> wrote:
>
> > > It should have been:
> > >
> > > return process_redirects(arg, val, buf);
> >
> > But I think you need to consider data type of the arg when
> > dereferencing the last redirect.
>
> What for?
Otherwise it'd return a value of unsigned long type regardless of the
type of the arg. I thought it should have same logic as indirect
args.
But it seems not matter since record_entry() would copy it only for
the arg->size. Then type check in __get_arg() might be unnecessary
too.
>
> Also this code has also changed. I haven't posted new patches but my
> latest is in my git tree in the branch ftrace/dynamic-ftrace-events.
I've checked it. And it seems to have another problem for indirect
(but not redirect) arrays and strings. Like 'x32[1] foo[2]'?
Thanks,
Namhyung
--
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]