lkml.org 
[lkml]   [2016]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/5] ftrace perf: Use ftrace_ops::private to store event pointer
On Thu, Mar 24, 2016 at 10:47:11AM +0100, Jiri Olsa wrote:
> On Wed, Mar 23, 2016 at 03:26:53PM +0100, Peter Zijlstra wrote:
> > On Wed, Mar 16, 2016 at 03:34:31PM +0100, Jiri Olsa wrote:
> > > Fixing this by using ftrace_ops::private value to keep
> > > the perf_event pointer. This way we don't need to search
> > > for triggered event (as tracepoint handler does) and
> > > directly store sample.
> >
> > container_of(ops, struct perf_event, ftrace_ops) would also have worked,
> > right?
>
> yes, I think that would work too

OK, no need to change, I was just seeing if I actually understood the
code.

\
 
 \ /
  Last update: 2016-03-24 12:01    [W:0.253 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site