Re: [PATCH 09/18] tracing: Add indexing of arguments for function based events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH 09/18] tracing: Add indexing of arguments for function based events
- From: Namhyung Kim <namhyung@xxxxxxxxxx>
- Date: Fri, 9 Feb 2018 08:56:15 +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: <20180208104343.2fa63eda@gandalf.local.home>
- References: <20180202230458.840252014@goodmis.org> <20180202231018.338259949@goodmis.org> <20180208105924.GB26290@sejong> <20180208104343.2fa63eda@gandalf.local.home>
- User-agent: Mutt/1.9.3 (2018-01-21)
On Thu, Feb 08, 2018 at 10:43:43AM -0500, Steven Rostedt wrote:
> On Thu, 8 Feb 2018 19:59:24 +0900
> Namhyung Kim <namhyung@xxxxxxxxxx> wrote:
>
> > > @@ -347,6 +361,8 @@ static long long get_arg(struct func_arg *arg, unsigned long val)
> > > char buf[8];
> > > int ret;
> > >
> > > + val += arg->index;
> > > +
> > > if (!arg->indirect)
> > > return val;
> >
> > So this also works without the indirect, and just add the immediate to
> > the value.
>
> Not sure what you are asking here. The immediate adds to the current
> value, where as the indirect will then look what's at that location.
I expected that the immediate offset is only meaningful with the
indirect (dereference) as the doc says just about it. So I asked it
was intentional or not.
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]