Home
last modified time | relevance | path

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

/xnu-12377.61.12/tests/cpu_counters/
H A Dkpc_tests.c354 uint32_t ctrs_cnt; variable
362 ctrs_cnt = kpc_get_counter_count(KPC_CLASS_FIXED_MASK);
363 if (ctrs_cnt == 0) {
366 T_LOG("device has %" PRIu32 " fixed counters", ctrs_cnt);
376 ctrs_a = malloc(ctrs_cnt * sizeof(uint64_t));
379 err = kpc_get_thread_counters(0, ctrs_cnt, ctrs_a);
382 for (uint32_t i = 0; i < ctrs_cnt; i++) {
388 ctrs_b = malloc(ctrs_cnt * sizeof(uint64_t));
391 err = kpc_get_thread_counters(0, ctrs_cnt, ctrs_b);
394 for (uint32_t i = 0; i < ctrs_cnt; i++) {