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 by PAPI_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 β€” the EventSet specified 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_event
  • PAPI_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! πŸŽ€βœ¨πŸ’