PAPI  5.7.0.0
PAPI_reset Class Reference

Reset the hardware event counts in an event set. More...

Detailed Description

C Prototype:
#include <papi.h>
int PAPI_reset( int EventSet );
Parameters
EventSetan integer handle for a PAPI event set as created by PAPI_create_eventset
Return values
PAPI_OK
PAPI_ESYSA system or C library call failed inside PAPI, see the errno variable.
PAPI_ENOEVSTThe EventSet specified does not exist.

PAPI_reset() zeroes the values of the counters contained in EventSet. This call assumes an initialized PAPI library and a properly added event set

Example:
int ret;
// Create an empty EventSet
if (ret != PAPI_OK) handle_error(ret);
// Add two events to our EventSet
if (ret != PAPI_OK) handle_error(ret);
// Start counting
if (ret != PAPI_OK) handle_error(ret);
// Stop counting, ignore values
if (ret != PAPI_OK) handle_error(ret);
// reset the counters in this EventSet
if (ret != PAPI_OK) handle_error(ret);
See also
PAPI_create_eventset

The documentation for this class was generated from the following file: