Searched refs:pkg_no (Results 1 – 1 of 1) sorted by relevance
/tools/power/x86/turbostat/ |
D | turbostat.c | 168 #define GET_THREAD(thread_base, thread_no, core_no, pkg_no) \ argument 169 (thread_base + (pkg_no) * topo.num_cores_per_pkg * \ 172 #define GET_CORE(core_base, core_no, pkg_no) \ argument 173 (core_base + (pkg_no) * topo.num_cores_per_pkg + (core_no)) 174 #define GET_PKG(pkg_base, pkg_no) (pkg_base + pkg_no) argument 208 int retval, pkg_no, core_no, thread_no; in for_all_cpus() local 210 for (pkg_no = 0; pkg_no < topo.num_packages; ++pkg_no) { in for_all_cpus() 218 t = GET_THREAD(thread_base, thread_no, core_no, pkg_no); in for_all_cpus() 223 c = GET_CORE(core_base, core_no, pkg_no); in for_all_cpus() 224 p = GET_PKG(pkg_base, pkg_no); in for_all_cpus() [all …]
|