logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

PAPI_cleanup_eventset - Empty and destroy an EventSet.

Author

       Generated automatically by Doxygen for PAPI from the source code.

Version 7.1.0.0                                  Thu Dec 14 2023                        PAPI_cleanup_eventset(3)

Detailed Description

CInterface:
           #include <papi.h>
            int PAPI_cleanup_eventset(intEventSet);

       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.

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

       ReturnvaluesPAPI_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 ptools-perfapi@icl.utk.edu and complain.

       Examples:

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

       SeealsoPAPI_profilPAPI_create_eventsetPAPI_add_eventPAPI_stop

Name

       PAPI_cleanup_eventset - Empty and destroy an EventSet.

Synopsis

See Also