Home
last modified time | relevance | path

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

/xnu-10002.41.9/tests/ktrace/
H A Dkpc_tests.c81 prepare_kpc(struct machine *mch, bool config, uint64_t event) in prepare_kpc() argument
89 size_t ncpus_sz = sizeof(mch->ncpus); in prepare_kpc()
90 int ret = sysctlbyname("hw.logicalcpu_max", &mch->ncpus, &ncpus_sz, in prepare_kpc()
95 T_ASSERT_GT(mch->ncpus, 0, "must have some number of CPUs"); in prepare_kpc()
105 mch->nfixed = kpc_get_counter_count(KPC_CLASS_FIXED_MASK); in prepare_kpc()
106 mch->nconfig = kpc_get_counter_count(KPC_CLASS_CONFIGURABLE_MASK); in prepare_kpc()
108 T_LOG("machine: ncpus = %d, nfixed = %d, nconfig = %d", mch->ncpus, in prepare_kpc()
109 mch->nfixed, mch->nconfig); in prepare_kpc()
131 struct machine mch = {}; in kpc_reset_atend() local
132 prepare_kpc(&mch, true, 0); in kpc_reset_atend()
[all …]