PAPI_get_event_info - Online Linux Manual PageSection : 3
Updated : September, 2004
Source : PAPI Programmer's Reference
Note : PAPI

NAMEPAPI_get_event_info − get the event's name and description info

SYNOPSISC Interface #include <papi.h> int PAPI_get_event_info(int EventCode, PAPI_event_info_t *info);Fortran Interface #include "fpapi.h" PAPIF_get_event_info(C_INT EventCode, C_STRING symbol, C_STRING long_descr, C_STRING short_descr, C_INT count, C_STRING event_note, C_INT flags,, C_INT check)

DESCRIPTIONIn C, this function fills the event information into a structure. In Fortran, some fields of the structure are returned explicitly. This function works with existing PAPI preset and native event codes.

ARGUMENTSThe following arguments are implicit in the structure returned by the C function, or explicitly returned by Fortran. EventCode -- event code(preset or native) info -- structure with the event information symbol -- whether the preset is part of the API long_descr -- detail description about the event short_descr -- short description about the event event_note -- notes about the event

RETURN VALUESOn success, the C function returns PAPI_OK, and the Fortran function returns PAPI_OK.
 On error, a non-zero error code is returned by the function.

ERRORSPAPI_EINVAL"  One or more of the arguments is invalid. PAPI_ENOTPRESET"  The PAPI preset mask was set, but the hardware event specified is not a valid PAPI preset. PAPI_ENOEVNT"  The PAPI preset is not available on the underlying hardware.

EXAMPLE/*Find the event code for PAPI_TOT_INS and its info*/ PAPI_event_name_to_code("PAPI_TOT_INS",&EventCode) if (PAPI_get_event_info(EventCode, &info) == PAPI_OK) handle_error(1);

BUGSThis function has no known bugs.

SEE ALSOPAPI(3)," PAPIF(3)," PAPI_set_event_info(3)", PAPI_event_name_to_code(3)"
0
Johanes Gumabo
Data Size   :   7,880 byte
man-PAPI_get_event_info.3Build   :   2024-12-29, 07:25   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   6 / 257,535
Visitor ID   :     :  
Visitor IP   :   18.188.62.10   :  
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.