• Peter Zijlstra's avatar
    perf_counter: optionally provide the pid/tid of the sampled task · ea5d20cf
    Peter Zijlstra authored
    Allow cpu wide counters to profile userspace by providing what process
    the sample belongs to.
    
    This raises the first issue with the output type, lots of these
    options: group, tid, callchain, etc.. are non-exclusive and could be
    combined, suggesting a bitfield.
    
    However, things like the mmap() data stream doesn't fit in that.
    
    How to split the type field...
    Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Arjan van de Ven <arjan@infradead.org>
    Cc: Wu Fengguang <fengguang.wu@intel.com>
    Orig-LKML-Reference: <20090325113317.013775235@chello.nl>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    ea5d20cf
perf_counter.c 62 KB