PAPI_enum_cmp_event (3) - Linux Manuals
NAME
PAPI_enum_cmp_event -
Enumerate PAPI preset or native events for a given component.
SYNOPSIS
Detailed Description
@par C Interface:
#include <papi.h> @n
int PAPI_enum_cmp_event( int *EventCode, int modifer, int cidx );
Given an event code, PAPI_enum_event replaces the event
code with the next available event.
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. @n
For native events, the effect of the modifier argument may be
different on each platform.
See the discussion below for platform-specific definitions.
@param *EventCode
A defined preset or native event such as PAPI_TOT_INS.
@param modifier
Modifies the search logic. See below for full list.
For native events, each platform behaves differently.
See platform-specific documentation for details.
@param cidx
Specifies the component to search in
@retval PAPI_ENOEVNT
The next requested PAPI preset or native event is not available on
the underlying hardware.
@par Examples:
Generic Modifiers
Native Modifiers
Preset Modifiers
ITANIUM Modifiers
POWER Modifiers
See Also:
Generated automatically by Doxygen for PAPI from the source code.
* // Scan for all supported native events on the first component
* printf( "Name Code Description );
* do {
* retval = PAPI_get_event_info( i, &info );
* if ( retval == PAPI_OK ) {
* printf( "%-30s 0x%-10xs, info.symbol, info.event_code, info.long_descr );
* }
* } while ( PAPI_enum_cmp_event( &i, PAPI_ENUM_ALL, 0 ) == PAPI_OK );
*
Author