Searched refs:mtc (Results 1 – 6 of 6) sorted by relevance
| /xnu-8796.101.5/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-8796.101.5/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-8796.101.5/osfmk/machine/ |
| H A D | monotonic.h | 57 void mt_mtc_update_fixed_counts(struct mt_cpu *mtc, uint64_t *counts, 59 uint64_t mt_mtc_update_count(struct mt_cpu *mtc, unsigned int ctr); 62 void mt_mtc_set_snap(struct mt_cpu *mtc, unsigned int ctr, uint64_t snap);
|
| /xnu-8796.101.5/bsd/netinet/ |
| H A D | in_tclass.c | 1098 uint32_t mtc = m_get_traffic_class(m); in so_recv_data_stat() local 1100 if (mtc >= SO_TC_STATS_MAX) { in so_recv_data_stat() 1101 mtc = MBUF_TC_BE; in so_recv_data_stat() 1104 so->so_tc_stats[mtc].rxpackets += 1; in so_recv_data_stat() 1105 so->so_tc_stats[mtc].rxbytes += in so_recv_data_stat() 1111 uint32_t mtc) in so_inc_recv_data_stat() argument 1113 if (mtc >= SO_TC_STATS_MAX) { in so_inc_recv_data_stat() 1114 mtc = MBUF_TC_BE; in so_inc_recv_data_stat() 1117 so->so_tc_stats[mtc].rxpackets += pkts; in so_inc_recv_data_stat() 1118 so->so_tc_stats[mtc].rxbytes += bytes; in so_inc_recv_data_stat() [all …]
|
| /xnu-8796.101.5/osfmk/arm64/ |
| H A D | monotonic_arm64.c | 1238 struct mt_cpu *mtc; in mt_cpu_run() local 1243 mtc = &cpu->cpu_monotonic; in mt_cpu_run() 1246 mt_core_set_snap(i, mtc->mtc_snaps[i]); in mt_cpu_run()
|
| /xnu-8796.101.5/bsd/kern/ |
| H A D | uipc_mbuf.c | 1063 mbuf_mtypes_t mtc; in mbuf_mtypes_sync() local 1069 mtc = *PERCPU_GET_MASTER(mbuf_mtypes); in mbuf_mtypes_sync() 1072 mtc.cpu_mtypes[n] += mtype->cpu_mtypes[n]; in mbuf_mtypes_sync() 1080 mbstat.m_mtypes[n] = mtc.cpu_mtypes[n]; in mbuf_mtypes_sync()
|