PAPI_list_events - Online Linux Manual PageSection : 3
Updated : September, 2004
Source : PAPI Programmer's Reference
Note : PAPI
NAMEPAPI_list_events − list the events in an event set
SYNOPSISC Interface #include """papi.h"""
int PAPI_list_events(int EventSet, int *Events, int *number);Fortran Interface #include """fpapi.h"""
PAPIF_list_events(C_INT EventSet, C_INT(*) Events, C_INT number, C_INT check)
DESCRIPTIONPAPI_list_events( ) decomposes an event set into the hardware events it contains. This call assumes an initialized PAPI library and a successfully added event set.
ARGUMENTSEventSet -- An integer handle for a PAPI event set as created by "PAPI_create_eventset(3). *Events -- An array of codes for events, such as PAPI_INT_INS. No more than *number codes will be stored into the array. *number -- On input the variable determines the size of the Events array. On output the variable contains the number of counters in the event set. Note that if the given array Events is too short to hold all the counters in the event set the *number variable will be greater than the actually stored number of counter codes.
RETURN VALUESPAPI_OK" The call returned successfully. PAPI_EINVAL" One or more of the arguments is invalid. PAPI_ENOEVST" The EventSet specified does not exist.
EXAMPLES /* Convert an event name to an event code */
if (PAPI_event_name_to_code("PAPI_TOT_INS",&EventCode) != PAPI_OK)
exit(1);
/* Add Total Instructions Executed to our EventSet */
if (PAPI_add_event(EventSet, EventCode) != PAPI_OK)
exit(1);
/* Convert a second event name to an event code */
if (PAPI_event_name_to_code("PAPI_L1_LDM",&EventCode) != PAPI_OK)
exit(1);
/* Add L1 Load Misses to our EventSet */
if (PAPI_add_event(EventSet, EventCode) != PAPI_OK)
exit(1);
/* List the events in our EventSet */
number = 4;
if(PAPI_list_events(EventSet, Events, &number);
exit(1);
if(number != 2)
exit(1);
BUGSThis function has no known bugs.
SEE ALSOPAPI_event_name_to_code(3), PAPI_add_event (3), PAPI_create_eventset (3)," PAPI_event_code_to_name(3), PAPI (3)," 0
Johanes Gumabo
Data Size : 8,864 byte
man-PAPI_list_events.3Build : 2024-12-29, 07:25 :
Visitor Screen : x
Visitor Counter ( page / site ) : 5 / 256,308
Visitor ID : :
Visitor IP : 3.146.107.152 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.