CentOS 7.0 - man page for papi_query_named_event (centos section 3)

Linux & Unix Commands - Search Man Pages

Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

PAPI_query_named_event(3)		       PAPI			PAPI_query_named_event(3)

       PAPI_query_named_event -

       Query if a named PAPI event exists.

Detailed Description
       C Interface:
	   #include <papi.h>
	    int PAPI_query_named_event(char *EventName);

       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.

	   EventName -- 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.


	   * int retval;
	   * // Initialize the library
	   * retval = PAPI_library_init(PAPI_VER_CURRENT);
	   * if (retval != PAPI_VER_CURRENT) {
	   *   fprintf(stderr,
	   *   exit(1);
	   * }
	   * if (PAPI_query_named_event("PAPI_TOT_INS") != PAPI_OK) {
	   *   fprintf(stderr,
	   *   exit(1);
	   * }

       See Also:

       Generated automatically by Doxygen for PAPI from the source code.

Version 			 Tue Jun 17 2014		PAPI_query_named_event(3)
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 11:55 PM.

Unix & Linux Forums Content Copyright©1993-2018. All Rights Reserved.
Show Password

Not a Forum Member?
Forgot Password?