Is it possible to find the set of native events (CPU counter registers) that maps to a PAPI event ?
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