Events

Bellow the list of all events supported by PAPI. They can be used with the start_counters() function:

from pypapi import papi_high
from pypapi import events as papi_events

papi_high.start_counters([
    papi_events.PAPI_FP_OPS,
    papi_events.PAPI_TOT_CYC
])

Event List

pypapi.events.PAPI_BRU_IDL = -2147483632

Cycles branch units are idle

pypapi.events.PAPI_BR_CN = -2147483605

Conditional branch instructions executed

pypapi.events.PAPI_BR_INS = -2147483593

Total branch instructions executed

pypapi.events.PAPI_BR_MSP = -2147483602

Conditional branch instructions mispred

pypapi.events.PAPI_BR_NTK = -2147483603

Conditional branch instructions not taken

pypapi.events.PAPI_BR_PRC = -2147483601

Conditional branch instructions corr. pred

pypapi.events.PAPI_BR_TKN = -2147483604

Conditional branch instructions taken

pypapi.events.PAPI_BR_UCN = -2147483606

Unconditional branch instructions executed

pypapi.events.PAPI_BTAC_M = -2147483621

BTAC miss

pypapi.events.PAPI_CA_CLN = -2147483637

Request for clean cache line (SMP)

pypapi.events.PAPI_CA_INV = -2147483636

Request for cache line Invalidation (SMP)

pypapi.events.PAPI_CA_ITV = -2147483635

Request for cache line Intervention (SMP)

pypapi.events.PAPI_CA_SHR = -2147483638

Request for shared cache line (SMP)

pypapi.events.PAPI_CA_SNP = -2147483639

Snoops

pypapi.events.PAPI_CSR_FAL = -2147483617

Failed store conditional instructions

pypapi.events.PAPI_CSR_SUC = -2147483616

Successful store conditional instructions

pypapi.events.PAPI_CSR_TOT = -2147483615

Total store conditional instructions

pypapi.events.PAPI_DP_OPS = -2147483544

Floating point operations executed; optimized to count scaled double precision vector operations

pypapi.events.PAPI_END = -2147483540

This should always be last!

pypapi.events.PAPI_FAD_INS = -2147483550

FA ins

pypapi.events.PAPI_FDV_INS = -2147483549

FD ins

pypapi.events.PAPI_FMA_INS = -2147483600

FMA instructions completed

pypapi.events.PAPI_FML_INS = -2147483551

FM ins

pypapi.events.PAPI_FNV_INS = -2147483547

Finv ins

pypapi.events.PAPI_FPU_IDL = -2147483630

Cycles floating point units are idle

pypapi.events.PAPI_FP_INS = -2147483596

Floating point instructions executed

pypapi.events.PAPI_FP_OPS = -2147483546

Floating point operations executed

pypapi.events.PAPI_FP_STAL = -2147483590

Cycles any FP units are stalled

pypapi.events.PAPI_FSQ_INS = -2147483548

FSq ins

pypapi.events.PAPI_FUL_CCY = -2147483608

Cycles with Maximum Instruction Completion

pypapi.events.PAPI_FUL_ICY = -2147483610

Cycles with Maximum Instruction Issue

pypapi.events.PAPI_FXU_IDL = -2147483631

Cycles integer units are idle

pypapi.events.PAPI_HW_INT = -2147483607

Hardware interrupts

pypapi.events.PAPI_INT_INS = -2147483597

Integer instructions executed

pypapi.events.PAPI_L1_DCA = -2147483584

L1 D Cache Access

pypapi.events.PAPI_L1_DCH = -2147483586

L1 D Cache Hit

pypapi.events.PAPI_L1_DCM = -2147483648

Level 1 data cache misses

pypapi.events.PAPI_L1_DCR = -2147483581

L1 D Cache Read

pypapi.events.PAPI_L1_DCW = -2147483578

L1 D Cache Write

pypapi.events.PAPI_L1_ICA = -2147483572

L1 instruction cache accesses

pypapi.events.PAPI_L1_ICH = -2147483575

L1 instruction cache hits

pypapi.events.PAPI_L1_ICM = -2147483647

Level 1 instruction cache misses

pypapi.events.PAPI_L1_ICR = -2147483569

L1 instruction cache reads

pypapi.events.PAPI_L1_ICW = -2147483566

L1 instruction cache writes

pypapi.events.PAPI_L1_LDM = -2147483625

Level 1 load misses

pypapi.events.PAPI_L1_STM = -2147483624

Level 1 store misses

pypapi.events.PAPI_L1_TCA = -2147483560

L1 total cache accesses

pypapi.events.PAPI_L1_TCH = -2147483563

L1 total cache hits

pypapi.events.PAPI_L1_TCM = -2147483642

Level 1 total cache misses

pypapi.events.PAPI_L1_TCR = -2147483557

L1 total cache reads

pypapi.events.PAPI_L1_TCW = -2147483554

L1 total cache writes

pypapi.events.PAPI_L2_DCA = -2147483583

L2 D Cache Access

pypapi.events.PAPI_L2_DCH = -2147483585

L2 D Cache Hit

pypapi.events.PAPI_L2_DCM = -2147483646

Level 2 data cache misses

pypapi.events.PAPI_L2_DCR = -2147483580

L2 D Cache Read

pypapi.events.PAPI_L2_DCW = -2147483577

L2 D Cache Write

pypapi.events.PAPI_L2_ICA = -2147483571

L2 instruction cache accesses

pypapi.events.PAPI_L2_ICH = -2147483574

L2 instruction cache hits

pypapi.events.PAPI_L2_ICM = -2147483645

Level 2 instruction cache misses

pypapi.events.PAPI_L2_ICR = -2147483568

L2 instruction cache reads

pypapi.events.PAPI_L2_ICW = -2147483565

L2 instruction cache writes

pypapi.events.PAPI_L2_LDM = -2147483623

Level 2 load misses

pypapi.events.PAPI_L2_STM = -2147483622

Level 2 store misses

pypapi.events.PAPI_L2_TCA = -2147483559

L2 total cache accesses

pypapi.events.PAPI_L2_TCH = -2147483562

L2 total cache hits

pypapi.events.PAPI_L2_TCM = -2147483641

Level 2 total cache misses

pypapi.events.PAPI_L2_TCR = -2147483556

L2 total cache reads

pypapi.events.PAPI_L2_TCW = -2147483553

L2 total cache writes

pypapi.events.PAPI_L3_DCA = -2147483582

L3 D Cache Access

pypapi.events.PAPI_L3_DCH = -2147483619

Level 3 Data Cache Hit

pypapi.events.PAPI_L3_DCM = -2147483644

Level 3 data cache misses

pypapi.events.PAPI_L3_DCR = -2147483579

L3 D Cache Read

pypapi.events.PAPI_L3_DCW = -2147483576

L3 D Cache Write

pypapi.events.PAPI_L3_ICA = -2147483570

L3 instruction cache accesses

pypapi.events.PAPI_L3_ICH = -2147483573

L3 instruction cache hits

pypapi.events.PAPI_L3_ICM = -2147483643

Level 3 instruction cache misses

pypapi.events.PAPI_L3_ICR = -2147483567

L3 instruction cache reads

pypapi.events.PAPI_L3_ICW = -2147483564

L3 instruction cache writes

pypapi.events.PAPI_L3_LDM = -2147483634

Level 3 load misses

pypapi.events.PAPI_L3_STM = -2147483633

Level 3 store misses

pypapi.events.PAPI_L3_TCA = -2147483558

L3 total cache accesses

pypapi.events.PAPI_L3_TCH = -2147483561

L3 total cache hits

pypapi.events.PAPI_L3_TCM = -2147483640

Level 3 total cache misses

pypapi.events.PAPI_L3_TCR = -2147483555

L3 total cache reads

pypapi.events.PAPI_L3_TCW = -2147483552

L3 total cache writes

pypapi.events.PAPI_LD_INS = -2147483595

Load instructions executed

pypapi.events.PAPI_LST_INS = -2147483588

Total load/store inst. executed

pypapi.events.PAPI_LSU_IDL = -2147483629

Cycles load/store units are idle

pypapi.events.PAPI_MAX_PRESET_EVENTS = 128

The maxmimum number of preset events

pypapi.events.PAPI_MAX_USER_EVENTS = 50

The maxmimum number of user defined events

pypapi.events.PAPI_MEM_RCY = -2147483613

Cycles Stalled Waiting for Memory Read

pypapi.events.PAPI_MEM_SCY = -2147483614

Cycles Stalled Waiting for Memory Access

pypapi.events.PAPI_MEM_WCY = -2147483612

Cycles Stalled Waiting for Memory Write

pypapi.events.PAPI_NATIVE_AND_MASK = 3221225471

this masks just the native bit

pypapi.events.PAPI_PRF_DM = -2147483620

Prefetch data instruction caused a miss

pypapi.events.PAPI_REF_CYC = -2147483541

Reference clock cycles

pypapi.events.PAPI_RES_STL = -2147483591

Cycles processor is stalled on resource

pypapi.events.PAPI_SP_OPS = -2147483545

Floating point operations executed; optimized to count scaled single precision vector operations

pypapi.events.PAPI_SR_INS = -2147483594

Store instructions executed

pypapi.events.PAPI_STL_CCY = -2147483609

Cycles with No Instruction Completion

pypapi.events.PAPI_STL_ICY = -2147483611

Cycles with No Instruction Issue

pypapi.events.PAPI_SYC_INS = -2147483587

Sync. inst. executed

pypapi.events.PAPI_TLB_DM = -2147483628

Data translation lookaside buffer misses

pypapi.events.PAPI_TLB_IM = -2147483627

Instr translation lookaside buffer misses

pypapi.events.PAPI_TLB_SD = -2147483618

Xlation lookaside buffer shootdowns (SMP)

pypapi.events.PAPI_TLB_TL = -2147483626

Total translation lookaside buffer misses

pypapi.events.PAPI_TOT_CYC = -2147483589

Total cycles executed

pypapi.events.PAPI_TOT_IIS = -2147483599

Total instructions issued

pypapi.events.PAPI_TOT_INS = -2147483598

Total instructions executed

pypapi.events.PAPI_VEC_DP = -2147483542

Double precision vector/SIMD instructions

pypapi.events.PAPI_VEC_INS = -2147483592

Vector/SIMD instructions executed (could include integer)

pypapi.events.PAPI_VEC_SP = -2147483543

Single precision vector/SIMD instructions

pypapi.events.USER_EVENT_OPERATION_LEN = 512

The maximum length of the operation string for user defined events