1PAPI_reset(3)                        PAPI                        PAPI_reset(3)
2
3
4

NAME

6       PAPI_reset - reset the hardware event counts in an event set
7
8

SYNOPSIS

10       C Interface
11       #include <papi.h>
12       int PAPI_reset (int EventSet);
13       Fortran Interface
14       #include fpapi.h
15       PAPIF_reset(C_INT EventSet, C_INT check)
16
17

DESCRIPTION

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

ARGUMENTS

25       EventSet  --   an  integer  handle  for  a PAPI event set as created by
26       PAPI_create_eventset(3)
27
28

RETURN VALUES

30       On success, this function returns PAPI_OK.
31        On error, a non-zero error code is returned.
32
33

ERRORS

35       PAPI_ESYS
36              A system or C library call failed inside  PAPI,  see  the  errno
37              variable.
38
39       PAPI_ENOEVST
40              The EventSet specified does not exist.
41
42

EXAMPLES

44       if (PAPI_reset(EventSet) != PAPI_OK)
45         handle_error(1);
46
47

BUGS

49       This function has no known bugs.
50
51

SEE ALSO

53       PAPI_create_eventset(3), PAPI(3),PAPIF(3)
54
55
56
57PAPI Programmer's Reference     September, 2004                  PAPI_reset(3)
Impressum