From 03b4298b1b9b363a6281fc14457b16fe1e31653b Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Wed, 5 May 2010 11:20:05 -0300 Subject: [PATCH] --- yaml --- r: 191285 b: refs/heads/master c: 9e32a3cb0661a6a30e0fd2b77ce85293805e6337 h: refs/heads/master i: 191283: dc2cd1cc3451310fd9d15b32d10a275ef7e5039e v: v3 --- [refs] | 2 +- trunk/tools/perf/Documentation/perf-list.txt | 18 ++++++++++++++++++ trunk/tools/perf/util/parse-events.c | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index cafa6088755e..491d300df28c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: db620b1c2fb172346dc54eb62bba9b4a117d173b +refs/heads/master: 9e32a3cb0661a6a30e0fd2b77ce85293805e6337 diff --git a/trunk/tools/perf/Documentation/perf-list.txt b/trunk/tools/perf/Documentation/perf-list.txt index 8290b9422668..ad765e0b8860 100644 --- a/trunk/tools/perf/Documentation/perf-list.txt +++ b/trunk/tools/perf/Documentation/perf-list.txt @@ -15,6 +15,24 @@ DESCRIPTION This command displays the symbolic event types which can be selected in the various perf commands with the -e option. +RAW HARDWARE EVENT DESCRIPTOR +----------------------------- +Even when an event is not available in a symbolic form within perf right now, +it can be encoded as , for instance, if the Intel docs +describe an event as: + + Event Umask Event Mask + Num. Value Mnemonic Description Comment + + A8H 01H LSD.UOPS Counts the number of micro-ops Use cmask=1 and + delivered by loop stream detector invert to count + cycles + +raw encoding of 0x1A8 can be used: + + perf stat -e r1a8 -a sleep 1 + perf record -e r1a8 ... + OPTIONS ------- None diff --git a/trunk/tools/perf/util/parse-events.c b/trunk/tools/perf/util/parse-events.c index 600d32714257..bc8b7e614207 100644 --- a/trunk/tools/perf/util/parse-events.c +++ b/trunk/tools/perf/util/parse-events.c @@ -936,7 +936,7 @@ void print_events(void) printf("\n"); printf(" %-42s [%s]\n", - "rNNN", event_type_descriptors[PERF_TYPE_RAW]); + "rNNN (NNN=)", event_type_descriptors[PERF_TYPE_RAW]); printf("\n"); printf(" %-42s [%s]\n",