perf: Rework/fix the whole read vs group stuff
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 13 Aug 2009 09:47:53 +0000 (11:47 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 13 Aug 2009 10:58:04 +0000 (12:58 +0200)
commit3dab77fb1bf89664bb1c9544607159dcab6f7d57
tree9b0a47c53784cb066cecfd3091ac6042ce21a29e
parentbcfc2602e8541ac13b1def38e2591dca072cff7a
perf: Rework/fix the whole read vs group stuff

Replace PERF_SAMPLE_GROUP with PERF_SAMPLE_READ and introduce
PERF_FORMAT_GROUP to deal with group reads in a more generic
way.

This allows you to get group reads out of read() as well.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Corey J Ashford <cjashfor@us.ibm.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: stephane eranian <eranian@googlemail.com>
LKML-Reference: <20090813103655.117411814@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/perf_counter.h
kernel/perf_counter.c