File: PAPI_get_overflow_event_index.3

package info (click to toggle)
papi 5.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 27,244 kB
  • ctags: 37,740
  • sloc: ansic: 384,780; makefile: 3,319; fortran: 3,306; xml: 2,460; sh: 791; python: 515; perl: 269; asm: 24
file content (65 lines) | stat: -rw-r--r-- 1,826 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
.TH "PAPI_get_overflow_event_index" 3 "Mon Jun 30 2014" "Version 5.3.2.0" "PAPI" \" -*- nroff -*-
.ad l
.nh
.SH NAME
PAPI_get_overflow_event_index \- 
.PP
converts an overflow vector into an array of indexes to overflowing events  

.SH SYNOPSIS
.br
.PP
.SH "Detailed Description"
.PP 

.PP
.nf
@param EventSet
    an integer handle to a PAPI event set as created by PAPI_create_eventset
@param overflow_vector
    a vector with bits set for each counter that overflowed. 
    This vector is passed by the system to the overflow handler routine.
@param *array
    an array of indexes for events in EventSet. 
    No more than *number indexes will be stored into the array.
@param *number 
    On input the variable determines the size of the array. 
    On output the variable contains the number of indexes in the array. 

@retval PAPI_EINVAL 
    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.
@retval PAPI_ENOEVST
The EventSet specified does not exist.
@par Examples

.fi
.PP
 
.PP
.nf
        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]);}
*   

.fi
.PP
  
.PP
.nf
@see PAPI_overflow
.fi
.PP
 

.SH "Author"
.PP 
Generated automatically by Doxygen for PAPI from the source code\&.