Home
last modified time | relevance | path

Searched refs:count_of_bits (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.6/tools/testing/selftests/resctrl/
Dcat_test.c97 int count_of_bits; in cat_perf_miss_val() local
114 count_of_bits = count_bits(long_mask); in cat_perf_miss_val()
117 n = count_of_bits / 2; in cat_perf_miss_val()
119 if (n > count_of_bits - 1) { in cat_perf_miss_val()
122 count_of_bits - 1); in cat_perf_miss_val()
143 param.span = cache_size * (count_of_bits - n) / count_of_bits; in cat_perf_miss_val()
165 param.span = cache_size * n / count_of_bits; in cat_perf_miss_val()
Dcmt_test.c76 int count_of_bits; in cmt_resctrl_val() local
93 count_of_bits = count_bits(long_mask); in cmt_resctrl_val()
95 if (n < 1 || n > count_of_bits) { in cmt_resctrl_val()
97 ksft_print_msg("Please enter value in range 1 to %d\n", count_of_bits); in cmt_resctrl_val()
108 .span = cache_size * n / count_of_bits, in cmt_resctrl_val()