Home
last modified time | relevance | path

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

12

/tools/perf/tests/shell/
Drecord_bpf_filter.sh25 if ! perf record -e task-clock --filter 'period > 1' \
44 if ! perf record -e task-clock -c 10000 --filter 'ip < 0xffffffff00000000' \
70 if ! perf record -e task-clock --filter 'cpu > 0' \
78 if ! perf record --sample-cpu -e task-clock --filter 'cpu > 0' \
92 if ! perf record -e task-clock --filter 'period > 1000, ip > 0' \
100 if ! perf record -e task-clock --filter 'period > 1000 , cpu > 0 || ip > 0' \
108 if ! perf record -e task-clock --filter 'period > 0 || code_pgsz > 4096' \
122 if ! perf record -e task-clock --filter 'period > 100000' \
131 if ! perf script -i "${perfdata}" -F period,event | grep task-clock | \
153 if ! perf record -e task-clock --filter 'cgroup == /' \
[all …]
Dpipe_test.sh41 if ! perf record -e task-clock:u -o - ${prog} | perf report -i - --task | grep -q ${task}
48 if ! perf record -g -e task-clock:u -o - ${prog} | perf report -i - --task | grep -q ${task}
55 perf record -g -e task-clock:u -o - ${prog} > ${data}
72 …if ! perf record -e task-clock:u -o - ${prog} | perf inject ${inject_opt}| perf report -i - | grep…
79 …if ! perf record -g -e task-clock:u -o - ${prog} | perf inject ${inject_opt} | perf report -i - | …
86 perf record -e task-clock:u -o - ${prog} | perf inject ${inject_opt} -o ${data}
93 perf record -e task-clock:u -o ${data} ${prog}
100 perf record -e task-clock:u -o - ${prog} > ${data}
107 perf record -e task-clock:u -o - ${prog} > ${data}
Ddaemon.sh171 run = -e cpu-clock -m 1 sleep 10
174 run = -e task-clock -m 1 sleep 10
226 run = -e cpu-clock -m 1 sleep 10
229 run = -e task-clock -m 1 sleep 10
253 run = -e cpu-clock -m 1 sleep 10
256 run = -e cpu-clock -m 1 sleep 10
351 run = -e cpu-clock -m 1 sleep 10
354 run = -e task-clock -m 1 sleep 10
409 run = -e cpu-clock --switch-output -m 1 sleep 10
464 run = -e cpu-clock -m 1 sleep 10
[all …]
Dstat_bpf_counters_cgrp.sh51 …put=$(perf stat -a --bpf-counters --for-each-cgroup ${test_cgroups} -e cpu-clock -x, sleep 1 2>&1)
63 …(perf stat -C 0,1 --bpf-counters --for-each-cgroup ${test_cgroups} -e cpu-clock -x, taskset -c 1 s…
Dstat+std_output.sh14 event_name=(cpu-clock task-clock context-switches cpu-migrations page-faults stalled-cycles-fronten…
Drecord.sh131 if ! perf record -aB --synth=no -e cpu-clock,cs --threads=cpu \
161 if ! perf record -e cpu-clock,cs --threads=package \
Dstat+json_output.sh82 perf stat -j -e cpu-clock -o "${stat_output}" true
/tools/testing/selftests/vDSO/
Dvdso_test_correctness.c264 static void test_one_clock_gettime(int clock, const char *name) in test_one_clock_gettime() argument
269 printf("[RUN]\tTesting clock_gettime for clock %s (%d)...\n", name, clock); in test_one_clock_gettime()
271 if (sys_clock_gettime(clock, &start) < 0) { in test_one_clock_gettime()
273 vdso_ret = VDSO_CALL(vdso_clock_gettime, 2, clock, &vdso); in test_one_clock_gettime()
281 printf("[WARN]\t clock_gettime(%d) syscall returned error %d\n", clock, errno); in test_one_clock_gettime()
286 vdso_ret = VDSO_CALL(vdso_clock_gettime, 2, clock, &vdso); in test_one_clock_gettime()
287 end_ret = sys_clock_gettime(clock, &end); in test_one_clock_gettime()
317 for (int clock = 0; clock < ARRAY_SIZE(clocknames); clock++) in test_clock_gettime() local
318 test_one_clock_gettime(clock, clocknames[clock]); in test_clock_gettime()
326 static void test_one_clock_gettime64(int clock, const char *name) in test_one_clock_gettime64() argument
[all …]
/tools/testing/selftests/damon/
Daccess_memory.c35 start_clock = clock(); in main()
36 while ((clock() - start_clock) * 1000 / CLOCKS_PER_SEC < in main()
/tools/testing/selftests/mqueue/
Dmq_perf_tests.c352 clock_gettime(clock, &start); \
355 clock_gettime(clock, &middle); \
358 clock_gettime(clock, &end); \
432 clockid_t clock; in perf_test_thread() local
444 if (pthread_getcpuclockid(cpu_threads[0], &clock) != 0) in perf_test_thread()
447 if (clock_getres(clock, &res)) in perf_test_thread()
487 clock_gettime(clock, &start); in perf_test_thread()
492 clock_gettime(clock, &end); in perf_test_thread()
516 clock_gettime(clock, &start); in perf_test_thread()
518 clock_gettime(clock, &end); in perf_test_thread()
/tools/testing/selftests/kvm/x86_64/
Dkvm_clock_test.c58 exp_lo = start->clock; in handle_sync()
59 exp_hi = end->clock; in handle_sync()
83 data.clock = test_case->kvmclock_base; in setup_clock()
Dhyperv_clock.c255 struct kvm_clock_data clock = {0}; in main() local
257 vm_ioctl(vm, KVM_SET_CLOCK, &clock); in main()
Dxen_shinfo_test.c1028 kcdata.clock / NSEC_PER_SEC, kcdata.clock % NSEC_PER_SEC); in main()
1033 delta = (wc->sec * NSEC_PER_SEC + wc->nsec) - (kcdata.realtime - kcdata.clock); in main()
1043 wc->sec, wc->nsec, (kcdata.realtime - kcdata.clock) / NSEC_PER_SEC, in main()
1044 (kcdata.realtime - kcdata.clock) % NSEC_PER_SEC); in main()
/tools/testing/selftests/timens/
Dtimens.c36 #define ct(clock, off_id) { clock, #clock, off_id } argument
/tools/perf/util/
Ddata-convert-bt.c68 struct bt_ctf_clock *clock; member
827 bt_ctf_clock_set_time(cw->clock, sample->time); in process_sample_event()
894 bt_ctf_clock_set_time(cw->clock, sample->time); \
1397 struct bt_ctf_clock *clock = cw->clock; in ctf_writer__setup_clock() local
1404 if (!env->clock.enabled) { in ctf_writer__setup_clock()
1410 desc = clockid_name(env->clock.clockid); in ctf_writer__setup_clock()
1411 offset = env->clock.tod_ns - env->clock.clockid_ns; in ctf_writer__setup_clock()
1416 if (bt_ctf_clock_set_##__n(clock, __v)) \ in ctf_writer__setup_clock()
1499 bt_ctf_clock_put(cw->clock); in ctf_writer__cleanup()
1513 struct bt_ctf_clock *clock; in ctf_writer__init() local
[all …]
Ddata-convert-json.c294 if (header->env.clock.enabled) { in output_headers()
296 "%u", header->env.clock.clockid); in output_headers()
298 "%" PRIu64, header->env.clock.clockid_ns); in output_headers()
300 "%" PRIu64, header->env.clock.tod_ns); in output_headers()
Denv.h142 } clock; member
Dparse-events.l397 cpu-clock { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CPU_CLOCK); }
398 task-clock { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_TASK_CLOCK); }
Dheader.c903 return do_write(ff, &ff->ph->env.clock.clockid_res_ns, in write_clockid()
904 sizeof(ff->ph->env.clock.clockid_res_ns)); in write_clockid()
922 data32 = ff->ph->env.clock.clockid; in write_clock_data()
929 data64 = &ff->ph->env.clock.tod_ns; in write_clock_data()
936 data64 = &ff->ph->env.clock.clockid_ns; in write_clock_data()
1765 ff->ph->env.clock.clockid_res_ns * 1000); in print_clockid()
1777 if (!ff->ph->env.clock.enabled) { in print_clock_data()
1783 ref = ff->ph->env.clock.tod_ns; in print_clock_data()
1789 ref = ff->ph->env.clock.clockid_ns; in print_clock_data()
1794 clockid = ff->ph->env.clock.clockid; in print_clock_data()
[all …]
/tools/testing/selftests/net/
Dbind_bhash.c122 begin = clock(); in main()
129 end = clock(); in main()
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/shell/lib/
Dstat_output.sh56 perf stat -e cpu-clock $2 true
/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…
/tools/perf/tests/
DBuild30 perf-test-y += sw-clock.o

12