PAPI_enum_event - Online Linux Manual PageSection : 3
Updated : October, 2006
Source : PAPI Programmer's Reference
Note : PAPI

NAMEPAPI_enum_event − enumerate PAPI preset or native events

SYNOPSISC Interface #include <papi.h> int PAPI_enum_event(int *EventCode,int modifer);Fortran Interface #include "fpapi.h" PAPIF_enum_event(C_INT EventCode, C_INT modifierC_INT check)

DESCRIPTIONGiven a preset or native event code, PAPI_enum_event()" replaces the event code with the next available event in either the preset or native table. The modifier argument affects which events are returned. For all platforms and event types, a value of PAPI_ENUM_ALL (zero) directs the function to return all possible events. For preset events, a TRUE (non-zero) value currently directs the function to return event codes only for PAPI preset events available on this platform. This may change in the future. For native events, the effect of the modifier argument is different on each platform. See the discussion below for platform-specific definitions.

ARGUMENTSEventCode -- a defined preset or native event such as PAPI_TOT_INS. modifier -- modifies the search logic. For preset events, TRUE specifies available events only. For native events, each platform behaves differently. See platform-specific documentation for details

PENTIUM 4The following values are implemented for modifier on Pentium 4: PAPI_PENT4_ENUM_GROUPS" - 45 groups + custom + user event types PAPI_PENT4_ENUM_COMBOS" - all combinations of mask bits for given group PAPI_PENT4_ENUM_BITS " - all individual bits for a given group

ITANIUMThe following values are implemented for modifier on Itanium: PAPI_ITA_ENUM_IARR" - Enumerate IAR (instruction address ranging) events PAPI_ITA_ENUM_DARR" - Enumerate DAR (data address ranging) events PAPI_ITA_ENUM_OPCM" - Enumerate OPC (opcode matching) events PAPI_ITA_ENUM_IEAR" - Enumerate IEAR (instr event address register) events PAPI_ITA_ENUM_DEAR" - Enumerate DEAR (data event address register) events

POWER 4The following values are implemented for modifier on POWER 4: PAPI_PWR4_ENUM_GROUPS" - Enumerate groups to which an event belongs

RETURN VALUESOn success, this function returns PAPI_OK" , and on error, a non-zero error code is returned.

ERRORSPAPI_ENOEVNT"  The next requested PAPI preset or native event is not available on the underlying hardware.

EXAMPLES/* Scan for all supported native events on this platform */ printf("Name Code Description\n"); do { retval = PAPI_get_event_info(i, &info); if (retval == PAPI_OK) { printf("%-30s 0x%-10x\n%s\n", info.symbol, info.event_code, info.long_descr); } } while (PAPI_enum_event(&i, PAPI_ENUM_ALL) == PAPI_OK);

BUGSThis function has no known bugs.

SEE ALSOPAPI_preset(3), PAPI_native(3), PAPI_get_event_info(3), PAPI_event_name_to_code (3)" PAPI(3), PAPIF (3)"
0
Johanes Gumabo
Data Size   :   9,718 byte
man-PAPI_enum_event.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 175,617
Visitor ID   :     :  
Visitor IP   :   3.147.78.185   :  
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.05
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.

ERROR : Need New Coding :         (rof_nr_x|149|PAPI_enum_event.3|95|\n");| printf("Name\t\t\t Code\t Description\n"); )         (rof_nr_x|149|PAPI_enum_event.3|99|\n%s\n", info.symbol, info.event_code, info.long_descr);| printf("%-30s 0x%-10x\n%s\n", info.symbol, info.event_code, info.long_descr); )