PAPI_disable_component_by_name(3)

PAPI_disable_component_by_name3

Disables the named component

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.

PAPI_disable_component_by_name() must be called before PAPI_library_init().

See also

PAPI_library_init

PAPI_disable_component

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

Author

Generated automatically by Doxygen for PAPI from the source code.

From libpapi-dev 7.1.0-5+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.