Searched refs:mch (Results 1 – 1 of 1) sorted by relevance
| /xnu-12377.61.12/tests/cpu_counters/ |
| H A D | kpc_tests.c | 96 prepare_kpc(struct machine *mch, unsigned int n, const char *event_name, in prepare_kpc() argument 115 size_t ncpus_sz = sizeof(mch->ncpus); in prepare_kpc() 116 ret = sysctlbyname("hw.logicalcpu_max", &mch->ncpus, &ncpus_sz, in prepare_kpc() 121 T_ASSERT_GT(mch->ncpus, 0, "must have some number of CPUs"); in prepare_kpc() 131 mch->nfixed = kpc_get_counter_count(KPC_CLASS_FIXED_MASK); in prepare_kpc() 132 mch->nconfig = kpc_get_counter_count(KPC_CLASS_CONFIGURABLE_MASK); in prepare_kpc() 134 T_LOG("machine: ncpus = %d, nfixed = %d, nconfig = %d", mch->ncpus, in prepare_kpc() 135 mch->nfixed, mch->nconfig); in prepare_kpc() 159 mch->selector = configs[i]; in prepare_kpc() 163 T_QUIET; T_ASSERT_NE(mch->selector, 0ULL, "found event selector to check"); in prepare_kpc() [all …]
|