Home
last modified time | relevance | path

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

/xnu-8020.140.41/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-8020.140.41/osfmk/kern/
H A Dkern_monotonic.c185 struct mt_cpu *mtc = mt_cur_cpu(); in mt_sched_update() local
189 mtc->mtc_counts[MT_CORE_INSTRS], in mt_sched_update()
193 mtc->mtc_counts[MT_CORE_CYCLES]); in mt_sched_update()
260 mt_mtc_update_count(struct mt_cpu *mtc, unsigned int ctr) in mt_mtc_update_count() argument
263 if (snap < mtc->mtc_snaps[ctr]) { in mt_mtc_update_count()
268 mtc->mtc_snaps[ctr]); in mt_mtc_update_count()
272 mtc->mtc_snaps[ctr] = snap; in mt_mtc_update_count()
276 uint64_t count = snap - mtc->mtc_snaps[ctr]; in mt_mtc_update_count()
277 mtc->mtc_snaps[ctr] = snap; in mt_mtc_update_count()
293 struct mt_cpu *mtc = mt_cur_cpu(); in mt_fixed_counts_internal() local
[all …]
/xnu-8020.140.41/osfmk/machine/
H A Dmonotonic.h68 void mt_mtc_update_fixed_counts(struct mt_cpu *mtc, uint64_t *counts,
70 uint64_t mt_mtc_update_count(struct mt_cpu *mtc, unsigned int ctr);
73 void mt_mtc_set_snap(struct mt_cpu *mtc, unsigned int ctr, uint64_t snap);
/xnu-8020.140.41/bsd/netinet/
H A Din_tclass.c1087 uint32_t mtc = m_get_traffic_class(m); in so_recv_data_stat() local
1089 if (mtc >= SO_TC_STATS_MAX) { in so_recv_data_stat()
1090 mtc = MBUF_TC_BE; in so_recv_data_stat()
1093 so->so_tc_stats[mtc].rxpackets += 1; in so_recv_data_stat()
1094 so->so_tc_stats[mtc].rxbytes += in so_recv_data_stat()
1100 uint32_t mtc) in so_inc_recv_data_stat() argument
1102 if (mtc >= SO_TC_STATS_MAX) { in so_inc_recv_data_stat()
1103 mtc = MBUF_TC_BE; in so_inc_recv_data_stat()
1106 so->so_tc_stats[mtc].rxpackets += pkts; in so_inc_recv_data_stat()
1107 so->so_tc_stats[mtc].rxbytes += bytes; in so_inc_recv_data_stat()
[all …]
/xnu-8020.140.41/osfmk/arm64/
H A Dmonotonic_arm64.c1182 struct mt_cpu *mtc; in mt_cpu_run() local
1187 mtc = &cpu->cpu_monotonic; in mt_cpu_run()
1190 mt_core_set_snap(i, mtc->mtc_snaps[i]); in mt_cpu_run()
/xnu-8020.140.41/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()