lkml.org 
[lkml]   [2018]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 09/18] tracing: Add indexing of arguments for function based events
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@kernel.org> 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

\
 
 \ /
  Last update: 2018-02-09 00:57    [W:0.071 / U:0.924 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site