Home
last modified time | relevance | path

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

123

/freebsd-12-stable/contrib/processor-trace/libipt/src/
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()
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 …]
Dpt_encoder.c434 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()
Dpt_insn_decoder.c192 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/
Dtsc.c424 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/
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()
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 …]
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-12-stable/sys/kern/
Dkern_tslog.c49 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/
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-12-stable/lib/libc/x86/sys/
D__vdso_gettc.c286 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/
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-12-stable/contrib/llvm-project/llvm/lib/XRay/
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()
DFDRTraceExpander.cpp30 BaseTSC = R.tsc(); in visit()
35 BaseTSC = R.tsc(); in visit()
42 CurrentRecord.TSC = R.tsc(); in visit()
DFDRTraceWriter.cpp88 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/
Dhyperv_machdep.c145 uint64_t disc, ret, tsc; \
150 tsc = rdtsc(); \
155 "a" (tsc), "r" (scale)); \
/freebsd-12-stable/tools/tools/tscdrift/
Dtscdrift.c98 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/
Dppsapitest.c22 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/
Ddtrace_subr.c380 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/
Ddtrace_subr.c382 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/
Dsave.h145 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/
Dimx6ulz-14x14-evk.dts15 /delete-node/ &tsc;
Dlpc32xx.dtsi451 tsc: tsc@40048000 { label
452 compatible = "nxp,lpc3220-tsc";
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/XRay/
DFDRRecords.h175 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/
DTraceIntelPTOptions.td15 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/
Dintel-pt.h675 uint64_t tsc; member
837 struct pt_packet_tsc tsc; member
1155 uint64_t tsc; member
/freebsd-12-stable/sys/dev/hwpmc/
Dhwpmc_logging.c140 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()

123