Home
last modified time | relevance | path

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

1234

/freebsd-13-stable/contrib/processor-trace/libipt/src/
HDpt_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-13-stable/stand/libsa/
HDtslog.c44 tsccat(char * buf, uint64_t tsc) in tsccat() argument
49 if (tsc >= 10) in tsccat()
50 len = tsccat(buf, tsc / 10); in tsccat()
55 buf[len] = "0123456789"[tsc % 10]; in tsccat()
82 uint64_t tsc = rdtsc(); in tslog() local
84 uint64_t tsc = READ_SPECIALREG(cntvct_el0); in tslog()
86 uint64_t tsc = 0; in tslog()
101 tslog_bufpos += tsccat(&tslog_buf[tslog_bufpos], tsc); in tslog()
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/
HDPerfContextSwitchDecoder.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 …]
HDDecodedThread.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()
HDLibiptDecoder.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
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()
600 assert(execution.psb_blocks.front().tsc && in DecodeSystemWideTraceForThread()
604 *execution.psb_blocks.front().tsc)); in DecodeSystemWideTraceForThread()
679 : exec.psb_blocks.front().tsc; in operator <()
[all …]
HDTraceIntelPTMultiCpuDecoder.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()
HDThreadDecoder.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()
HDTraceIntelPT.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()
HDDecodedThread.h69 TSC tsc; member
87 TSC tsc; member
236 void NotifyTsc(TSC tsc);
/freebsd-13-stable/sys/x86/x86/
HDtsc.c478 uint64_t *tsc = arg; \
482 tsc[cpu * 3 + x] = rdtsc(); \
494 uint64_t *tsc; in comp_smp_tsc() local
500 for (i = 0, tsc = arg; i < N; i++, tsc += size) in comp_smp_tsc()
504 d1 = tsc[cpu * 3 + 1] - tsc[j * 3]; in comp_smp_tsc()
505 d2 = tsc[cpu * 3 + 2] - tsc[j * 3 + 1]; in comp_smp_tsc()
516 uint64_t *tsc; in adj_smp_tsc() local
527 for (i = 0, tsc = arg; i < N; i++, tsc += size) { in adj_smp_tsc()
528 d = tsc[first * 3] - tsc[cpu * 3 + 1]; in adj_smp_tsc()
531 d = tsc[first * 3 + 1] - tsc[cpu * 3 + 2]; in adj_smp_tsc()
[all …]
/freebsd-13-stable/contrib/processor-trace/libipt/test/src/
HDptunit-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 …]
HDptunit-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-13-stable/sys/kern/
HDkern_tslog.c51 uint64_t tsc; member
57 uint64_t tsc = get_cyclecount(); in tslog() local
69 timestamps[pos].tsc = tsc; in tslog()
106 (unsigned long long)timestamps[i].tsc); in sysctl_debug_tslog()
149 uint64_t tsc = get_cyclecount(); in tslog_user() local
165 procs[pid].tsc_forked = tsc; in tslog_user()
185 procs[pid].tsc_exited = tsc; in tslog_user()
/freebsd-13-stable/sys/contrib/device-tree/Bindings/input/touchscreen/
HDimx6ul_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";
HDlpc32xx-tsc.txt4 - compatible: must be "nxp,lpc3220-tsc"
11 tsc@40048000 {
12 compatible = "nxp,lpc3220-tsc";
/freebsd-13-stable/contrib/ntp/util/
HDpps-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-13-stable/lib/libc/x86/sys/
HD__vdso_gettc.c317 uint64_t disc, ret, tsc, scale; in __vdso_hyperv_tsc() local
326 tsc = rdtsc(); in __vdso_hyperv_tsc()
331 "a" (tsc), "r" (scale)); in __vdso_hyperv_tsc()
352 uint64_t delta, ns, tsc; in __vdso_pvclock_gettc() local
362 tsc = __vdso_gettc_rdtsc(); in __vdso_pvclock_gettc()
367 tsc = rdtscp_aux(&cpuid_tsc); in __vdso_pvclock_gettc()
369 delta = tsc - ti->tsc_timestamp; in __vdso_pvclock_gettc()
/freebsd-13-stable/contrib/processor-trace/libipt/internal/include/
HDpt_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-13-stable/contrib/llvm-project/llvm/lib/XRay/
HDRecordPrinter.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()
HDFDRTraceExpander.cpp30 BaseTSC = R.tsc(); in visit()
35 BaseTSC = R.tsc(); in visit()
42 CurrentRecord.TSC = R.tsc(); in visit()
/freebsd-13-stable/sys/dev/hyperv/vmbus/amd64/
HDhyperv_machdep.c143 uint64_t disc, ret, tsc; \
148 tsc = rdtsc(); \
153 "a" (tsc), "r" (scale)); \
/freebsd-13-stable/tools/tools/tscdrift/
HDtscdrift.c96 uint64_t tsc; in main() local
143 tsc = rdtsc(); in main()
150 skew[i][j] = thread_tsc - tsc; in main()
/freebsd-13-stable/tools/test/ppsapi/
HDppsapitest.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()
/freebsd-13-stable/contrib/llvm-project/lldb/source/Utility/
HDTraceIntelPTGDBRemotePackets.cpp75 uint64_t LinuxPerfZeroTscConversion::ToNanos(uint64_t tsc) const { in ToNanos()
76 uint64_t quot = tsc >> time_shift; in ToNanos()
78 uint64_t rem = tsc & rem_flag; in ToNanos()
/freebsd-13-stable/sys/cddl/dev/dtrace/amd64/
HDdtrace_subr.c385 uint64_t tsc; local
396 tsc = rdtsc() - tsc_skew[curcpu];
399 lo = tsc;
400 hi = tsc >> 32;

1234