Re: [PATCH 3/5] ftrace perf: Use ftrace_ops::private to store event pointer

From: Peter Zijlstra
Date: Wed Mar 23 2016 - 10:27:03 EST


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?