Home
last modified time | relevance | path

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

/xnu-8792.81.2/osfmk/kern/
H A Dkern_monotonic.c49 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-8792.81.2/osfmk/x86_64/
H A Dmonotonic_x86_64.c185 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-8792.81.2/osfmk/machine/
H A Dmonotonic.h57 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-8792.81.2/bsd/netinet/
H A Din_tclass.c1098 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-8792.81.2/osfmk/arm64/
H A Dmonotonic_arm64.c1198 struct mt_cpu *mtc; in mt_cpu_run() local
1203 mtc = &cpu->cpu_monotonic; in mt_cpu_run()
1206 mt_core_set_snap(i, mtc->mtc_snaps[i]); in mt_cpu_run()
/xnu-8792.81.2/bsd/kern/
H A Duipc_mbuf.c1063 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()