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 beforePAPI_library_init().
π See also
PAPI_get_event_componentPAPI_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 β¨π
π¦ 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