PAPI_get_cmp_opt(3)
π NAME π
PAPI_get_cmp_opt β get component specific PAPI options. You're in the PAPI manual, bestie. π«Ά
β¨ SYNOPSIS β¨
Okay so this page doesn't give us a separate signature line in the source β the real tea is all in the Detailed Description below, so keep scrolling. π
π¦ Detailed Description π¦
πΈ Parameters πΈ
optionβ an input parameter describing the course of action. Possible values are defined inpapi.hand briefly described in the table below. The Fortran calls are implementations of specific options. β¨ptrβ a pointer to a structure that acts as both an input and output parameter. πcidxβ an integer identifier for a component. By convention, component0is always thecpucomponent. π
π Return values π
PAPI_EINVALβ one or more of the arguments is invalid. π
PAPI_get_opt() and PAPI_set_opt() query or change the options of the PAPI library or a specific event set created by PAPI_create_eventset. Some options may require that the eventset be bound to a component before they can execute successfully. This can be done either by adding an event or by explicitly calling PAPI_assign_eventset_component. π₯
The C interface for these functions passes a pointer to the PAPI_option_t structure. Not all options require or return information in this structure, and not all options are implemented for both get and set. Some options require a component index to be provided. These options are handled explicitly by the PAPI_get_cmp_opt() call for 'get' and implicitly through the option structure for 'set'. The Fortran interface is a series of calls implementing various subsets of the C interface. Not all options in C are available in Fortran. π§
π Note π
Some options, such asPAPI_DOMAINandPAPI_MULTIPLEX, are also available as separate entry points in both C and Fortran. π
The reader is urged to see the example code in the PAPI distribution for usage of PAPI_get_opt. The file papi.h contains definitions for the structures unioned in the PAPI_option_t structure. π
π₯ See also π₯
PAPI_set_debugPAPI_set_multiplexPAPI_set_domainPAPI_option_t
β Author β
Generated automatically by Doxygen for PAPI from the source code. π€
This page is PAPI_get_cmp_opt(3) from PAPI version 7.2.0.0, dated Wed Jun 25 2025 19:30:48. Byeee bestie β go get those component options, periodt. π
β¨π«Ά
π¦ 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