Home
last modified time | relevance | path

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

/tools/testing/selftests/x86/
Dtest_vdso.c217 static void test_one_clock_gettime(int clock, const char *name) in test_one_clock_gettime() argument
222 printf("[RUN]\tTesting clock_gettime for clock %s (%d)...\n", name, clock); in test_one_clock_gettime()
224 if (sys_clock_gettime(clock, &start) < 0) { in test_one_clock_gettime()
226 vdso_ret = vdso_clock_gettime(clock, &vdso); in test_one_clock_gettime()
234 printf("[WARN]\t clock_gettime(%d) syscall returned error %d\n", clock, errno); in test_one_clock_gettime()
239 vdso_ret = vdso_clock_gettime(clock, &vdso); in test_one_clock_gettime()
240 end_ret = sys_clock_gettime(clock, &end); in test_one_clock_gettime()
267 for (int clock = 0; clock < sizeof(clocknames) / sizeof(clocknames[0]); in test_clock_gettime() local
268 clock++) { in test_clock_gettime()
269 test_one_clock_gettime(clock, clocknames[clock]); in test_clock_gettime()
/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 …]
Denv.h114 } 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.c895 return do_write(ff, &ff->ph->env.clock.clockid_res_ns, in write_clockid()
896 sizeof(ff->ph->env.clock.clockid_res_ns)); in write_clockid()
914 data32 = ff->ph->env.clock.clockid; in write_clock_data()
921 data64 = &ff->ph->env.clock.tod_ns; in write_clock_data()
928 data64 = &ff->ph->env.clock.clockid_ns; in write_clock_data()
1584 ff->ph->env.clock.clockid_res_ns * 1000); in print_clockid()
1596 if (!ff->ph->env.clock.enabled) { in print_clock_data()
1602 ref = ff->ph->env.clock.tod_ns; in print_clock_data()
1608 ref = ff->ph->env.clock.clockid_ns; in print_clock_data()
1613 clockid = ff->ph->env.clock.clockid; in print_clock_data()
[all …]
/tools/perf/Documentation/
Dperf-data.txt31 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.txt443 83723.452481 task-clock:u (msec) # 1.004 CPUs utilized
Dperf-intel-pt.txt350 clock (CTC) which is related to TSC packets using a TMA packet.
378 Where CTC is the hardware crystal clock, the frequency of which
Dperf-record.txt436 Sets the clock id to use for the various time fields in the perf_event_type
/tools/edid/
Dedid.S182 clock: .hword CLOCK/10 label
/tools/perf/tests/
DBuild29 perf-y += sw-clock.o
/tools/perf/
Dbuiltin-record.c1570 session->header.env.clock.clockid_res_ns = rec->opts.clockid_res_ns; in record__init_clock()
1572 session->header.env.clock.clockid = rec->opts.clockid; in record__init_clock()
1587 session->header.env.clock.tod_ns = ref; in record__init_clock()
1592 session->header.env.clock.clockid_ns = ref; in record__init_clock()
Dbuiltin-script.c599 if (tod && !session->header.env.clock.enabled) { in perf_session__check_output_opt()
645 if (!env->clock.enabled) { in tod_scnprintf()
650 clockid_ns = env->clock.clockid_ns; in tod_scnprintf()
651 tod_ns = env->clock.tod_ns; in tod_scnprintf()
/tools/include/uapi/linux/
Dkvm.h1164 __u64 clock; member
/tools/testing/selftests/seccomp/
Dseccomp_bpf.c696 clock_t clock = times(&timebuf); in TEST_SIGNAL() local
705 EXPECT_LE(clock, syscall(__NR_times, &timebuf)); in TEST_SIGNAL()