| /freebsd-12-stable/contrib/processor-trace/libipt/src/ |
| D | pt_time.c | 46 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() 233 uint64_t tsc, base; in pt_time_update_mtc() local 325 errcode = pt_time_ctc_fc(&tsc, ctc_delta, config); in pt_time_update_mtc() 329 base += tsc; in pt_time_update_mtc() 330 time->tsc = time->base = base; in pt_time_update_mtc() 429 time->tsc = time->base + fc; in pt_time_update_cyc() 494 tcal->tsc = packet->tsc; in pt_tcal_update_tsc() [all …]
|
| D | pt_encoder.c | 434 pos = pt_encode_int(pos, packet->payload.tsc.tsc, in pt_enc_next() 839 int pt_encode_tsc(struct pt_encoder *encoder, uint64_t tsc) in pt_encode_tsc() argument 844 packet.payload.tsc.tsc = tsc; in pt_encode_tsc()
|
| D | pt_insn_decoder.c | 192 uint64_t tsc; in pt_insn_tick() local 217 errcode = pt_qry_time(&decoder->query, &tsc, &lost_mtc, &lost_cyc); in pt_insn_tick() 227 if (tsc == ev->tsc) in pt_insn_tick() 238 ev->tsc = tsc; in pt_insn_tick()
|
| /freebsd-12-stable/sys/x86/x86/ |
| D | tsc.c | 424 uint64_t *tsc = arg; \ 428 tsc[cpu * 3 + x] = rdtsc(); \ 440 uint64_t *tsc; in comp_smp_tsc() local 446 for (i = 0, tsc = arg; i < N; i++, tsc += size) in comp_smp_tsc() 450 d1 = tsc[cpu * 3 + 1] - tsc[j * 3]; in comp_smp_tsc() 451 d2 = tsc[cpu * 3 + 2] - tsc[j * 3 + 1]; in comp_smp_tsc() 462 uint64_t *tsc; in adj_smp_tsc() local 473 for (i = 0, tsc = arg; i < N; i++, tsc += size) { in adj_smp_tsc() 474 d = tsc[first * 3] - tsc[cpu * 3 + 1]; in adj_smp_tsc() 477 d = tsc[first * 3 + 1] - tsc[cpu * 3 + 2]; in adj_smp_tsc() [all …]
|
| /freebsd-12-stable/contrib/processor-trace/libipt/test/src/ |
| D | ptunit-time.c | 151 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() 241 static struct ptunit_result tsc(struct time_fixture *tfix) in tsc() function 244 uint64_t tsc; in tsc() local 248 packet.tsc = 0xdedededeull; in tsc() 253 errcode = pt_time_query_tsc(&tsc, &lost_mtc, &lost_cyc, &tfix->time); in tsc() 256 ptu_uint_eq(tsc, 0xdedededeull); in tsc() 299 uint64_t tsc; in mtc() local [all …]
|
| D | ptunit-query.c | 938 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-12-stable/sys/kern/ |
| D | kern_tslog.c | 49 uint64_t tsc; member 55 uint64_t tsc = get_cyclecount(); in tslog() local 67 timestamps[pos].tsc = tsc; in tslog() 91 (unsigned long long)timestamps[i].tsc); in sysctl_debug_tslog()
|
| /freebsd-12-stable/contrib/ntp/util/ |
| D | pps-api.c | 31 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-12-stable/lib/libc/x86/sys/ |
| D | __vdso_gettc.c | 286 uint64_t disc, ret, tsc, scale; in __vdso_hyperv_tsc() local 295 tsc = rdtsc(); in __vdso_hyperv_tsc() 300 "a" (tsc), "r" (scale)); in __vdso_hyperv_tsc() 321 uint64_t delta, ns, tsc; in __vdso_pvclock_gettc() local 331 tsc = rdtscp(); in __vdso_pvclock_gettc() 336 tsc = rdtscp_aux(&cpuid_tsc); in __vdso_pvclock_gettc() 338 delta = tsc - ti->tsc_timestamp; in __vdso_pvclock_gettc()
|
| /freebsd-12-stable/contrib/processor-trace/libipt/internal/include/ |
| D | pt_time.h | 45 uint64_t tsc; member 95 extern int pt_time_query_tsc(uint64_t *tsc, uint32_t *lost_mtc, 144 uint64_t tsc; member
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/XRay/ |
| D | RecordPrinter.cpp | 27 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()
|
| D | FDRTraceExpander.cpp | 30 BaseTSC = R.tsc(); in visit() 35 BaseTSC = R.tsc(); in visit() 42 CurrentRecord.TSC = R.tsc(); in visit()
|
| D | FDRTraceWriter.cpp | 88 return writeMetadata<2u>(OS, R.cpuid(), R.tsc()); in visit() 92 return writeMetadata<3u>(OS, R.tsc()); in visit() 96 if (auto E = writeMetadata<5u>(OS, R.size(), R.tsc(), R.cpu())) in visit()
|
| /freebsd-12-stable/sys/dev/hyperv/vmbus/amd64/ |
| D | hyperv_machdep.c | 145 uint64_t disc, ret, tsc; \ 150 tsc = rdtsc(); \ 155 "a" (tsc), "r" (scale)); \
|
| /freebsd-12-stable/tools/tools/tscdrift/ |
| D | tscdrift.c | 98 uint64_t tsc; in main() local 145 tsc = rdtsc(); in main() 152 skew[i][j] = thread_tsc - tsc; in main()
|
| /freebsd-12-stable/tools/test/ppsapi/ |
| D | ppsapitest.c | 22 Chew(struct timespec *tsa, struct timespec *tsc, unsigned sa, unsigned sc) in Chew() argument 25 printf(" %jd .%09ld %u\n", (intmax_t)tsc->tv_sec, tsc->tv_nsec, sc); in Chew()
|
| /freebsd-12-stable/sys/cddl/dev/dtrace/amd64/ |
| D | dtrace_subr.c | 380 uint64_t tsc; local 391 tsc = rdtsc() - tsc_skew[curcpu]; 394 lo = tsc; 395 hi = tsc >> 32;
|
| /freebsd-12-stable/sys/cddl/dev/dtrace/i386/ |
| D | dtrace_subr.c | 382 uint64_t tsc; local 393 tsc = rdtsc() - tsc_skew[curcpu]; 396 lo = tsc; 397 hi = tsc >> 32;
|
| /freebsd-12-stable/sys/xen/interface/arch-x86/hvm/ |
| D | save.h | 145 uint64_t tsc; member 254 uint64_t tsc; member 282 ucpu->nat.tsc = ucpu->cmp.tsc; in _hvm_hw_fix_cpu()
|
| /freebsd-12-stable/sys/gnu/dts/arm/ |
| D | imx6ulz-14x14-evk.dts | 15 /delete-node/ &tsc;
|
| D | lpc32xx.dtsi | 451 tsc: tsc@40048000 { label 452 compatible = "nxp,lpc3220-tsc";
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/XRay/ |
| D | FDRRecords.h | 175 uint64_t tsc() const { return TSC; } in tsc() function 197 uint64_t tsc() const { return BaseTSC; } in tsc() function 224 uint64_t tsc() const { return TSC; } in tsc() function
|
| /freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/ |
| D | TraceIntelPTOptions.td | 15 def thread_trace_start_intel_pt_tsc: Option<"tsc", "t">, 54 def process_trace_start_intel_pt_tsc: Option<"tsc", "t">,
|
| /freebsd-12-stable/contrib/processor-trace/libipt/include/ |
| D | intel-pt.h | 675 uint64_t tsc; member 837 struct pt_packet_tsc tsc; member 1155 uint64_t tsc; member
|
| /freebsd-12-stable/sys/dev/hwpmc/ |
| D | hwpmc_logging.c | 140 uint64_t tsc; \ 142 tsc = pmc_rdtsc(); \ 150 ph->pl_tsc = tsc; \ 696 uint64_t tsc; in pmclog_configure_log() local 725 tsc = pmc_rdtsc(); in pmclog_configure_log()
|