perf: add one more perf event support

With current perf framework, this patch adds support and documentation
for the branch_instructions perf event.

Signed-off-by: Nitesh Konkar <nitkon12@linux.vnet.ibm.com>
This commit is contained in:
Nitesh Konkar
2016-12-07 16:27:36 +05:30
committed by John Ferlan
parent 016b63bdf0
commit 8546adf80b
9 changed files with 34 additions and 5 deletions

View File

@@ -945,7 +945,8 @@ I<--perf> returns the statistics of all enabled perf events:
"perf.cpu_cycles" - the count of cpu cycles (total/elapsed),
"perf.instructions" - the count of instructions,
"perf.cache_references" - the count of cache hits,
"perf.cache_misses" - the count of caches misses
"perf.cache_misses" - the count of caches misses,
"perf.branch_instructions" - the count of application branch instructions
See the B<perf> command for more details about each event.
@@ -2292,6 +2293,9 @@ B<Valid perf event names>
(total/elapsed). May be used with
instructions in order to get a cycles
per instruction.
branch_instructions - Provides the count of branch instructions
executed by applications running on the
platform.
B<Note>: The statistics can be retrieved using the B<domstats> command using
the I<--perf> flag.