Re: [PATCH 3/7 v6] perf/core: Add a callback to perf events

From: Frederic Weisbecker
Date: Tue Nov 17 2009 - 19:18:28 EST


On Tue, Nov 17, 2009 at 12:28:53PM +0100, Peter Zijlstra wrote:
> On Sun, 2009-11-08 at 16:28 +0100, Frederic Weisbecker wrote:
> > A simple callback in a perf event can be used for multiple purposes.
> > For example it is useful for triggered based events like hardware
> > breakpoints that need a callback to dispatch a triggered breakpoint
> > event.
> >
> > v2: Simplify a bit the callback attribution as suggested by Paul
> > Mackerras
>
> Yuck! So we add an opaque callback without semantics nor usage.


Yeah, this is intended for events that need to be able to trigger
events to different channels. In the case of hw-breakpoints, it's
either perf buffer, ptrace, etc...

Should I add some comments about it?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/