PAPI_disable_component(3)

okay bestie, welcome to PAPI_disable_component(3) from the PAPI manual ✨ this one is short and iconic.

🌸 NAME 🌸

PAPI_disable_component β€” disables the specified component πŸ’…

✨ SYNOPSIS ✨

The generated page doesn’t put a separate synopsis line here, bestie β€” the function deets are right below in Detailed Description πŸ¦‹

πŸ¦‹ Detailed Description πŸ¦‹

πŸ’… Return values

  • ENOCMP β€” component does not exist 😭
  • ENOINIT β€” cannot disable as PAPI has already been initialized πŸ™ˆ

πŸŽ€ Parameters

  • cidx β€” component index of component to be disabled ✨

🌈 Examples:

int cidx, result;

cidx = PAPI_get_component_index("example");

if (cidx>=0) {
   result = PAPI_disable_component(cidx);
   if (result==PAPI_OK)
      printf("The example component is disabled\n");
}
// ...
PAPI_library_init();

okay so PAPI_disable_component() lets the user disable components before PAPI_library_init() time β€” it’s giving β€œpre-game cleanup” energy, lowkey. This is useful if the user knows they do not wish to use events from that component and want to reduce the PAPI library overhead. πŸ’–

⚠️ Important, no cap: PAPI_disable_component() must be called before PAPI_library_init().

πŸ‘€ See also

  • PAPI_get_event_component
  • PAPI_library_init

πŸ’œ Author πŸ’œ

Generated automatically by Doxygen for PAPI from the source code. That’s the official credit, bestie β€” not me being dramatic 😭


That’s the whole page 🫢 β€” PAPI version 7.2.0.0, dated Wed Jun 25 2025 19:30:48. Slay, bestie ✨πŸ’