PAPI_get_overflow_event_index(3)
π PAPI_get_overflow_event_index(3) π
okay bestie, welcome to the PAPI manual page for PAPI_get_overflow_event_index(3) β yes, the manual name is PAPI, and this function is giving βturn the overflow vector into an array of indexes to overflowing eventsβ energy. no cap, letβs get into it π«Άβ¨
πΈ NAME πΈ
PAPI_get_overflow_event_index β converts an overflow vector into an array of indexes to overflowing events π
π¦ SYNOPSIS π¦
β¨ Detailed Description β¨
π Parameters π
EventSetβ an integer handle to a PAPI event set as created byPAPI_create_eventsetπoverflow_vectorβ a vector with bits set for each counter that overflowed. This vector is passed by the system to the overflow handler routine. π*arrayβ an array of indexes for events inEventSet. No more than*numberindexes will be stored into the array. πΈ*numberβ on input the variable determines the size of the array. On output the variable contains the number of indexes in the array. π¦
π©· Return values π©·
PAPI_EINVALβ one or more of the arguments is invalid. This could occur if theoverflow_vectoris empty (zero), if thearrayornumberpointers areNULL, if the value ofnumberis less than one, or if theEventSetis empty. πPAPI_ENOEVSTβ theEventSetspecified does not exist. π
π₯ Examples π₯
void handler(int EventSet, void *address, long_long overflow_vector, void *context){
int Events[4], number, i;
int total = 0, retval;
printf("Overflow #%d\n Handler(%d) Overflow at %p! vector=%#llx\n",
total, EventSet, address, overflow_vector);
total++;
number = 4;
retval = PAPI_get_overflow_event_index(EventSet,
overflow_vector, Events, &number);
if(retval == PAPI_OK)
for(i=0; i<number; i++) printf("Event index[%d] = %d", i, Events[i]);}
π See also π
PAPI_overflowπ
π Author π
Generated automatically by Doxygen for PAPI from the source code. π§
okay bye bestie π β this is from PAPI version 7.2.0.0, dated Wed Jun 25 2025, and the footer had that little 19:PAPI_get_overflow_event_index(3) timestamp-ish fragment. slay, periodt. πβ¨
π¦ where this page comes from
- nixos 26.05: papi 7.2.0
- nixpkgs unstable: papi 7.2.0
- opensuse-leap 16.0: papi-devel 7.2.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: papi-devel 7.2.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: papi-devel 7.2.0-160000.2.2 Β· BSD-3-Clause
- ubuntu resolute: libpapi-dev 7.2.0-2 Β· BSD-3-Clause
- ubuntu stonking: libpapi-dev 7.2.0-2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms