Home
last modified time | relevance | path

Searched refs:tsc (Results 1 – 25 of 105) sorted by relevance

12345

/freebsd/contrib/processor-trace/libipt/src/
H A Dpt_time.c46 int pt_time_query_tsc(uint64_t *tsc, uint32_t *lost_mtc, in pt_time_query_tsc() argument
49 if (!tsc || !time) in pt_time_query_tsc()
52 *tsc = time->tsc; in pt_time_query_tsc()
142 time->tsc = time->base = packet->tsc; in pt_time_update_tsc()
239 uint64_t tsc, base; in pt_time_update_mtc() local
331 errcode = pt_time_ctc_fc(&tsc, ctc_delta, config); in pt_time_update_mtc()
335 base += tsc; in pt_time_update_mtc()
336 time->tsc = time->base = base; in pt_time_update_mtc()
435 time->tsc = time->base + fc; in pt_time_update_cyc()
512 tcal->tsc = packet->tsc; in pt_tcal_update_tsc()
[all …]
/freebsd/stand/libsa/
H A Dtslog.c43 tsccat(char * buf, uint64_t tsc) in tsccat() argument
48 if (tsc >= 10) in tsccat()
49 len = tsccat(buf, tsc / 10); in tsccat()
54 buf[len] = "0123456789"[tsc % 10]; in tsccat()
81 uint64_t tsc = rdtsc(); in tslog() local
83 uint64_t tsc = READ_SPECIALREG(cntvct_el0); in tslog()
85 uint64_t tsc = 0; in tslog()
100 tslog_bufpos += tsccat(&tslog_buf[tslog_bufpos], tsc); in tslog()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/
H A DPerfContextSwitchDecoder.cpp88 uint64_t tsc; member
201 cpu_id, current_record.tid, current_record.pid, current_record.tsc)); in RecoverExecutionsFromConsecutiveRecords()
208 if (prev.tsc >= current_record.tsc) in RecoverExecutionsFromConsecutiveRecords()
213 prev.tsc, current_record.tsc)); in RecoverExecutionsFromConsecutiveRecords()
219 cpu_id, prev.tid, prev.pid, prev.tsc, current_record.tsc - 1)); in RecoverExecutionsFromConsecutiveRecords()
224 cpu_id, current_record.tid, current_record.pid, prev.tsc + 1, in RecoverExecutionsFromConsecutiveRecords()
225 current_record.tsc)); in RecoverExecutionsFromConsecutiveRecords()
230 cpu_id, current_record.tid, current_record.pid, prev.tsc, in RecoverExecutionsFromConsecutiveRecords()
231 current_record.tsc)); in RecoverExecutionsFromConsecutiveRecords()
236 cpu_id, prev.tid, prev.pid, prev.tsc, current_record.tsc - 1)); in RecoverExecutionsFromConsecutiveRecords()
[all …]
H A DDecodedThread.cpp65 return interpolate(tsc_conversion.ToNanos(tsc + items_count)); in GetInterpolatedTime()
67 if (items_count < (next_range->tsc - tsc)) { in GetInterpolatedTime()
79 std::min(tsc_conversion.ToNanos(tsc + items_count), next_range->nanos)); in GetInterpolatedTime()
120 void DecodedThread::NotifyTsc(TSC tsc) { in NotifyTsc()
121 if (m_last_tsc && (*m_last_tsc)->second.tsc == tsc) in NotifyTsc()
124 assert(tsc >= (*m_last_tsc)->second.tsc && in NotifyTsc()
128 m_tscs.emplace(GetItemsCount(), TSCRange{tsc, in NotifyTsc()
118 NotifyTsc(TSC tsc) NotifyTsc() argument
[all...]
H A DLibiptDecoder.cpp394 if (m_psb_block.tsc) in DecodePSBBlock()
395 m_decoded_thread.NotifyTsc(*m_psb_block.tsc); in DecodePSBBlock()
469 /// \param[in] tsc
471 Error ProcessPTEventTSC(DecodedThread::TSC tsc) { in ProcessPTEventTSC() argument
472 if (m_tsc_upper_bound && tsc >= *m_tsc_upper_bound) { in ProcessPTEventTSC()
481 tsc, *m_tsc_upper_bound) in ProcessPTEventTSC()
494 m_decoded_thread.NotifyTsc(tsc); in ProcessPTEventTSC()
520 if (Error err = ProcessPTEventTSC(event.tsc)) { in ProcessPTEvents()
596 // We emit the first valid tsc in DecodeSystemWideTraceForThread()
600 assert(execution.psb_blocks.front().tsc in DecodeSystemWideTraceForThread()
716 std::optional<uint64_t> tsc; SplitTraceIntoPSBBlock() local
[all...]
H A DTraceIntelPTMultiCpuDecoder.cpp45 Expected<std::optional<uint64_t>> tsc = in FindLowestTSC() local
47 if (!tsc) in FindLowestTSC()
48 return tsc.takeError(); in FindLowestTSC()
49 if (*tsc && (!lowest_tsc || *lowest_tsc > **tsc)) in FindLowestTSC()
50 lowest_tsc = **tsc; in FindLowestTSC()
142 *it->tsc < thread_execution.GetEndTSC(); in DoCorrelateContextSwitchesAndIntelPtTraces()
144 if (*it->tsc > thread_execution.GetStartTSC()) { in DoCorrelateContextSwitchesAndIntelPtTraces()
H A DThreadDecoder.cpp28 Expected<std::optional<uint64_t>> tsc = in FindLowestTSC() local
30 if (!tsc) in FindLowestTSC()
31 return tsc.takeError(); in FindLowestTSC()
32 lowest_tsc = *tsc; in FindLowestTSC()
H A DTraceIntelPT.cpp204 if (Expected<std::optional<uint64_t>> tsc = in FindBeginningOfTimeNanos() local
206 lowest_tsc = *tsc; in FindBeginningOfTimeNanos()
208 return tsc.takeError(); in FindBeginningOfTimeNanos()
213 Expected<std::optional<uint64_t>> tsc = decoder.second->FindLowestTSC(); in FindBeginningOfTimeNanos() local
214 if (!tsc) in FindBeginningOfTimeNanos()
215 return tsc.takeError(); in FindBeginningOfTimeNanos()
217 if (*tsc && (!lowest_tsc || *lowest_tsc > **tsc)) in FindBeginningOfTimeNanos()
218 lowest_tsc = **tsc; in FindBeginningOfTimeNanos()
H A DDecodedThread.h69 TSC tsc;
87 TSC tsc;
107 /// The tsc -> nanos conversion utility
234 /// Notify this object that a new tsc has been seen.
236 void NotifyTsc(TSC tsc);
68 TSC tsc; global() member
86 TSC tsc; global() member
/freebsd/sys/x86/x86/
H A Dtsc.c499 uint64_t *tsc = arg; \
503 tsc[cpu * 3 + x] = rdtsc(); \
515 uint64_t *tsc; in comp_smp_tsc() local
521 for (i = 0, tsc = arg; i < N; i++, tsc += size) in comp_smp_tsc()
525 d1 = tsc[cpu * 3 + 1] - tsc[j * 3]; in comp_smp_tsc()
526 d2 = tsc[cpu * 3 + 2] - tsc[j * 3 + 1]; in comp_smp_tsc()
537 uint64_t *tsc; in adj_smp_tsc() local
548 for (i = 0, tsc = arg; i < N; i++, tsc += size) { in adj_smp_tsc()
549 d = tsc[first * 3] - tsc[cpu * 3 + 1]; in adj_smp_tsc()
552 d = tsc[first * 3 + 1] - tsc[cpu * 3 + 2]; in adj_smp_tsc()
[all …]
/freebsd/contrib/processor-trace/libipt/test/src/
H A Dptunit-time.c151 uint64_t tsc; in query_tsc_null() local
157 errcode = pt_time_query_tsc(&tsc, NULL, NULL, NULL); in query_tsc_null()
165 uint64_t tsc; in query_tsc_none() local
168 errcode = pt_time_query_tsc(&tsc, NULL, NULL, &tfix->time); in query_tsc_none()
257 static struct ptunit_result tsc(struct time_fixture *tfix) in tsc() function
260 uint64_t tsc; in tsc() local
264 packet.tsc = 0xdedededeull; in tsc()
269 errcode = pt_time_query_tsc(&tsc, &lost_mtc, &lost_cyc, &tfix->time); in tsc()
272 ptu_uint_eq(tsc, 0xdedededeull); in tsc()
328 uint64_t tsc; in mtc() local
[all …]
H A Dptunit-query.c938 uint64_t tsc) in event_enabled() argument
962 if (!tsc) in event_enabled()
966 ptu_uint_eq(event.tsc, tsc); in event_enabled()
994 uint64_t tsc) in event_disabled() argument
1020 if (!tsc) in event_disabled()
1024 ptu_uint_eq(event.tsc, tsc); in event_disabled()
1051 enum pt_ip_compression ipc, uint64_t tsc) in event_async_disabled() argument
1083 if (!tsc) in event_async_disabled()
1087 ptu_uint_eq(event.tsc, tsc); in event_async_disabled()
1172 uint64_t tsc) in event_async_branch() argument
[all …]
/freebsd/sys/kern/
H A Dkern_tslog.c50 uint64_t tsc; member
56 uint64_t tsc = get_cyclecount(); in tslog() local
72 timestamps[pos].tsc = tsc; in tslog()
109 (unsigned long long)timestamps[i].tsc); in sysctl_debug_tslog()
152 uint64_t tsc = get_cyclecount(); in tslog_user() local
168 procs[pid].tsc_forked = tsc; in tslog_user()
188 procs[pid].tsc_exited = tsc; in tslog_user()
/freebsd/sys/contrib/device-tree/Bindings/input/touchscreen/
H A Dimx6ul_tsc.txt4 - compatible: must be "fsl,imx6ul-tsc".
8 - clock-names; must be "tsc" and "adc".
24 tsc: tsc@2040000 {
25 compatible = "fsl,imx6ul-tsc";
31 clock-names = "tsc", "adc";
H A Dlpc32xx-tsc.txt4 - compatible: must be "nxp,lpc3220-tsc"
11 tsc@40048000 {
12 compatible = "nxp,lpc3220-tsc";
/freebsd/contrib/ntp/util/
H A Dpps-api.c31 Chew(struct timespec *tsa, struct timespec *tsc, unsigned sa, unsigned sc) in Chew() argument
37 printf("%d.%09d ", tsc->tv_sec, tsc->tv_nsec); in Chew()
40 ts = *tsc; in Chew()
/freebsd/lib/libsys/x86/
H A D__vdso_gettc.c316 uint64_t disc, ret, tsc, scale; in __vdso_hyperv_tsc() local
325 tsc = rdtsc(); in __vdso_hyperv_tsc()
330 "a" (tsc), "r" (scale)); in __vdso_hyperv_tsc()
351 uint64_t delta, ns, tsc; in __vdso_pvclock_gettc() local
361 tsc = __vdso_gettc_rdtsc(); in __vdso_pvclock_gettc()
366 tsc = rdtscp_aux(&cpuid_tsc); in __vdso_pvclock_gettc()
368 delta = tsc - ti->tsc_timestamp; in __vdso_pvclock_gettc()
/freebsd/contrib/processor-trace/libipt/internal/include/
H A Dpt_time.h45 uint64_t tsc; member
95 extern int pt_time_query_tsc(uint64_t *tsc, uint32_t *lost_mtc,
144 uint64_t tsc; member
/freebsd/contrib/llvm-project/llvm/lib/XRay/
H A DRecordPrinter.cpp27 OS << formatv("<CPU: id = {0}, tsc = {1}>", R.cpuid(), R.tsc()) << Delim; in visit()
32 OS << formatv("<TSC Wrap: base = {0}>", R.tsc()) << Delim; in visit()
39 R.tsc(), R.cpu(), R.size(), R.data()) in visit()
H A DFDRTraceExpander.cpp30 BaseTSC = R.tsc(); in visit()
35 BaseTSC = R.tsc(); in visit()
42 CurrentRecord.TSC = R.tsc(); in visit()
/freebsd/sys/dev/hyperv/vmbus/amd64/
H A Dhyperv_machdep.c145 uint64_t disc, ret, tsc; \
150 tsc = rdtsc(); \
155 "a" (tsc), "r" (scale)); \
/freebsd/tools/tools/tscdrift/
H A Dtscdrift.c94 uint64_t tsc; in main() local
141 tsc = rdtsc(); in main()
148 skew[i][j] = thread_tsc - tsc; in main()
/freebsd/sys/cddl/dev/dtrace/i386/
H A Ddtrace_subr.c357 uint64_t tsc; in dtrace_gethrtime() local
368 tsc = rdtsc() - tsc_skew[curcpu]; in dtrace_gethrtime()
371 lo = tsc; in dtrace_gethrtime()
372 hi = tsc >> 32; in dtrace_gethrtime()
/freebsd/sys/cddl/dev/dtrace/amd64/
H A Ddtrace_subr.c360 uint64_t tsc; in dtrace_gethrtime() local
371 tsc = rdtsc() - tsc_skew[curcpu]; in dtrace_gethrtime()
374 lo = tsc; in dtrace_gethrtime()
375 hi = tsc >> 32; in dtrace_gethrtime()
/freebsd/tools/test/ppsapi/
H A Dppsapitest.c20 Chew(struct timespec *tsa, struct timespec *tsc, unsigned sa, unsigned sc) in Chew() argument
23 printf(" %jd .%09ld %u\n", (intmax_t)tsc->tv_sec, tsc->tv_nsec, sc); in Chew()

12345