diff options
-rw-r--r-- | tools/perf/Documentation/perf-list.txt | 18 | ||||
-rw-r--r-- | tools/perf/util/parse-events.c | 2 |
2 files changed, 19 insertions, 1 deletions
diff --git a/tools/perf/Documentation/perf-list.txt b/tools/perf/Documentation/perf-list.txt index 8290b9422668..ad765e0b8860 100644 --- a/tools/perf/Documentation/perf-list.txt +++ b/tools/perf/Documentation/perf-list.txt | |||
@@ -15,6 +15,24 @@ DESCRIPTION | |||
15 | This command displays the symbolic event types which can be selected in the | 15 | This command displays the symbolic event types which can be selected in the |
16 | various perf commands with the -e option. | 16 | various perf commands with the -e option. |
17 | 17 | ||
18 | RAW HARDWARE EVENT DESCRIPTOR | ||
19 | ----------------------------- | ||
20 | Even when an event is not available in a symbolic form within perf right now, | ||
21 | it can be encoded as <UMASK VALUE><EVENT NUM>, for instance, if the Intel docs | ||
22 | describe an event as: | ||
23 | |||
24 | Event Umask Event Mask | ||
25 | Num. Value Mnemonic Description Comment | ||
26 | |||
27 | A8H 01H LSD.UOPS Counts the number of micro-ops Use cmask=1 and | ||
28 | delivered by loop stream detector invert to count | ||
29 | cycles | ||
30 | |||
31 | raw encoding of 0x1A8 can be used: | ||
32 | |||
33 | perf stat -e r1a8 -a sleep 1 | ||
34 | perf record -e r1a8 ... | ||
35 | |||
18 | OPTIONS | 36 | OPTIONS |
19 | ------- | 37 | ------- |
20 | None | 38 | None |
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 600d32714257..bc8b7e614207 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c | |||
@@ -936,7 +936,7 @@ void print_events(void) | |||
936 | 936 | ||
937 | printf("\n"); | 937 | printf("\n"); |
938 | printf(" %-42s [%s]\n", | 938 | printf(" %-42s [%s]\n", |
939 | "rNNN", event_type_descriptors[PERF_TYPE_RAW]); | 939 | "rNNN (NNN=<UMASK VALUE><EVENT NUM>)", event_type_descriptors[PERF_TYPE_RAW]); |
940 | printf("\n"); | 940 | printf("\n"); |
941 | 941 | ||
942 | printf(" %-42s [%s]\n", | 942 | printf(" %-42s [%s]\n", |