Home
last modified time | relevance | path

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

/tools/perf/arch/x86/util/
A Dtsc.c64 static double tsc; in arch_get_tsc_freq() local
68 return tsc; in arch_get_tsc_freq()
80 tsc = cpuinfo_tsc_freq(); in arch_get_tsc_freq()
81 return tsc; in arch_get_tsc_freq()
87 tsc = cpuinfo_tsc_freq(); in arch_get_tsc_freq()
88 return tsc; in arch_get_tsc_freq()
91 tsc = (u64)c * (u64)b / (u64)a; in arch_get_tsc_freq()
92 return tsc; in arch_get_tsc_freq()
A DBuild2 perf-util-y += tsc.o
/tools/testing/selftests/prctl/
A D.gitignore2 disable-tsc-ctxt-sw-stress-test
3 disable-tsc-on-off-stress-test
4 disable-tsc-test
A DMakefile7 TEST_PROGS := disable-tsc-ctxt-sw-stress-test disable-tsc-on-off-stress-test \
8 disable-tsc-test set-anon-vma-name-test set-process-name
/tools/testing/selftests/intel_pstate/
A Daperf.c26 long long tsc, old_tsc, new_tsc; in main() local
82 tsc = new_tsc-old_tsc; in main()
91 printf("freq: %7.0f\n", tsc / (1.0*aperf / (1.0 * mperf)) / total); in main()
/tools/arch/x86/include/asm/
A Dpvclock.h79 u64 __pvclock_read_cycles(const struct pvclock_vcpu_time_info *src, u64 tsc) in __pvclock_read_cycles() argument
81 u64 delta = tsc - src->tsc_timestamp; in __pvclock_read_cycles()
/tools/power/x86/amd_pstate_tracer/
A Damd_pstate_trace.py155 …_dec, time_post_dec, min_perf, des_perf, max_perf, freq_ghz, mperf, aperf, tsc, common_comm, load,… argument
165 …perf), int(des_perf), int(max_perf), freq_ghz, int(mperf), int(aperf), int(tsc), load, duration_ms…
215 tsc = search_obj.group(22)
232 load = Decimal(int(mperf)*100)/ Decimal(tsc)
234 …_dec, time_post_dec, min_perf, des_perf, max_perf, freq_ghz, mperf, aperf, tsc, common_comm, load,…
/tools/power/x86/intel_pstate_tracer/
A Dintel_pstate_tracer.py326 … time_pre_dec, time_post_dec, core_busy, scaled, _from, _to, mperf, aperf, tsc, freq_ghz, io_boost… argument
336 …core_busy), int(scaled), int(_from), int(_to), int(mperf), int(aperf), int(tsc), freq_ghz, int(io_…
450 tsc = search_obj.group(22)
473 load = Decimal(int(mperf)*100)/ Decimal(tsc)
479 tsc_ghz = Decimal(tsc)/duration_ms/Decimal(1000000)
480 … time_pre_dec, time_post_dec, core_busy, scaled, _from, _to, mperf, aperf, tsc, freq_ghz, io_boost…
/tools/perf/arch/arm64/util/
A DBuild4 perf-util-y += tsc.o
/tools/power/cpupower/utils/idle_monitor/
A Dmperf_monitor.c83 static int mperf_get_tsc(unsigned long long *tsc) in mperf_get_tsc() argument
87 ret = read_msr(base_cpu, MSR_TSC, tsc); in mperf_get_tsc()
89 dprint("Reading TSC MSR failed, returning %llu\n", *tsc); in mperf_get_tsc()
/tools/testing/ktest/examples/bootconfigs/
A Dboottrace.bconf47 trace_clock = x86-tsc
/tools/perf/util/intel-pt-decoder/
A Dintel-pt-decoder.c2320 bool tsc, pip, vmcs, tma, psbend; member
2343 data->tsc = true; in intel_pt_vm_psb_lookahead_cb()
2556 if (data->tsc && !data->psbend) in intel_pt_vm_tm_corr_psb()
4186 *tsc = packet.payload; in intel_pt_next_tsc()
4414 uint64_t tsc; in intel_pt_ff_cb() local
4425 tsc = intel_pt_8b_tsc(tsc, buffer->ref_timestamp); in intel_pt_ff_cb()
4428 tsc, buffer->ref_timestamp); in intel_pt_ff_cb()
4434 if (tsc < d->timestamp) in intel_pt_ff_cb()
4491 uint64_t tsc; in intel_pt_fast_forward() local
4496 tsc = intel_pt_8b_tsc(tsc, decoder->buf_timestamp); in intel_pt_fast_forward()
[all …]
/tools/power/x86/turbostat/
A Dturbostat.c1998 unsigned long long tsc; member
3035 outp += sprintf(outp, "TSC: %016llX\n", t->tsc); in dump_counters()
3145 double interval_float, tsc; in format_counters() local
3185 tsc = t->tsc * tsc_tweak; in format_counters()
3257 tsc / units * t->aperf / t->mperf / interval_float); in format_counters()
3860 old->tsc = new->tsc - old->tsc; in delta_thread()
3863 if (old->tsc < (1000 * 1000)) in delta_thread()
3985 t->tsc = 0; in clear_counters()
4090 average.threads.tsc += t->tsc; in sum_counters()
4232 average.threads.tsc /= topo.allowed_cpus; in compute_average()
[all …]
/tools/perf/
A Dbuiltin-inject.c1545 u64 tsc; in guest_session__convert_time() local
1553 tsc = perf_time_to_tsc(guest_time, &gs->guest_tc); in guest_session__convert_time()
1555 tsc = guest_time; in guest_session__convert_time()
1561 tsc -= gs->time_offset; in guest_session__convert_time()
1562 tsc /= gs->time_scale; in guest_session__convert_time()
1565 *host_time = tsc_to_perf_time(tsc, &gs->host_tc); in guest_session__convert_time()
1567 *host_time = tsc; in guest_session__convert_time()
/tools/perf/tests/
A DBuild64 perf-test-y += perf-time-to-tsc.o
/tools/perf/util/
A Dintel-pt.c4225 u64 tsc, tm; in intel_pt_tsc_start() local
4227 tsc = perf_time_to_tsc(ns, &pt->tc); in intel_pt_tsc_start()
4230 tm = tsc_to_perf_time(tsc, &pt->tc); in intel_pt_tsc_start()
4233 tsc -= 1; in intel_pt_tsc_start()
4237 tm = tsc_to_perf_time(++tsc, &pt->tc); in intel_pt_tsc_start()
4239 return tsc; in intel_pt_tsc_start()
4245 u64 tsc, tm; in intel_pt_tsc_end() local
4247 tsc = perf_time_to_tsc(ns, &pt->tc); in intel_pt_tsc_end()
4250 tm = tsc_to_perf_time(tsc, &pt->tc); in intel_pt_tsc_end()
4253 tsc += 1; in intel_pt_tsc_end()
[all …]
A DBuild119 perf-util-y += tsc.o
/tools/perf/Documentation/
A Dperf-intel-pt.txt236 -e intel_pt/tsc,noretcomp=0/
240 -e intel_pt/tsc=1,noretcomp=0/
256 /sys/bus/event_source/devices/intel_pt/format/tsc:config:10
264 -e intel_pt/tsc=1,noretcomp=0/
268 -e intel_pt/tsc=0/
337 *tsc*::
343 The default config selects tsc (i.e. tsc=1).
1202 (i.e. config term tsc=0). It can be useful to avoid timestamp issues when
1354 TSC is not supported and tsc=0 must be specified. That means mtc is useless, so add mtc=0.
1360 …$ sudo perf kvm --guest --host --guestkallsyms $KALLSYMS record --kcore -e intel_pt/tsc=0,mtc=0,cy…
A Dperf-list.txt305 Example 3: to open the software msr/tsc/ event only on the CPUs
307 perf stat -e msr/tsc,cpu=cpu_core/ -a sleep 1
/tools/perf/tests/shell/
A Dtest_intel_pt.sh444 perf_record_no_decode -o "${perfdatafile}" -e intel_pt/mtc=0,tsc=0/u uname
/tools/arch/x86/kcpuid/
A Dcpuid.csv68 0x1, 0, edx, 4, tsc , Time Stamp Counter

Completed in 58 milliseconds