Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191285
b: refs/heads/master
c: 9e32a3c
h: refs/heads/master
i:
  191283: dc2cd1c
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed May 5, 2010
1 parent 676aea8 commit 03b4298
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: db620b1c2fb172346dc54eb62bba9b4a117d173b
refs/heads/master: 9e32a3cb0661a6a30e0fd2b77ce85293805e6337
18 changes: 18 additions & 0 deletions trunk/tools/perf/Documentation/perf-list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 <UMASK VALUE><EVENT NUM>, 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
Expand Down
2 changes: 1 addition & 1 deletion trunk/tools/perf/util/parse-events.c
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ void print_events(void)

printf("\n");
printf(" %-42s [%s]\n",
"rNNN", event_type_descriptors[PERF_TYPE_RAW]);
"rNNN (NNN=<UMASK VALUE><EVENT NUM>)", event_type_descriptors[PERF_TYPE_RAW]);
printf("\n");

printf(" %-42s [%s]\n",
Expand Down

0 comments on commit 03b4298

Please sign in to comment.