PAPI_hw_info_t(3)
π NAME π
PAPI_hw_info_t β the hardware info structure, bestie. This is the PAPI manual page for PAPI_hw_info_t(3), and it's basically the struct that's spilling all the hardware tea. π«Ά
β¨ SYNOPSIS β¨
#include <papi.h>
π Data Fields π
Okay so here's the full field lineup β exact names, exact types, no edits, no cap:
int ncpuint threadsint coresint socketsint nnodesint totalcpusint vendorchar vendor_string [128]int modelchar model_string [128]float revisionint cpuid_familyint cpuid_modelint cpuid_steppingint cpu_max_mhzint cpu_min_mhzPAPI_mh_info_t mem_hierarchyint virtualizedchar virtual_vendor_string [128]char virtual_vendor_version [128]float mhzint clock_mhzint reserved [8]
πΈ Field Documentation πΈ
Field-by-field vibe check, in the same order as the page. Let's get into it π
int PAPI_hw_info_t::clock_mhz
Deprecated. That's the whole note, bestie β it's deprecated, so don't make it your main character. π
int PAPI_hw_info_t::cores
Number of cores per socket. π
int PAPI_hw_info_t::cpu_max_mhz
Maximum supported CPU speed. π₯
int PAPI_hw_info_t::cpu_min_mhz
Minimum supported CPU speed. π§
int PAPI_hw_info_t::cpuid_family
cpuid family. Periodt.
int PAPI_hw_info_t::cpuid_model
cpuid model. β¨
int PAPI_hw_info_t::cpuid_stepping
cpuid stepping. π
PAPI_mh_info_t PAPI_hw_info_t::mem_hierarchy
PAPI memory hierarchy description β the memory hierarchy tea π
float PAPI_hw_info_t::mhz
Deprecated. Yep, another deprecated one β don't get too attached, bestie. π
int PAPI_hw_info_t::model
Model number of CPU. π’
char PAPI_hw_info_t::model_string[128]
Model string of CPU. π
int PAPI_hw_info_t::ncpu
Number of CPUs per NUMA Node. π§
int PAPI_hw_info_t::nnodes
Total Number of NUMA Nodes. π
float PAPI_hw_info_t::revision
Revision of CPU. π
int PAPI_hw_info_t::sockets
Number of sockets. π«Ά
int PAPI_hw_info_t::threads
Number of hdw threads per core. π§΅
int PAPI_hw_info_t::totalcpus
Total number of CPUs in the entire system β the whole system, no cap. π₯
int PAPI_hw_info_t::vendor
Vendor number of CPU. π·οΈ
char PAPI_hw_info_t::vendor_string[128]
Vendor string of CPU. π
char PAPI_hw_info_t::virtual_vendor_string[128]
Vendor for virtual machine. πΈ
char PAPI_hw_info_t::virtual_vendor_version[128]
Version of virtual machine. π¦
int PAPI_hw_info_t::virtualized
Running in virtual machine β the VM vibe check. π
π Author π
Generated automatically by Doxygen for PAPI from the source code. So yeah, Doxygen wrote this, not a human, and honestly it ate. π€β¨
Version 7.2.0.0 Β· Wed Jun 25 2025 19:30:48 Β· PAPI_hw_info_t(3) β that's the source/version and date tea from the footer, bestie. Byeee! ππ¦
π¦ 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