| /tools/perf/tests/shell/ |
| D | record_bpf_filter.sh | 25 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 …]
|
| D | pipe_test.sh | 41 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}
|
| D | daemon.sh | 171 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 …]
|
| D | stat_bpf_counters_cgrp.sh | 51 …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…
|
| D | stat+std_output.sh | 14 event_name=(cpu-clock task-clock context-switches cpu-migrations page-faults stalled-cycles-fronten…
|
| D | record.sh | 131 if ! perf record -aB --synth=no -e cpu-clock,cs --threads=cpu \ 161 if ! perf record -e cpu-clock,cs --threads=package \
|
| D | stat+json_output.sh | 82 perf stat -j -e cpu-clock -o "${stat_output}" true
|
| /tools/testing/selftests/vDSO/ |
| D | vdso_test_correctness.c | 264 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/ |
| D | access_memory.c | 35 start_clock = clock(); in main() 36 while ((clock() - start_clock) * 1000 / CLOCKS_PER_SEC < in main()
|
| /tools/testing/selftests/mqueue/ |
| D | mq_perf_tests.c | 352 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/ |
| D | kvm_clock_test.c | 58 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()
|
| D | hyperv_clock.c | 255 struct kvm_clock_data clock = {0}; in main() local 257 vm_ioctl(vm, KVM_SET_CLOCK, &clock); in main()
|
| D | xen_shinfo_test.c | 1028 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/ |
| D | timens.c | 36 #define ct(clock, off_id) { clock, #clock, off_id } argument
|
| /tools/perf/util/ |
| D | data-convert-bt.c | 68 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 …]
|
| D | data-convert-json.c | 294 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()
|
| D | env.h | 142 } clock; member
|
| D | parse-events.l | 397 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); }
|
| D | header.c | 903 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/ |
| D | bind_bhash.c | 122 begin = clock(); in main() 129 end = clock(); in main()
|
| 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/shell/lib/ |
| D | stat_output.sh | 56 perf stat -e cpu-clock $2 true
|
| /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…
|
| /tools/perf/tests/ |
| D | Build | 30 perf-test-y += sw-clock.o
|