PAPI_disable_component_by_name(3)

πŸ’– NAME πŸ’–

PAPI_disable_component_by_name β€” disables the named component. This is the PAPI_disable_component_by_name(3) page from the PAPI manual, section 3, bestie ✨

✨ SYNOPSIS ✨

okay so the SYNOPSIS section here is giving β€œDetailed Description” energy β€” no cap, we’re rolling with it πŸ’…

Detailed Description

Return values

  • ENOCMP β€” component does not exist 😭
  • ENOINIT β€” unable to disable the component, the library has already been initialized πŸ’€

Parameters

  • component_name β€” name of the component to disable πŸŽ€

Example:

int result;
result = PAPI_disable_component_by_name("example");
if (result==PAPI_OK)
    printf("component \"example\" has been disabled\n");
//...
PAPI_library_init(PAPI_VER_CURRENT);

PAPI_disable_component_by_name() allows the user to disable a component before PAPI_library_init() time. This is useful if the user knows they β€œdo not with to use” events from that component and want to reduce the PAPI library overhead. Keeping that β€œwith” exactly as written, bestie β€” iykyk πŸ™ˆ

⚠️ Order check: PAPI_disable_component_by_name() must be called before PAPI_library_init(). Periodt.

See also

  • PAPI_library_init
  • PAPI_disable_component

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for PAPI from the source code. Not me hand-typing it, okay? πŸ’…


That’s the page, bestie πŸ’– Version 7.2.0.0, dated Wed Jun 25 2025, with that footer’s 19PAPI_disable_component_by_name(3) energy β€” generated automatically by Doxygen for PAPI from the source code βœ¨πŸŽ€