From: Peter Zijlstra Date: Thu, 13 Aug 2009 09:47:55 +0000 (+0200) Subject: perf tools: Add some comments to the event definitions X-Git-Tag: v2.6.32-rc1~720^2~44 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=18408ddc01136f505ae357c03f0d8e50b10e0db6;p=~shefty%2Frdma-dev.git perf tools: Add some comments to the event definitions Just to make it clear that these are _not_ generic event structures but do rely on the counter configuration. Signed-off-by: Peter Zijlstra Cc: Corey J Ashford Cc: Paul Mackerras Cc: stephane eranian LKML-Reference: <20090813103655.334194326@chello.nl> Signed-off-by: Ingo Molnar --- diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index d26dc887ce5..fa7c50b654e 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h @@ -4,6 +4,9 @@ #include "util.h" #include +/* + * PERF_SAMPLE_IP | PERF_SAMPLE_TID | * + */ struct ip_event { struct perf_event_header header; u64 ip; @@ -38,6 +41,9 @@ struct lost_event { u64 lost; }; +/* + * PERF_FORMAT_ENABLED | PERF_FORMAT_RUNNING | PERF_FORMAT_ID + */ struct read_event { struct perf_event_header header; u32 pid,tid;