Home
last modified time | relevance | path

Searched refs:ctc (Results 1 – 11 of 11) sorted by relevance

/src/contrib/processor-trace/libipt/src/
H A Dpt_time.c84 static int pt_time_ctc_delta(uint32_t *ctc_delta, uint32_t ctc, in pt_time_ctc_delta() argument
93 if (ctc < last_ctc) { in pt_time_ctc_delta()
94 ctc += 1u << (config->mtc_freq + pt_pl_mtc_bit_size); in pt_time_ctc_delta()
99 if (ctc < last_ctc) in pt_time_ctc_delta()
103 *ctc_delta = ctc - last_ctc; in pt_time_ctc_delta()
111 static int pt_time_ctc_fc(uint64_t *fc, uint64_t ctc, in pt_time_ctc_fc() argument
126 *fc = (ctc * ebx) / eax; in pt_time_ctc_fc()
143 time->ctc = 0; in pt_time_update_tsc()
178 uint32_t ctc, mtc_freq, mtc_hi, ctc_mask; in pt_time_update_tma() local
196 ctc = packet->ctc; in pt_time_update_tma()
[all …]
H A Dpt_encoder.c455 uint16_t ctc, fc; in pt_enc_next() local
461 ctc = packet->payload.tma.ctc; in pt_enc_next()
469 pos = pt_encode_int(pos, ctc, pt_pl_tma_ctc_size); in pt_enc_next()
483 *pos++ = packet->payload.mtc.ctc; in pt_enc_next()
490 uint64_t ctc; in pt_enc_next() local
492 ctc = (uint8_t) packet->payload.cyc.value; in pt_enc_next()
493 ctc <<= pt_opm_cyc_shr; in pt_enc_next()
496 byte[0] |= (uint8_t) ctc; in pt_enc_next()
498 ctc = packet->payload.cyc.value; in pt_enc_next()
499 ctc >>= (8 - pt_opm_cyc_shr); in pt_enc_next()
[all …]
H A Dpt_packet.c346 uint16_t ctc, fc; in pt_pkt_read_tma() local
354 ctc = pos[pt_pl_tma_ctc_0]; in pt_pkt_read_tma()
355 ctc |= pos[pt_pl_tma_ctc_1] << 8; in pt_pkt_read_tma()
363 packet->ctc = ctc; in pt_pkt_read_tma()
378 packet->ctc = pos[pt_opcs_mtc]; in pt_pkt_read_mtc()
/src/cddl/contrib/opensolaris/common/ctf/
H A Dctf_create.c890 const ctf_funcinfo_t *ctc, const ctf_id_t *argv) in ctf_add_function() argument
899 if (ctc == NULL || (ctc->ctc_flags & ~CTF_FUNC_VARARG) != 0 || in ctf_add_function()
900 (ctc->ctc_argc != 0 && argv == NULL)) in ctf_add_function()
903 vlen = ctc->ctc_argc; in ctf_add_function()
904 if (ctc->ctc_flags & CTF_FUNC_VARARG) in ctf_add_function()
911 if (ctf_lookup_by_id(&fpd, ctc->ctc_return) == NULL && in ctf_add_function()
912 ctf_dtd_lookup(fp, ctc->ctc_return) == NULL) in ctf_add_function()
915 for (i = 0; i < ctc->ctc_argc; i++) { in ctf_add_function()
931 dtd->dtd_data.ctt_type = ctc->ctc_return; in ctf_add_function()
933 ctf_ref_inc(fp, ctc->ctc_return); in ctf_add_function()
[all …]
/src/contrib/processor-trace/libipt/internal/include/
H A Dpt_encoder.h107 extern int pt_encode_tma(struct pt_encoder *, uint16_t ctc,
111 extern int pt_encode_mtc(struct pt_encoder *, uint8_t ctc);
H A Dpt_time.h54 uint32_t ctc; member
162 uint32_t ctc; member
/src/contrib/processor-trace/libipt/test/src/
H A Dptunit-time.c316 packet.ctc = 0xdc; in tma()
331 packet.ctc = 0xdc; in mtc()
H A Dptunit-packet.c336 pfix->packet[0].payload.tma.ctc = 0x42; in tma()
349 pfix->packet[0].payload.tma.ctc = 0x42; in tma_bad()
361 pfix->packet[0].payload.mtc.ctc = 0x23; in mtc()
/src/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_open.c1044 ctf_funcinfo_t ctc; in dt_vopen() local
1490 ctc.ctc_return = ctf_lookup_by_name(dmp->dm_ctfp, "int"); in dt_vopen()
1491 ctc.ctc_argc = 0; in dt_vopen()
1492 ctc.ctc_flags = 0; in dt_vopen()
1495 CTF_ADD_ROOT, &ctc, NULL); in dt_vopen()
/src/contrib/processor-trace/libipt/include/
H A Dintel-pt.h710 uint16_t ctc; member
719 uint8_t ctc; member
H A Dintel-pt.h.in710 uint16_t ctc; member
719 uint8_t ctc; member