Blame man/man3/PAPI_num_events.3

Packit Service a1973e
.TH "PAPI_num_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_num_events \- 
Packit Service a1973e
.PP
Packit Service a1973e
Return the number of 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
\fBPAPI_num_events()\fP returns the number of preset and/or native events contained in an event set\&. The event set should be created by \fBPAPI_create_eventset\fP \&.
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_num_events(int  EventSet )\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 created by \fBPAPI_create_eventset\fP\&. 
Packit Service a1973e
.br
Packit Service a1973e
\fI*count\fP -- (Fortran only) On output the variable contains the number of events in the event set
Packit Service a1973e
.RE
Packit Service a1973e
.PP
Packit Service a1973e
\fBReturn values:\fP
Packit Service a1973e
.RS 4
Packit Service a1973e
\fIOn\fP success, this function returns the positive number of events in the event set\&. 
Packit Service a1973e
.br
Packit Service a1973e
\fIPAPI_EINVAL\fP The event count is zero; only if code is compiled with debug enabled\&. 
Packit Service a1973e
.br
Packit Service a1973e
\fIPAPI_ENOEVST\fP The EventSet specified does not exist\&.
Packit Service a1973e
.RE
Packit Service a1973e
.PP
Packit Service a1973e
\fBExample\fP
Packit Service a1973e
.RS 4
Packit Service a1973e
Packit Service a1973e
.PP
Packit Service a1973e
.nf
Packit Service a1973e
* // Count the events in our EventSet 
Packit Service a1973e
* printf(\"%d events found in EventSet\&.\\n\", PAPI_num_events(EventSet));
Packit Service a1973e
* 
Packit Service a1973e
Packit Service a1973e
.fi
Packit Service a1973e
.PP
Packit Service a1973e
.RE
Packit Service a1973e
.PP
Packit Service a1973e
\fBSee Also:\fP
Packit Service a1973e
.RS 4
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
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\&.