PAPI_cleanup_eventset(3)
πΈ NAME πΈ
okay so this is PAPI_cleanup_eventset(3) from the PAPI manual, and the whole NAME vibe is PAPI_cleanup_eventset - Empty and destroy an EventSet π
. Like, clean it out, shut it down, bye bestie.
β¨ SYNOPSIS β¨
π» C Interface π»
C Interface, no cap:
#include <papi.h>
int PAPI_cleanup_eventset( int EventSet );
π§ Detailed Description π§
PAPI_cleanup_eventset removes all events from a PAPI event set and turns off profiling and overflow for all events in the EventSet. So itβs giving full reset energy β¨.
bestie, this can not be called if the EventSet is not stopped. Like, the EventSet has to be stopped first β periodt. π
π Parameters π
EventSetβ an integer handle for a PAPI event set as created byPAPI_create_eventset. π«Ά
π©· Return values π©·
PAPI_EINVALβ one or more of the arguments is invalid. Also: 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 toptools-perfapi@icl.utk.eduand complain. Not me being dramatic, thatβs literally the instruction. π
π Examples π
okay so the example is literally this:
// Remove all events in the eventset
if ( PAPI_cleanup_eventset( EventSet ) != PAPI_OK )
handle_error( 1 );
π See also π
PAPI_profilPAPI_create_eventsetPAPI_add_eventPAPI_stop
π Author π
Generated automatically by Doxygen for PAPI from the source code. So yeah, Doxygen wrote this one β iconic automated behavior, honestly. π€β¨
byeee bestie π«Ά Version 7.2.0.0, dated Wed Jun 25 2025 19:30:48, and this whole thing is literally the PAPI_cleanup_eventset(3) page. periodt π
π
π¦ where this page comes from
- nixos 26.05: papi 7.2.0
- nixpkgs unstable: papi 7.2.0
- opensuse-leap 16.0: papi-devel 7.2.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: papi-devel 7.2.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: papi-devel 7.2.0-160000.2.2 Β· BSD-3-Clause
- ubuntu resolute: libpapi-dev 7.2.0-2 Β· BSD-3-Clause
- ubuntu stonking: libpapi-dev 7.2.0-2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms