PAPI_write(3)

πŸŽ€ NAME πŸŽ€

okay bestie, welcome to the PAPI_write(3) page. PAPI_write is here to write counter values into counters, and honestly? iconic. πŸ’…βœ¨

✨ SYNOPSIS ✨

πŸ’– Detailed Description πŸ’–

🫢 Parameters 🫢

  • EventSet β€” an integer handle for a PAPI event set as created by PAPI_create_eventset. yes, that exact handle, no cap.
  • *values β€” an array to hold the counter values of the counting events.

🚨 Return values 🚨

  • PAPI_ENOEVST β€” the EventSet specified does not exist. 😭
  • PAPI_ECMP β€” PAPI_write() is not implemented for this architecture. πŸ’€
  • PAPI_ESYS β€” the EventSet is currently counting events and the component could not change the values of the running counters.

so here's the whole vibe: PAPI_write() writes the counter values provided in the array values into the event set EventSet. The virtual counters managed by the PAPI library will be set to the values provided. If the event set is running, an attempt will be made to write the values to the running counters. This operation is not permitted by all components and may result in a run-time error.

bestie, read that last part again: not every component allows this, and it may result in a run-time error. so like… proceed with the awareness, mwah. πŸ’–

πŸ‘€ See also πŸ‘€

  • PAPI_read β€” the see-also bestie. go check her out. πŸ¦‹

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for PAPI from the source code.

okay that's the whole page β€” this little manual page came from PAPI version 7.2.0.0, dated Wed Jun 25 2025 19:30:49. mwah, bye bestie πŸ’–πŸŽ€