Re: [PATCH 00/11] generic software counters -v2

From: Ingo Molnar
Date: Fri Mar 13 2009 - 09:08:09 EST



* Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> wrote:

> This patch set improves the current software counters by
> providing sampling events for most of them.
>
> The clock based software counters use hrtimers to generate
> events, allowing sample based profiling without hardware
> support -- obviously this has limited functionality for kernal
> based profiling since we disable interrupts quite frequently,
> but should be good for userspace.
>
> Other events like pagefaults insert simple hooks into the
> actual pagefault code to generate these events.

Very nice series! Applied to tip:core/locking and
tip:perfcounters/core - thanks Peter!

Fixed a trivial !PERF_COUNTERS build failure as well.

> Future work (in-progress) will hook into the tracepoint
> infrastructure to to provide profiling events.

Cool!

Especially for pagefaults we have a number of callbacks there:
kmmio, kprobes, kmemcheck, tracing, perfcounters - they could
indeed all be consolidated step by step onto a tracepoint.

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/