Home
last modified time | relevance | path

Searched refs:clock (Results 1 – 25 of 26) sorted by relevance

12

/tools/testing/selftests/vDSO/
Dvdso_test_correctness.c256 static void test_one_clock_gettime(int clock, const char *name) in test_one_clock_gettime() argument
261 printf("[RUN]\tTesting clock_gettime for clock %s (%d)...\n", name, clock); in test_one_clock_gettime()
263 if (sys_clock_gettime(clock, &start) < 0) { in test_one_clock_gettime()
265 vdso_ret = vdso_clock_gettime(clock, &vdso); in test_one_clock_gettime()
273 printf("[WARN]\t clock_gettime(%d) syscall returned error %d\n", clock, errno); in test_one_clock_gettime()
278 vdso_ret = vdso_clock_gettime(clock, &vdso); in test_one_clock_gettime()
279 end_ret = sys_clock_gettime(clock, &end); in test_one_clock_gettime()
309 for (int clock = 0; clock < sizeof(clocknames) / sizeof(clocknames[0]); in test_clock_gettime() local
310 clock++) { in test_clock_gettime()
311 test_one_clock_gettime(clock, clocknames[clock]); in test_clock_gettime()
[all …]
/tools/perf/tests/shell/
Dpipe_test.sh45 if ! perf record -e task-clock:u -o - ${file} | perf report -i - --task | grep test.file; then
50 if ! perf record -e task-clock:u -o - ${file} | perf inject -b | perf report -i - | grep noploop; t…
55 perf record -e task-clock:u -o - ${file} | perf inject -b -o ${data}
61 perf record -e task-clock:u -o ${data} ${file}
Ddaemon.sh155 run = -e cpu-clock -m 1 sleep 10
158 run = -e task-clock -m 1 sleep 10
205 run = -e cpu-clock -m 1 sleep 10
208 run = -e task-clock -m 1 sleep 10
230 run = -e cpu-clock -m 1 sleep 10
233 run = -e cpu-clock -m 1 sleep 10
324 run = -e cpu-clock -m 1 sleep 10
327 run = -e task-clock -m 1 sleep 10
376 run = -e cpu-clock --switch-output -m 1 sleep 10
415 run = -e cpu-clock -m 1 sleep 10
[all …]
/tools/testing/selftests/mqueue/
Dmq_perf_tests.c351 clock_gettime(clock, &start); \
354 clock_gettime(clock, &middle); \
357 clock_gettime(clock, &end); \
430 clockid_t clock; in perf_test_thread() local
442 if (pthread_getcpuclockid(cpu_threads[0], &clock) != 0) in perf_test_thread()
445 if (clock_getres(clock, &res)) in perf_test_thread()
485 clock_gettime(clock, &start); in perf_test_thread()
490 clock_gettime(clock, &end); in perf_test_thread()
514 clock_gettime(clock, &start); in perf_test_thread()
516 clock_gettime(clock, &end); in perf_test_thread()
/tools/testing/selftests/timens/
Dtimens.c38 #define ct(clock, off_id) { clock, #clock, off_id } argument
/tools/perf/util/
Ddata-convert-bt.c64 struct bt_ctf_clock *clock; member
821 bt_ctf_clock_set_time(cw->clock, sample->time); in process_sample_event()
888 bt_ctf_clock_set_time(cw->clock, sample->time); \
1391 struct bt_ctf_clock *clock = cw->clock; in ctf_writer__setup_clock() local
1398 if (!env->clock.enabled) { in ctf_writer__setup_clock()
1404 desc = clockid_name(env->clock.clockid); in ctf_writer__setup_clock()
1405 offset = env->clock.tod_ns - env->clock.clockid_ns; in ctf_writer__setup_clock()
1410 if (bt_ctf_clock_set_##__n(clock, __v)) \ in ctf_writer__setup_clock()
1493 bt_ctf_clock_put(cw->clock); in ctf_writer__cleanup()
1507 struct bt_ctf_clock *clock; in ctf_writer__init() local
[all …]
Ddata-convert-json.c256 if (header->env.clock.enabled) { in output_headers()
258 "%u", header->env.clock.clockid); in output_headers()
260 "%" PRIu64, header->env.clock.clockid_ns); in output_headers()
262 "%" PRIu64, header->env.clock.tod_ns); in output_headers()
Denv.h131 } clock; member
Dparse-events.l338 cpu-clock { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CPU_CLOCK); }
339 task-clock { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_TASK_CLOCK); }
Dheader.c898 return do_write(ff, &ff->ph->env.clock.clockid_res_ns, in write_clockid()
899 sizeof(ff->ph->env.clock.clockid_res_ns)); in write_clockid()
917 data32 = ff->ph->env.clock.clockid; in write_clock_data()
924 data64 = &ff->ph->env.clock.tod_ns; in write_clock_data()
931 data64 = &ff->ph->env.clock.clockid_ns; in write_clock_data()
1651 ff->ph->env.clock.clockid_res_ns * 1000); in print_clockid()
1663 if (!ff->ph->env.clock.enabled) { in print_clock_data()
1669 ref = ff->ph->env.clock.tod_ns; in print_clock_data()
1675 ref = ff->ph->env.clock.clockid_ns; in print_clock_data()
1680 clockid = ff->ph->env.clock.clockid; in print_clock_data()
[all …]
/tools/perf/Documentation/
Dperf-data.txt34 Convert time to wall clock time.
Djitdump-specification.txt31 …he file is timestamped. All timestamps must use the same clock source. The CLOCK_MONOTONIC clock s…
49 …AMP : set if the jitdump file is using an architecture-specific timestamp clock source. For instan…
Dperf.data-file-format.txt328 conversion into wall clock time on the reporting stage.
394 Contains clock id and its reference time together with wall clock
Dsecurity.txt197 36,387.41 msec cpu-clock # 7.999 CPUs utilized
Dperf-stat.txt160 This can be useful to measure just elapsed wall-clock time - or to assess the
503 83723.452481 task-clock:u (msec) # 1.004 CPUs utilized
Dperf-intel-pt.txt355 clock (CTC) which is related to TSC packets using a TMA packet.
383 Where CTC is the hardware crystal clock, the frequency of which
/tools/testing/selftests/kvm/x86_64/
Dhyperv_clock.c259 struct kvm_clock_data clock = {0}; in main() local
261 vm_ioctl(vm, KVM_SET_CLOCK, &clock); in main()
/tools/edid/
Dedid.S182 clock: .hword CLOCK/10 label
/tools/testing/selftests/net/
Dso_txtime.c63 static uint64_t gettime_ns(clockid_t clock) in gettime_ns() argument
67 if (clock_gettime(clock, &ts)) in gettime_ns()
/tools/perf/tests/
DBuild29 perf-y += sw-clock.o
/tools/arch/x86/kcpuid/
Dcpuid.csv302 … 0x15, 0, EAX, 31:0, tsc_denominator, The denominator of the TSC/”core crystal clock” ratio
303 0x15, 0, EBX, 31:0, tsc_numerator, The numerator of the TSC/”core crystal clock” ratio
304 0x15, 0, ECX, 31:0, nom_freq, Nominal frequency of the core crystal clock in Hz
/tools/perf/
Dbuiltin-record.c1550 session->header.env.clock.clockid_res_ns = rec->opts.clockid_res_ns; in record__init_clock()
1552 session->header.env.clock.clockid = rec->opts.clockid; in record__init_clock()
1567 session->header.env.clock.tod_ns = ref; in record__init_clock()
1572 session->header.env.clock.clockid_ns = ref; in record__init_clock()
Dbuiltin-script.c638 if (tod && !session->header.env.clock.enabled) { in perf_session__check_output_opt()
684 if (!env->clock.enabled) { in tod_scnprintf()
689 clockid_ns = env->clock.clockid_ns; in tod_scnprintf()
690 tod_ns = env->clock.tod_ns; in tod_scnprintf()
/tools/include/uapi/linux/
Dkvm.h1228 __u64 clock; member
/tools/testing/selftests/seccomp/
Dseccomp_bpf.c700 clock_t clock = times(&timebuf); in TEST_SIGNAL() local
709 EXPECT_LE(clock, syscall(__NR_times, &timebuf)); in TEST_SIGNAL()

12