lkml.org 
[lkml]   [2011]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] perf: Don't schedule tracepoints when exclude_kernel is set

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

> On Fri, 2011-04-08 at 22:57 +0200, Frederic Weisbecker wrote:
> > Instead of checking attr.exclude_kernel anytime a tracepoint
> > event triggers, simply don't schedule the tracepoint it that
> > attribute is set. This makes one test less in the tracing
> > path.
>
> Meh, I'd much rather someone spend some time on finishing the below,
> which is a much bigger improvement for trace-events.
>
> ---
> Subject: perf: Tracepoint collection support
> From: Peter Zijlstra <a.p.zijlstra@chello.nl>
> Date: Sat Nov 20 18:09:34 CET 2010
>
> Due to popular demand this implements a tracepoint collection event
> { .type = PERF_TYPE_TRACEPOINT, .config = ~0ULL }. by default it
> contains no tracepoints, but tracepoints can be added using:
> ioctl(fd, PERF_EVENT_IOC_ADD_TP, tp_id);

+1 !!!

This is like a super-important feature.

Thanks,

Ingo


\
 
 \ /
  Last update: 2011-04-09 15:19    [from the cache]
©2003-2011 Jasper Spaans