PAPI_assign_eventset_component - Online Linux Manual PageSection : 3
Updated : April, 2007
Source : PAPI Programmer's Reference
Note : PAPI
NAMEPAPI_assign_eventset_component − assign a component index to an existing but empty EventSet
SYNOPSISC Interface #include <papi.h>
PAPI_assign_eventset_component (int EventSet, int cidx);
DESCRIPTIONPAPI_assign_eventset_component()" assigns a specific component index, as specified by cidx," to a new EventSet identified by EventSet," as obtained from "PAPI_create_eventset(3). EventSets are ordinarily automatically bound to components when the first event is added. This routine is useful to explicitly bind an EventSet to a component before setting component related options.
ARGUMENTSEventSet -- An integer identifier for an existing EventSet cidx -- An integer identifier for a component. By convention, component 0 is always the cpu component.
RETURN VALUES
On success, this function returns PAPI_OK."
On error, a non-zero error code is returned.
ERRORSPAPI_ENOCMP" The argument cidx is not a valid component. PAPI_ENOEVST" The EventSet doesn't exist. PAPI_ENOMEM" Insufficient memory to complete the operation.
EXAMPLES int EventSet = PAPI_NULL;
if (PAPI_create_eventset(&EventSet) != PAPI_OK)
handle_error(1);
/* Bind our EventSet to the cpu component */
if (PAPI_assign_eventset_component(EventSet, 0) != PAPI_OK)
handle_error(1);
/* Convert our EventSet to multiplexing */
if (PAPI_set_multiplex(EventSet) != PAPI_OK)
handle_error(1);
BUGSThis function has no known bugs.
SEE ALSOPAPI_create_eventset(3), PAPI_add_event (3), PAPI_set_multiplex (3)," PAPI_set_opt(3)" 0
Johanes Gumabo
Data Size : 7,071 byte
man-PAPI_assign_eventset_component.3Build : 2024-12-29, 07:25 :
Visitor Screen : x
Visitor Counter ( page / site ) : 5 / 256,590
Visitor ID : :
Visitor IP : 13.58.191.60 :
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.