Query: papi_query_event
OS: centos
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PAPI_query_event(3) PAPI PAPI_query_event(3)NAMEPAPI_query_event - Query if PAPI event exists.SYNOPSISDetailed Description C Interface: #include <papi.h> int PAPI_query_event(int EventCode); PAPI_query_event() asks the PAPI library if the PAPI Preset 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: EventCode -- a defined event such as PAPI_TOT_INS. Return values: PAPI_EINVAL One or more of the arguments is invalid. PAPI_ENOEVNT The PAPI preset is not available on the underlying hardware. Examples * int retval; * // Initialize the library * retval = PAPI_library_init(PAPI_VER_CURRENT); * if (retval != PAPI_VER_CURRENT) { * fprintf(stderr, * exit(1); * } * if (PAPI_query_event(PAPI_TOT_INS) != PAPI_OK) { * fprintf(stderr, * exit(1); * } * See Also: PAPI_remove_event PAPI_remove_events PAPI_presets PAPI_native Author Generated automatically by Doxygen for PAPI from the source code. Version 5.2.0.0 Tue Jun 17 2014 PAPI_query_event(3)
Related Man Pages |
---|
papi_add_event(3) - centos |
papi_event_code_to_name(3) - centos |
papi_is_initialized(3) - centos |
papi_reset(3) - centos |
papi_remove_named_event(3) - centos |
Similar Topics in the Unix Linux Community |
---|
Set hard block limit for user using quota |
How to increment version inside a file? |
Docker learning Phase-I |
Shopt -s histappend |
Unsure why access time on a directory change isn't changing |