/tools/testing/selftests/vDSO/ |
D | vdso_test_correctness.c | 256 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/ |
D | pipe_test.sh | 45 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}
|
D | daemon.sh | 155 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/ |
D | mq_perf_tests.c | 351 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/ |
D | timens.c | 38 #define ct(clock, off_id) { clock, #clock, off_id } argument
|
/tools/perf/util/ |
D | data-convert-bt.c | 64 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 …]
|
D | data-convert-json.c | 256 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()
|
D | env.h | 131 } clock; member
|
D | parse-events.l | 338 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); }
|
D | header.c | 898 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/ |
D | perf-data.txt | 34 Convert time to wall clock time.
|
D | jitdump-specification.txt | 31 …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…
|
D | perf.data-file-format.txt | 328 conversion into wall clock time on the reporting stage. 394 Contains clock id and its reference time together with wall clock
|
D | security.txt | 197 36,387.41 msec cpu-clock # 7.999 CPUs utilized
|
D | perf-stat.txt | 160 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
|
D | perf-intel-pt.txt | 355 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/ |
D | hyperv_clock.c | 259 struct kvm_clock_data clock = {0}; in main() local 261 vm_ioctl(vm, KVM_SET_CLOCK, &clock); in main()
|
/tools/edid/ |
D | edid.S | 182 clock: .hword CLOCK/10 label
|
/tools/testing/selftests/net/ |
D | so_txtime.c | 63 static uint64_t gettime_ns(clockid_t clock) in gettime_ns() argument 67 if (clock_gettime(clock, &ts)) in gettime_ns()
|
/tools/perf/tests/ |
D | Build | 29 perf-y += sw-clock.o
|
/tools/arch/x86/kcpuid/ |
D | cpuid.csv | 302 … 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/ |
D | builtin-record.c | 1550 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()
|
D | builtin-script.c | 638 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/ |
D | kvm.h | 1228 __u64 clock; member
|
/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 700 clock_t clock = times(&timebuf); in TEST_SIGNAL() local 709 EXPECT_LE(clock, syscall(__NR_times, &timebuf)); in TEST_SIGNAL()
|