Home
last modified time | relevance | path

Searched refs:tcal (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/processor-trace/libipt/src/
H A Dpt_time.c440 void pt_tcal_init(struct pt_time_cal *tcal) in pt_tcal_init() argument
442 if (!tcal) in pt_tcal_init()
445 memset(tcal, 0, sizeof(*tcal)); in pt_tcal_init()
447 tcal->min_fcr = UINT64_MAX; in pt_tcal_init()
450 static int pt_tcal_have_fcr(const struct pt_time_cal *tcal) in pt_tcal_have_fcr() argument
452 if (!tcal) in pt_tcal_have_fcr()
455 return (tcal->min_fcr <= tcal->max_fcr); in pt_tcal_have_fcr()
458 int pt_tcal_fcr(uint64_t *fcr, const struct pt_time_cal *tcal) in pt_tcal_fcr() argument
460 if (!fcr || !tcal) in pt_tcal_fcr()
463 if (!pt_tcal_have_fcr(tcal)) in pt_tcal_fcr()
[all …]
H A Dpt_query_decoder.c106 pt_tcal_init(&decoder->tcal); in pt_qry_decoder_init()
156 pt_tcal_init(&decoder->tcal); in pt_qry_reset()
370 static int pt_qry_apply_tsc(struct pt_time *time, struct pt_time_cal *tcal, in pt_qry_apply_tsc() argument
381 errcode = pt_tcal_update_tsc(tcal, packet, config); in pt_qry_apply_tsc()
396 struct pt_time_cal *tcal, in pt_qry_apply_header_tsc() argument
407 errcode = pt_tcal_header_tsc(tcal, packet, config); in pt_qry_apply_header_tsc()
421 static int pt_qry_apply_cbr(struct pt_time *time, struct pt_time_cal *tcal, in pt_qry_apply_cbr() argument
432 errcode = pt_tcal_update_cbr(tcal, packet, config); in pt_qry_apply_cbr()
447 struct pt_time_cal *tcal, in pt_qry_apply_header_cbr() argument
458 errcode = pt_tcal_header_cbr(tcal, packet, config); in pt_qry_apply_header_cbr()
[all …]
/freebsd/contrib/processor-trace/libipt/test/src/
H A Dptunit-time.c43 struct pt_time_cal tcal; member
61 pt_tcal_init(&tfix->tcal); in tfix_init()
62 pt_tcal_set_fcr(&tfix->tcal, 0x2ull << pt_tcal_fcr_shr); in tfix_init()
220 errcode = pt_tcal_update_cbr(&tfix->tcal, &packet, &config); in tcal_cbr_zero()
234 errcode = pt_tcal_update_mtc(&tfix->tcal, NULL, &tfix->config); in tcal_mtc_null()
237 errcode = pt_tcal_update_mtc(&tfix->tcal, &packet, NULL); in tcal_mtc_null()
251 errcode = pt_tcal_update_cyc(&tfix->tcal, NULL, &tfix->config); in tcal_cyc_null()
348 errcode = pt_tcal_fcr(&fcr, &tfix->tcal); in cyc()
/freebsd/contrib/processor-trace/libipt/internal/include/
H A Dpt_time.h185 extern void pt_tcal_init(struct pt_time_cal *tcal);
196 extern int pt_tcal_fcr(uint64_t *fcr, const struct pt_time_cal *tcal);
207 extern int pt_tcal_set_fcr(struct pt_time_cal *tcal, uint64_t fcr);
H A Dpt_query_decoder.h69 struct pt_time_cal tcal; member