PAPI_num_events(3)
π NAME π
Okay so bestie, welcome to PAPI_num_events(3) β this page is literally about PAPI_num_events, which returns the number of events in an event set. Iconic behavior, no cap π
β¨ SYNOPSIS β¨
πΈ Detailed Description πΈ
PAPI_num_events() returns the number of preset and/or native events contained in an event set. The event set should be created by PAPI_create_eventset.
C Interface: π
#include <papi.h>
int PAPI_num_events(int EventSet );
π§ Parameters π§
EventSetβ an integer handle for a PAPI event set created byPAPI_create_eventset.*countβ (Fortran only) on output, the variable contains the number of events in the event set.
π Return values π
- On success, this function returns the positive number of events in the event set.
PAPI_EINVALβ the event count is zero; only if code is compiled with debug enabled.PAPI_ENOEVSTβ theEventSetspecified does not exist.
π¦ Example π¦
// Count the events in our EventSet
printf(\"%d events found in EventSet.\\n\", PAPI_num_events(EventSet));
π See also π
PAPI_add_eventPAPI_create_eventset
π§ Author π§
Generated automatically by Doxygen for PAPI from the source code. Slay, automated queen π
xoxo, bestie π this adorable little page is from PAPI, Version 7.2.0.0, dated Wed Jun 25 2025 19:30:48, and yes β itβs the PAPI_num_events(3) manual page. Bye bestie! πβ¨π
π¦ 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