papi_write(3) - Linux man page
Name
PAPI_write - Write counter values into counters
Synopsis
C Interface#include <papi.h>int PAPI_write(int EventSet, long_long *values);Fortran Interface
#include "fpapi.h"PAPIF_write(C_INT EventSet, C_LONG_LONG(*) values, C_INT check)
Description
Arguments
EventSet -- an integer handle for a PAPI event set as created by papi_create_eventset(3)*values -- an array to hold the counter values
of the counting events
Return Values
On success, this function returns PAPI_OK. On error, a non-zero error code is returned.Errors
- PAPI_ENOEVST
- The EventSet specified does not exist.
- PAPI_ESBSTR
- PAPI_write() is not implemented for this architecture. PAPI_ESYS The EventSet is currently counting events and the substrate could not change the values of the running counters.
Examples
/* Yet to be written */