Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PAPI and native events

Tags:

c

papi

Is it possible to find the set of native events (CPU counter registers) that maps to a PAPI event ?

like image 519
user1511956 Avatar asked Jul 05 '26 09:07

user1511956


1 Answers

If you have papi installed, you can use papi_avail to get the native events. For example,

papi_avail -e PAPI_TOT_INS

Event name: PAPI_TOT_INS
Event Code: 0x80000032
Number of Native Events: 1 Short Description: |Instr completed|
Long Description: |Instructions completed|
Developer's Notes: ||
Derived Type: |NOT_DERIVED|
Postfix Processing String: ||
Native Code[0]: 0x40000002 |INSTRUCTION_RETIRED|
Number of Register Values: 0
Native Event Description: |Number of instructions at retirement|

-Ganesh

like image 116
Ganesh Avatar answered Jul 06 '26 21:07

Ganesh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!