PAPI_enum_event
Enumerate PAPI preset or native events.
- Provided by: libpapi-dev (Version: 7.2.0-2)
- Source: papi
- Report a bug
Enumerate PAPI preset or native events.
C Interface:
Given 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.
Parameters
Return values
Examples:
// Scan for all supported native events on this platform
printf( "Name\t\t\t Code\t Description\n" );
do {
retval = PAPI_get_event_info( i, &info );
if ( retval == PAPI_OK ) {
printf( "%-30s %#-10x\n%s\n", info.symbol, info.event_code, info.long_descr );
}
} while ( PAPI_enum_event( &i, PAPI_ENUM_ALL ) == PAPI_OK );
@par Generic Modifiers
The following values are implemented for preset events
@par Native Modifiers
The following values are implemented for native events
Preset Modifiers
See also
Generated automatically by Doxygen for PAPI from the source code.