papi_reset(3) - Linux man page
Name
PAPI_reset - reset the hardware event counts in an event set
Synopsis
C Interface#include <papi.h>int PAPI_reset (int EventSet);
Fortran Interface#include "fpapi.h"PAPIF_reset(C_INT EventSet, C_INT check)
Description
PAPI_reset() zeroes the values of the counters contained in EventSet. This call assumes an
initialized PAPI library and a properly added event set.
Arguments
EventSet -- an integer handle for a PAPI event set as created by
papi_create_eventset(3)
Return Values
On success, this function returns PAPI_OK. On error, a non-zero error code is returned.
Errors
- PAPI_ESYS
- A system or C library call failed inside PAPI, see the errno variable.
- PAPI_ENOEVST
- The EventSet specified does not exist.
Examples
if (PAPI_reset(EventSet) != PAPI_OK)
handle_error(1);
Bugs
This function has no known bugs.
See Also
papi_create_eventset(3), papi(3),papif(3)
Referenced By
papi_read(3)