Home
last modified time | relevance | path

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

12345

/freebsd-14.2/contrib/processor-trace/libipt/src/
H A Dpt_time.c49 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
335 base += tsc; in pt_time_update_mtc()
512 tcal->tsc = packet->tsc; in pt_tcal_update_tsc()
529 last_tsc = tcal->tsc; in pt_tcal_header_tsc()
532 tsc = packet->tsc; in pt_tcal_header_tsc()
534 tcal->tsc = tsc; in pt_tcal_header_tsc()
548 if (tsc < last_tsc) in pt_tcal_header_tsc()
[all …]
/freebsd-14.2/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-14.2/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/
H A DPerfContextSwitchDecoder.cpp88 uint64_t tsc; member
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()
238 cpu_id, current_record.tid, current_record.pid, prev.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() argument
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, 0, GetItemsCount()}).first; in NotifyTsc()
131 uint64_t nanos = m_tsc_conversion->ToNanos(tsc); in NotifyTsc()
135 .emplace(GetItemsCount(), NanosecondsRange{nanos, tsc, nullptr, 0, in NotifyTsc()
H A DLibiptDecoder.cpp394 if (m_psb_block.tsc) in DecodePSBBlock()
395 m_decoded_thread.NotifyTsc(*m_psb_block.tsc); in DecodePSBBlock()
471 Error ProcessPTEventTSC(DecodedThread::TSC tsc) { in ProcessPTEventTSC() argument
494 m_decoded_thread.NotifyTsc(tsc); in ProcessPTEventTSC()
520 if (Error err = ProcessPTEventTSC(event.tsc)) { in ProcessPTEvents()
600 assert(execution.psb_blocks.front().tsc && in DecodeSystemWideTraceForThread()
716 std::optional<uint64_t> tsc; in SplitTraceIntoPSBBlock() local
724 tsc = event.tsc; in SplitTraceIntoPSBBlock()
738 if (expect_tscs && !tsc) in SplitTraceIntoPSBBlock()
744 tsc, in SplitTraceIntoPSBBlock()
[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()
/freebsd-14.2/sys/x86/x86/
H A Dtsc.c515 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()
555 d = tsc[first * 3 + 1] - tsc[cpu * 3]; in adj_smp_tsc()
558 d = tsc[first * 3 + 2] - tsc[cpu * 3 + 1]; in adj_smp_tsc()
[all …]
/freebsd-14.2/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()
272 ptu_uint_eq(tsc, 0xdedededeull); in tsc()
328 uint64_t tsc; in mtc() local
345 uint64_t fcr, tsc; in cyc() local
[all …]
H A Dptunit-query.c966 ptu_uint_eq(event.tsc, tsc); in event_enabled()
1024 ptu_uint_eq(event.tsc, tsc); in event_disabled()
1087 ptu_uint_eq(event.tsc, tsc); in event_async_disabled()
1208 ptu_uint_eq(event.tsc, tsc); in event_async_branch()
1276 ptu_uint_eq(event.tsc, tsc); in event_paging()
1328 ptu_uint_eq(event.tsc, tsc); in event_async_paging()
1343 ptu_uint_eq(event.tsc, tsc); in event_async_paging()
1375 ptu_uint_eq(event.tsc, tsc); in event_async_paging_suppressed()
1390 ptu_uint_eq(event.tsc, tsc); in event_async_paging_suppressed()
1494 ptu_uint_eq(event.tsc, tsc); in event_overflow_tip_pge()
[all …]
/freebsd-14.2/sys/kern/
H A Dkern_tslog.c51 uint64_t tsc; member
57 uint64_t tsc = get_cyclecount(); in tslog() local
73 timestamps[pos].tsc = tsc; in tslog()
110 (unsigned long long)timestamps[i].tsc); in sysctl_debug_tslog()
153 uint64_t tsc = get_cyclecount(); in tslog_user() local
169 procs[pid].tsc_forked = tsc; in tslog_user()
189 procs[pid].tsc_exited = tsc; in tslog_user()
/freebsd-14.2/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";
H A Dti,am3359-tsc.yaml4 $id: http://devicetree.org/schemas/input/touchscreen/ti,am3359-tsc.yaml#
14 const: ti,am3359-tsc
69 tsc {
70 compatible = "ti,am3359-tsc";
/freebsd-14.2/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-14.2/lib/libc/x86/sys/
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-14.2/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-14.2/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-14.2/sys/dev/hyperv/vmbus/amd64/
H A Dhyperv_machdep.c146 uint64_t disc, ret, tsc; \
151 tsc = rdtsc(); \
156 "a" (tsc), "r" (scale)); \
/freebsd-14.2/tools/tools/tscdrift/
H A Dtscdrift.c96 uint64_t tsc; in main() local
143 tsc = rdtsc(); in main()
150 skew[i][j] = thread_tsc - tsc; in main()
/freebsd-14.2/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-14.2/sys/cddl/dev/dtrace/amd64/
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-14.2/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