Blame man/man3/PAPI_get_overflow_event_index.3

Packit 577717
.TH "PAPI_get_overflow_event_index" 3 "Mon Dec 18 2017" "Version 5.6.0.0" "PAPI" \" -*- nroff -*-
Packit 577717
.ad l
Packit 577717
.nh
Packit 577717
.SH NAME
Packit 577717
PAPI_get_overflow_event_index \- 
Packit 577717
.PP
Packit 577717
converts an overflow vector into an array of indexes to overflowing events  
Packit 577717
Packit 577717
.SH SYNOPSIS
Packit 577717
.br
Packit 577717
.PP
Packit 577717
.SH "Detailed Description"
Packit 577717
.PP 
Packit 577717
Packit 577717
.PP
Packit 577717
.nf
Packit 577717
@param EventSet
Packit 577717
    an integer handle to a PAPI event set as created by PAPI_create_eventset
Packit 577717
@param overflow_vector
Packit 577717
    a vector with bits set for each counter that overflowed. 
Packit 577717
    This vector is passed by the system to the overflow handler routine.
Packit 577717
@param *array
Packit 577717
    an array of indexes for events in EventSet. 
Packit 577717
    No more than *number indexes will be stored into the array.
Packit 577717
@param *number 
Packit 577717
    On input the variable determines the size of the array. 
Packit 577717
    On output the variable contains the number of indexes in the array. 
Packit 577717
Packit 577717
@retval PAPI_EINVAL 
Packit 577717
    One or more of the arguments is invalid. This could occur if the overflow_vector is empty (zero), if the array or number pointers are NULL, if the value of number is less than one, or if the EventSet is empty.
Packit 577717
@retval PAPI_ENOEVST
Packit 577717
The EventSet specified does not exist.
Packit 577717
@par Examples
Packit 577717
Packit 577717
.fi
Packit 577717
.PP
Packit 577717
 
Packit 577717
.PP
Packit 577717
.nf
Packit 577717
        void handler(int EventSet, void *address, long_long overflow_vector, void *context){
Packit 577717
        int Events[4], number, i;
Packit 577717
        int total = 0, retval;
Packit 577717
        printf("Overflow #%d\n  Handler(%d) Overflow at %p! vector=%#llx\n",
Packit 577717
        total, EventSet, address, overflow_vector);
Packit 577717
        total++;
Packit 577717
        number = 4;
Packit 577717
        retval = PAPI_get_overflow_event_index(EventSet,
Packit 577717
        overflow_vector, Events, &number);
Packit 577717
        if(retval == PAPI_OK)
Packit 577717
        for(i=0; i
Packit 577717
*   
Packit 577717
Packit 577717
.fi
Packit 577717
.PP
Packit 577717
  
Packit 577717
.PP
Packit 577717
.nf
Packit 577717
@see PAPI_overflow
Packit 577717
.fi
Packit 577717
.PP
Packit 577717
 
Packit 577717
Packit 577717
.SH "Author"
Packit 577717
.PP 
Packit 577717
Generated automatically by Doxygen for PAPI from the source code\&.