PAPI_query_named_event(3) | PAPI | PAPI_query_named_event(3) |
PAPI_query_named_event - Query if a named PAPI event exists.
C Interface:
PAPI_query_named_event() asks the PAPI library if the PAPI named event can be counted on this architecture. If the event CAN be counted, the function returns PAPI_OK. If the event CANNOT be counted, the function returns an error code. This function also can be used to check the syntax of native and user events.
Parameters
Return values
Examples
int retval; // Initialize the library retval = PAPI_library_init(PAPI_VER_CURRENT); if (retval != PAPI_VER_CURRENT) { fprintf(stderr,\"PAPI library init error!\\n\"); exit(1); } if (PAPI_query_named_event("PAPI_TOT_INS") != PAPI_OK) { fprintf(stderr,\"No instruction counter? How lame.\\n\"); exit(1); }
See also
Generated automatically by Doxygen for PAPI from the source code.
Thu Dec 14 2023 | Version 7.1.0.0 |