Re: [RFC PATCHSET] sched,perf: unify tracers in sched and move perfon top of TP

From: Ingo Molnar
Date: Wed May 05 2010 - 12:56:17 EST



* Tejun Heo <tj@xxxxxxxxxx> wrote:

> Hello,
>
> On 05/05/2010 01:38 PM, Peter Zijlstra wrote:
> > As it stands I'd argue to simply drop this whole idea. The SCHED_EVENT()
> > thing doesn't look like its worth the obfuscation and I'm very much
> > opposed to making perf and sched_notifiers rely on tracepoints.
>
> Hmmm... okay. Well, this thing is born out of Ingo's suggestion that for
> more sched notifiers to be added notification mechanisms need to be
> consolidated. As long as I can get those two notifiers needed for cmwq,
> it's okay with me. Ingo, what do you think?

I'd much rather see the *_EVENT() APIs used - but enhanced to address Peter's
objections. One change would be to add a DEFINE_EVENT_ABI() variant, which
would be called via trace_abi_*() calls. That way we always know they are
'hardwired' events in the extreme.

That then would allow the software events to be consolidated.

Peter?

Ingo
--
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/