Lines Matching refs:topo_info

31     X86CPUTopoInfo topo_info = {0};  in test_topo_bits()  local
34 topo_info = (X86CPUTopoInfo) {1, 1, 1}; in test_topo_bits()
35 g_assert_cmpuint(apicid_smt_width(&topo_info), ==, 0); in test_topo_bits()
36 g_assert_cmpuint(apicid_core_width(&topo_info), ==, 0); in test_topo_bits()
37 g_assert_cmpuint(apicid_die_width(&topo_info), ==, 0); in test_topo_bits()
39 topo_info = (X86CPUTopoInfo) {1, 1, 1}; in test_topo_bits()
40 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, 0), ==, 0); in test_topo_bits()
41 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, 1), ==, 1); in test_topo_bits()
42 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, 2), ==, 2); in test_topo_bits()
43 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, 3), ==, 3); in test_topo_bits()
48 topo_info = (X86CPUTopoInfo) {1, 1, 2}; in test_topo_bits()
49 g_assert_cmpuint(apicid_smt_width(&topo_info), ==, 1); in test_topo_bits()
50 topo_info = (X86CPUTopoInfo) {1, 1, 3}; in test_topo_bits()
51 g_assert_cmpuint(apicid_smt_width(&topo_info), ==, 2); in test_topo_bits()
52 topo_info = (X86CPUTopoInfo) {1, 1, 4}; in test_topo_bits()
53 g_assert_cmpuint(apicid_smt_width(&topo_info), ==, 2); in test_topo_bits()
55 topo_info = (X86CPUTopoInfo) {1, 1, 14}; in test_topo_bits()
56 g_assert_cmpuint(apicid_smt_width(&topo_info), ==, 4); in test_topo_bits()
57 topo_info = (X86CPUTopoInfo) {1, 1, 15}; in test_topo_bits()
58 g_assert_cmpuint(apicid_smt_width(&topo_info), ==, 4); in test_topo_bits()
59 topo_info = (X86CPUTopoInfo) {1, 1, 16}; in test_topo_bits()
60 g_assert_cmpuint(apicid_smt_width(&topo_info), ==, 4); in test_topo_bits()
61 topo_info = (X86CPUTopoInfo) {1, 1, 17}; in test_topo_bits()
62 g_assert_cmpuint(apicid_smt_width(&topo_info), ==, 5); in test_topo_bits()
65 topo_info = (X86CPUTopoInfo) {1, 30, 2}; in test_topo_bits()
66 g_assert_cmpuint(apicid_core_width(&topo_info), ==, 5); in test_topo_bits()
67 topo_info = (X86CPUTopoInfo) {1, 31, 2}; in test_topo_bits()
68 g_assert_cmpuint(apicid_core_width(&topo_info), ==, 5); in test_topo_bits()
69 topo_info = (X86CPUTopoInfo) {1, 32, 2}; in test_topo_bits()
70 g_assert_cmpuint(apicid_core_width(&topo_info), ==, 5); in test_topo_bits()
71 topo_info = (X86CPUTopoInfo) {1, 33, 2}; in test_topo_bits()
72 g_assert_cmpuint(apicid_core_width(&topo_info), ==, 6); in test_topo_bits()
74 topo_info = (X86CPUTopoInfo) {1, 30, 2}; in test_topo_bits()
75 g_assert_cmpuint(apicid_die_width(&topo_info), ==, 0); in test_topo_bits()
76 topo_info = (X86CPUTopoInfo) {2, 30, 2}; in test_topo_bits()
77 g_assert_cmpuint(apicid_die_width(&topo_info), ==, 1); in test_topo_bits()
78 topo_info = (X86CPUTopoInfo) {3, 30, 2}; in test_topo_bits()
79 g_assert_cmpuint(apicid_die_width(&topo_info), ==, 2); in test_topo_bits()
80 topo_info = (X86CPUTopoInfo) {4, 30, 2}; in test_topo_bits()
81 g_assert_cmpuint(apicid_die_width(&topo_info), ==, 2); in test_topo_bits()
88 topo_info = (X86CPUTopoInfo) {1, 6, 3}; in test_topo_bits()
89 g_assert_cmpuint(apicid_smt_width(&topo_info), ==, 2); in test_topo_bits()
90 g_assert_cmpuint(apicid_core_offset(&topo_info), ==, 2); in test_topo_bits()
91 g_assert_cmpuint(apicid_die_offset(&topo_info), ==, 5); in test_topo_bits()
92 g_assert_cmpuint(apicid_pkg_offset(&topo_info), ==, 5); in test_topo_bits()
94 topo_info = (X86CPUTopoInfo) {1, 6, 3}; in test_topo_bits()
95 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, 0), ==, 0); in test_topo_bits()
96 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, 1), ==, 1); in test_topo_bits()
97 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, 2), ==, 2); in test_topo_bits()
99 topo_info = (X86CPUTopoInfo) {1, 6, 3}; in test_topo_bits()
100 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, 1 * 3 + 0), ==, in test_topo_bits()
102 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, 1 * 3 + 1), ==, in test_topo_bits()
104 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, 1 * 3 + 2), ==, in test_topo_bits()
107 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, 2 * 3 + 0), ==, in test_topo_bits()
109 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, 2 * 3 + 1), ==, in test_topo_bits()
111 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, 2 * 3 + 2), ==, in test_topo_bits()
114 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, 5 * 3 + 0), ==, in test_topo_bits()
116 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, 5 * 3 + 1), ==, in test_topo_bits()
118 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, 5 * 3 + 2), ==, in test_topo_bits()
121 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, in test_topo_bits()
123 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, in test_topo_bits()
125 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, in test_topo_bits()