Home
last modified time | relevance | path

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

/xnu-11215/osfmk/kern/
H A Dkern_monotonic.c52 if (snap < mtc->mtc_snaps[ctr]) { in mt_mtc_update_count()
57 mtc->mtc_snaps[ctr]); in mt_mtc_update_count()
61 mtc->mtc_snaps[ctr] = snap; in mt_mtc_update_count()
66 mtc->mtc_snaps[ctr] = snap; in mt_mtc_update_count()
82 struct mt_cpu *mtc = mt_cur_cpu(); in mt_fixed_counts_internal() local
83 assert(mtc != NULL); in mt_fixed_counts_internal()
109 mtc->mtc_counts_last[i] = count; in mt_mtc_update_fixed_counts()
112 mtc->mtc_counts[i] = count; in mt_mtc_update_fixed_counts()
177 struct mt_cpu *mtc = mt_cur_cpu(); in mt_cur_cpu_cycles_instrs_speculative() local
202 struct mt_cpu *mtc = mt_cur_cpu(); in mt_cur_cpu_cycles_instrs_speculative()
[all …]
/xnu-11215/osfmk/x86_64/
H A Dmonotonic_x86_64.c218 mtc->mtc_active = false; in core_down()
224 struct mt_cpu *mtc; in core_up() local
232 mtc = &cpu->cpu_monotonic; in core_up()
235 mt_core_set_snap(i, mtc->mtc_snaps[i]); in core_up()
238 mtc->mtc_active = true; in core_up()
272 mtc->mtc_npmis += 1; in mt_check_for_pmi()
274 if (mtc->mtc_active) { in mt_check_for_pmi()
284 mtc->mtc_counts[i] += delta; in mt_check_for_pmi()
311 if (mtc->mtc_active) { in mt_check_for_pmi()
332 struct mt_cpu *mtc = mt_cur_cpu(); in mt_microstackshot_start_remote() local
[all …]
/xnu-11215/osfmk/machine/
H A Dmonotonic.h59 void mt_mtc_update_fixed_counts(struct mt_cpu *mtc, uint64_t *counts,
61 uint64_t mt_mtc_update_count(struct mt_cpu *mtc, unsigned int ctr);
64 void mt_mtc_set_snap(struct mt_cpu *mtc, unsigned int ctr, uint64_t snap);
/xnu-11215/osfmk/arm64/
H A Dmonotonic_arm64.c1282 struct mt_cpu *mtc; in mt_cpu_run() local
1287 mtc = &cpu->cpu_monotonic; in mt_cpu_run()
1290 mt_core_set_snap(i, mtc->mtc_snaps[i]); in mt_cpu_run()
/xnu-11215/bsd/kern/
H A Duipc_mbuf.c1356 mbuf_mtypes_t mtc; in mbuf_mtypes_sync() local
1362 mtc = *PERCPU_GET_MASTER(mbuf_mtypes); in mbuf_mtypes_sync()
1365 mtc.cpu_mtypes[n] += mtype->cpu_mtypes[n]; in mbuf_mtypes_sync()
1373 mbstat.m_mtypes[n] = mtc.cpu_mtypes[n]; in mbuf_mtypes_sync()