PAPI_destroy_eventset(3)
π PAPI_destroy_eventset(3) β the PAPI manual, bestie β¨
πΈ NAME πΈ
PAPI_destroy_eventset β Empty and destroy an EventSet. π
π¦ SYNOPSIS π¦
π C Interface:
#include <papi.h>
int PAPI_destroy_eventset( int * EventSet );
π Detailed Description π
Okay so PAPI_destroy_eventset deallocates the memory associated with an empty PAPI EventSet. That's the whole assignment, bestie: cleanup era, empty-set only, no chaos. β¨
π§ Parameters
*EventSetβ a pointer to the integer handle for a PAPI event set as created byPAPI_create_eventset. On success, the value pointed to byEventSetis then set toPAPI_NULL. π«Ά
π₯ Return values
PAPI_EINVALβ one or more of the arguments is invalid. This happens if you're attempting to destroy a non-empty event set, or if you pass 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. π§
π Examples:
// Free all memory and data structures, EventSet must be empty.
if ( PAPI_destroy_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. π€β¨
Version 7.2.0.0, dated Wed Jun 25 2025 19:30:48, from the PAPI_destroy_eventset(3) page β bye bestie, go destroy that empty EventSet responsibly ππ
π¦ 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