Searched refs:mtc (Results 1 – 5 of 5) sorted by relevance
| /xnu-12377.41.6/osfmk/kern/ |
| H A D | kern_monotonic.c | 49 mt_mtc_update_count(struct mt_cpu *mtc, unsigned int ctr) in mt_mtc_update_count() argument 52 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() 65 uint64_t count = snap - mtc->mtc_snaps[ctr]; 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() 85 mt_mtc_update_fixed_counts(mtc, counts, counts_since); in mt_fixed_counts_internal() 89 mt_mtc_update_fixed_counts(struct mt_cpu *mtc, uint64_t *counts, in mt_mtc_update_fixed_counts() argument [all …]
|
| /xnu-12377.41.6/osfmk/x86_64/ |
| H A D | monotonic_x86_64.c | 185 static void mt_check_for_pmi(struct mt_cpu *mtc, x86_saved_state_t *state); 214 struct mt_cpu *mtc = &cpu->cpu_monotonic; in core_down() local 217 mt_mtc_update_fixed_counts(mtc, NULL, NULL); in core_down() 218 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() 268 mt_check_for_pmi(struct mt_cpu *mtc, x86_saved_state_t *state) in mt_check_for_pmi() argument 272 mtc->mtc_npmis += 1; in mt_check_for_pmi() [all …]
|
| /xnu-12377.41.6/osfmk/machine/ |
| H A D | monotonic.h | 59 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-12377.41.6/osfmk/arm64/ |
| H A D | monotonic_arm64.c | 1357 struct mt_cpu *mtc; in mt_cpu_run() local 1362 mtc = &cpu->cpu_monotonic; in mt_cpu_run() 1365 mt_core_set_snap(i, mtc->mtc_snaps[i]); in mt_cpu_run()
|
| /xnu-12377.41.6/bsd/kern/ |
| H A D | uipc_mbuf.c | 538 mbuf_mtypes_t mtc; in mbuf_mtypes_sync() local 542 mtc = *PERCPU_GET_MASTER(mbuf_mtypes); in mbuf_mtypes_sync() 545 mtc.cpu_mtypes[n] += mtype->cpu_mtypes[n]; in mbuf_mtypes_sync() 550 mbstat.m_mtypes[n] = mtc.cpu_mtypes[n]; in mbuf_mtypes_sync()
|