• P
    perf_counter: optionally provide the pid/tid of the sampled task · ea5d20cf
    Peter Zijlstra 提交于
    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: NPeter 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: NIngo Molnar <mingo@elte.hu>
    ea5d20cf
perf_counter.h 10.6 KB