Lines Matching refs:tsc
4225 u64 tsc, tm; in intel_pt_tsc_start() local
4227 tsc = perf_time_to_tsc(ns, &pt->tc); in intel_pt_tsc_start()
4230 tm = tsc_to_perf_time(tsc, &pt->tc); in intel_pt_tsc_start()
4233 tsc -= 1; in intel_pt_tsc_start()
4237 tm = tsc_to_perf_time(++tsc, &pt->tc); in intel_pt_tsc_start()
4239 return tsc; in intel_pt_tsc_start()
4245 u64 tsc, tm; in intel_pt_tsc_end() local
4247 tsc = perf_time_to_tsc(ns, &pt->tc); in intel_pt_tsc_end()
4250 tm = tsc_to_perf_time(tsc, &pt->tc); in intel_pt_tsc_end()
4253 tsc += 1; in intel_pt_tsc_end()
4257 tm = tsc_to_perf_time(--tsc, &pt->tc); in intel_pt_tsc_end()
4259 return tsc; in intel_pt_tsc_end()