Blame man/man3/PAPI_list_events.3

Packit Service a1973e
.TH "PAPI_list_events" 3 "Mon Dec 18 2017" "Version 5.6.0.0" "PAPI" \" -*- nroff -*-
Packit Service a1973e
.ad l
Packit Service a1973e
.nh
Packit Service a1973e
.SH NAME
Packit Service a1973e
PAPI_list_events \- 
Packit Service a1973e
.PP
Packit Service a1973e
list the events in an event set  
Packit Service a1973e
Packit Service a1973e
.SH SYNOPSIS
Packit Service a1973e
.br
Packit Service a1973e
.PP
Packit Service a1973e
.SH "Detailed Description"
Packit Service a1973e
.PP 
Packit Service a1973e
List the events in an event set\&.
Packit Service a1973e
.PP
Packit Service a1973e
.PP
Packit Service a1973e
.nf
Packit Service a1973e
PAPI_list_events() returns an array of events and a count of the
Packit Service a1973e
.fi
Packit Service a1973e
.PP
Packit Service a1973e
 total number of events in an event set\&. This call assumes an initialized PAPI library and a successfully created event set\&.
Packit Service a1973e
.PP
Packit Service a1973e
\fBC Interface\fP
Packit Service a1973e
.RS 4
Packit Service a1973e
#include <\fBpapi\&.h\fP> 
Packit Service a1973e
.br
Packit Service a1973e
 int \fBPAPI_list_events(int *EventSet, int *Events, int *number )\fP;
Packit Service a1973e
.RE
Packit Service a1973e
.PP
Packit Service a1973e
\fBParameters:\fP
Packit Service a1973e
.RS 4
Packit Service a1973e
\fIEventSet\fP An integer handle for a PAPI event set as created by \fBPAPI_create_eventset\fP 
Packit Service a1973e
.br
Packit Service a1973e
\fI*Events\fP A pointer to a preallocated array of codes for events, such as PAPI_INT_INS\&. No more than *number codes will be stored into the array\&. 
Packit Service a1973e
.br
Packit Service a1973e
\fI*number\fP On input, the size of the Events array, or maximum number of event codes to be returned\&. A value of 0 can be used to probe an event set\&. On output, the number of events actually in the event set\&. This value may be greater than the actually stored number of event codes\&.
Packit Service a1973e
.RE
Packit Service a1973e
.PP
Packit Service a1973e
\fBReturn values:\fP
Packit Service a1973e
.RS 4
Packit Service a1973e
\fIPAPI_EINVAL\fP 
Packit Service a1973e
.br
Packit Service a1973e
\fIPAPI_ENOEVST\fP 
Packit Service a1973e
.RE
Packit Service a1973e
.PP
Packit Service a1973e
\fBExamples:\fP
Packit Service a1973e
.RS 4
Packit Service a1973e
Packit Service a1973e
.PP
Packit Service a1973e
.nf
Packit Service a1973e
        if (PAPI_event_name_to_code("PAPI_TOT_INS",&EventCode) != PAPI_OK)
Packit Service a1973e
        exit(1);
Packit Service a1973e
        if (PAPI_add_event(EventSet, EventCode) != PAPI_OK)
Packit Service a1973e
        exit(1);
Packit Service a1973e
        Convert a second event name to an event code 
Packit Service a1973e
        if (PAPI_event_name_to_code("PAPI_L1_LDM",&EventCode) != PAPI_OK)
Packit Service a1973e
        exit(1);
Packit Service a1973e
        if (PAPI_add_event(EventSet, EventCode) != PAPI_OK)
Packit Service a1973e
        exit(1);
Packit Service a1973e
        number = 0;
Packit Service a1973e
        if(PAPI_list_events(EventSet, NULL, &number))
Packit Service a1973e
        exit(1);
Packit Service a1973e
        if(number != 2)
Packit Service a1973e
        exit(1);
Packit Service a1973e
        if(PAPI_list_events(EventSet, Events, &number))
Packit Service a1973e
        exit(1);
Packit Service a1973e
*   
Packit Service a1973e
Packit Service a1973e
.fi
Packit Service a1973e
.PP
Packit Service a1973e
 
Packit Service a1973e
.RE
Packit Service a1973e
.PP
Packit Service a1973e
\fBSee Also:\fP
Packit Service a1973e
.RS 4
Packit Service a1973e
\fBPAPI_event_code_to_name\fP 
Packit Service a1973e
.PP
Packit Service a1973e
\fBPAPI_event_name_to_code\fP 
Packit Service a1973e
.PP
Packit Service a1973e
\fBPAPI_add_event\fP 
Packit Service a1973e
.PP
Packit Service a1973e
\fBPAPI_create_eventset\fP
Packit Service a1973e
.RE
Packit Service a1973e
.PP
Packit Service a1973e
\fBFortran Interface:\fP
Packit Service a1973e
.RS 4
Packit Service a1973e
#include 'fpapi\&.h' 
Packit Service a1973e
.br
Packit Service a1973e
 \fBPAPI_list_events\fP( C_INT EventSet, C_INT(*) Events, C_INT number, C_INT check )
Packit Service a1973e
.RE
Packit Service a1973e
.PP
Packit Service a1973e
\fBSee Also:\fP
Packit Service a1973e
.RS 4
Packit Service a1973e
\fBPAPI_list_events\fP 
Packit Service a1973e
.RE
Packit Service a1973e
.PP
Packit Service a1973e
Packit Service a1973e
Packit Service a1973e
.SH "Author"
Packit Service a1973e
.PP 
Packit Service a1973e
Generated automatically by Doxygen for PAPI from the source code\&.