PAPI_num_hwctrs - Online Linux Manual Page

Section : 3
Updated : April, 2007
Source : PAPI Programmer's Reference
Note : PAPI

NAME
 PAPI_num_hwctrs − return the number of hardware counters on the cpu
 PAPI_num_cmp_hwctrs − return the number of hardware counters for the specified component

SYNOPSISC Interface #include <papi.h> int PAPI_num_hwctrs(); int PAPI_num_cmp_hwctrs(int cidx);Fortran Interface #include "fpapi.h" PAPIF_num_hwctrs(C_INT num)

DESCRIPTIONPAPI_num_hwctrs()" returns the number of physical hardware counters present in the cpu. This is included to preserve backward compatability. PAPI_num_cmp_hwctrs()" returns the number of counters present in the specified component. By convention, component 0 is always the cpu. This count does not include any special purpose registers or other performance hardware. PAPI_library_init(3) must be called in order for this function to return anything greater than 0.

ARGUMENTScidx -- An integer identifier for a component. By convention, component 0 is always the cpu component.

RETURN VALUESOn success, this function returns a value greater than zero. A zero result usually means the library has not been initialized.

EXAMPLES/* Query the cpu component for the number of counters. */ printf("%d hardware counters found.\n", PAPI_num_cmp_hwctrs(0));

BUGSNone.

SEE ALSOPAPI_init_library(3), PAPI(3), PAPI_F (3)"
0
Johanes Gumabo
Data Size   :   5,805 byte
man-PAPI_num_hwctrs.3Build   :   2025-03-22, 13:26   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   35 / 2,358,784
Visitor ID   :     :  
Visitor IP   :   216.73.216.247   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   20   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 25.03.22
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36


Very long time ago, I have the best tutor, Wenzel Svojanovsky. If someone knows the email address of Wenzel Svojanovsky, please send an email to johanesgumabo@gmail.com.
Help me, linux0001.com will expire on July 16, 2025. I have no money to renew it. View detail

If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (rof_nr_x|149|PAPI_num_hwctrs.3|48|\n", PAPI_num_cmp_hwctrs(0));|printf("%d hardware counters found.\n", PAPI_num_cmp_hwctrs(0)); )