Re: perf_counter: hook up the tracepoint events

From: Peter Zijlstra
Date: Wed Jul 29 2009 - 05:09:29 EST


On Wed, 2009-07-29 at 04:59 -0400, Jeff Garzik wrote:

> > @@ -957,6 +957,12 @@ config EVENT_PROFILE
> > bool "Tracepoint profile sources"
> > depends on PERF_COUNTERS && EVENT_TRACING
> > default y
> > + help
> > + Allow the use of tracepoints as software performance counters.
> > +
> > + When this is enabled, you can create perf counters based on
> > + tracepoints using PERF_TYPE_TRACEPOINT and the tracepoint ID
> > + found in debugfs://tracing/events/*/*/id.
>
> Thanks. Is this feature useful w/out debugfs?

Not really, but I was assuming (/me goes check) that EVENT_TRACING would
mandate debugfs being there.

Hmm kernel/trace/Kconfig seems a little select heavy, but I think it'll
work out and select DEBUG_FS too.

I'll queue up the patch and push it Linus wards this cycle.

Thanks!

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