Searched refs:mch (Results 1 – 1 of 1) sorted by relevance
| /xnu-8019.80.24/tests/ktrace/ |
| H A D | kpc_tests.c | 79 prepare_kpc(struct machine *mch, bool config, uint64_t event) in prepare_kpc() argument 87 size_t ncpus_sz = sizeof(mch->ncpus); in prepare_kpc() 88 int ret = sysctlbyname("hw.logicalcpu_max", &mch->ncpus, &ncpus_sz, in prepare_kpc() 93 T_ASSERT_GT(mch->ncpus, 0, "must have some number of CPUs"); in prepare_kpc() 103 mch->nfixed = kpc_get_counter_count(KPC_CLASS_FIXED_MASK); in prepare_kpc() 104 mch->nconfig = kpc_get_counter_count(KPC_CLASS_CONFIGURABLE_MASK); in prepare_kpc() 106 T_LOG("machine: ncpus = %d, nfixed = %d, nconfig = %d", mch->ncpus, in prepare_kpc() 107 mch->nfixed, mch->nconfig); in prepare_kpc() 129 struct machine mch = {}; in kpc_reset_atend() local 130 prepare_kpc(&mch, true, 0); in kpc_reset_atend() [all …]
|