Commit-ID: 18408ddc01136f505ae357c03f0d8e50b10e0db6 Gitweb: http://git.kernel.org/tip/18408ddc01136f505ae357c03f0d8e50b10e0db6 Author: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> AuthorDate: Thu, 13 Aug 2009 11:47:55 +0200 Committer: Ingo Molnar <mingo@xxxxxxx> CommitDate: Sat, 15 Aug 2009 12:00:09 +0200 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 <a.p.zijlstra@xxxxxxxxx> Cc: Corey J Ashford <cjashfor@xxxxxxxxxx> Cc: Paul Mackerras <paulus@xxxxxxxxx> Cc: stephane eranian <eranian@xxxxxxxxxxxxxx> LKML-Reference: <20090813103655.334194326@xxxxxxxxx> Signed-off-by: Ingo Molnar <mingo@xxxxxxx> --- tools/perf/util/event.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index d26dc88..fa7c50b 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h @@ -4,6 +4,9 @@ #include "util.h" #include <linux/list.h> +/* + * 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; -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |