PAPI_cleanup_eventset(3)

PAPI_cleanup_eventset3

Empty and destroy an eventset.

Detailed Description

C Interface:

#include <papi.h>

int PAPI_cleanup_eventset( int EventSet );

PAPI_cleanup_eventset removes all events from a PAPI event set and turns off profiling and overflow for all events in the EventSet. This can not be called if the EventSet is not stopped.

Parameters

EventSet An integer handle for a PAPI event set as created by PAPI_create_eventset.

Return values

PAPI_EINVAL One or more of the arguments is invalid. Attempting to destroy a non-empty event set or passing in a null pointer to be destroyed.
PAPI_ENOEVST The EventSet specified does not exist.
PAPI_EISRUN The EventSet is currently counting events.
PAPI_EBUG Internal error, send mail to [email protected] and complain.

Examples:

// Remove all events in the eventset
if ( PAPI_cleanup_eventset( EventSet ) != PAPI_OK )
handle_error( 1 );

See also

PAPI_profil

PAPI_create_eventset

PAPI_add_event

PAPI_stop

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

Author

Generated automatically by Doxygen for PAPI from the source code.

From libpapi-dev 7.1.0-5+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.