Re: disabling group leader perf_event

From: Ingo Molnar
Date: Mon Sep 06 2010 - 08:43:44 EST



* Avi Kivity <avi@xxxxxxxxxx> wrote:

> > Being able to make histograms in-kernel has been on the todo list
> > for a long while, its just that I never could come up with a sane
> > interface.. :/
>
> Interesting, I thought it was just me.
>
> One option is to keep the existing filter interface, but recognize
> those cases and optimize the implementation. Sort of like a compiler
> can optimize a large dense switch statement to a jump table.

Yes. The filter engine is a safe, in-kernel interpreted language in the
making. The C syntax was chosen because it's close to the heart of every
kernel developer.

It might make sense to bring this concept a few steps further. Looks
rather complex but also rather cool ...

Thanks,

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/