| /tools/perf/tests/shell/ |
| A 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 …]
|
| A D | pipe_test.sh | 42 if ! perf record -e task-clock:u -o - ${prog} | perf report -i - --task | grep -q ${task} 49 if ! perf record -g -e task-clock:u -o - ${prog} | perf report -i - --task | grep -q ${task} 56 perf record -g -e task-clock:u -o - ${prog} > ${data} 73 …if ! perf record -e task-clock:u -o - ${prog} | perf inject ${inject_opt}| perf report -i - | grep… 80 …if ! perf record -g -e task-clock:u -o - ${prog} | perf inject ${inject_opt} | perf report -i - | … 87 perf record -e task-clock:u -o - ${prog} | perf inject ${inject_opt} -o ${data} 94 perf record -e task-clock:u -o ${data} ${prog} 101 perf record -e task-clock:u -o - ${prog} > ${data} 108 perf record -e task-clock:u -o - ${prog} > ${data}
|
| A 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 464 run = -e cpu-clock -m 1 sleep 10 467 run = -e task-clock -m 1 sleep 10 [all …]
|
| A D | stat+std_output.sh | 14 event_name=(cpu-clock task-clock context-switches cpu-migrations page-faults stalled-cycles-fronten…
|
| A D | test_bpf_metadata.sh | 34 if ! perf record -e task-clock --filter 'ip > 0' \
|
| A 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)
|
| A D | record.sh | 136 if ! perf record -aB --synth=no -e cpu-clock,cs --threads=cpu \ 166 if ! perf record -e cpu-clock,cs --threads=package \
|
| A D | stat+json_output.sh | 82 perf stat -j -e cpu-clock -o "${stat_output}" true
|
| /tools/testing/selftests/vDSO/ |
| A D | vdso_test_correctness.c | 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() 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() 333 if (sys_clock_gettime64(clock, &start) < 0) { in test_one_clock_gettime64() 348 vdso_ret = VDSO_CALL(vdso_clock_gettime64, 2, clock, &vdso); in test_one_clock_gettime64() 349 end_ret = sys_clock_gettime64(clock, &end); in test_one_clock_gettime64() 379 for (int clock = 0; clock < ARRAY_SIZE(clocknames); clock++) in test_clock_gettime64() local [all …]
|
| /tools/testing/selftests/ftrace/test.d/ftrace/ |
| A D | fgraph-multi-filter.tc | 97 clock_cnt=`function_count clock` 98 locks_clock_cnt=`function_count locks clock` 99 clock_locks_cnt=`function_count clock locks` 167 check_cnt $locks_clock_cnt locks clock 170 check_cnt $clock_locks_cnt clock locks
|
| /tools/testing/selftests/damon/ |
| A D | access_memory.c | 35 start_clock = clock(); in main() 36 while ((clock() - start_clock) * 1000 / CLOCKS_PER_SEC < in main()
|
| /tools/perf/Documentation/ |
| A D | cpu-and-latency-overheads.txt | 3 There are two notions of time: wall-clock time and CPU time. 7 Each second of wall-clock time we have number-of-cores seconds of CPU time. 9 'latency' columns for CPU and wall-clock time correspondingly). 51 flags. It shows fraction of (wall-clock) time the workload utilizes different 55 CPU and wall-clock overheads:
|
| A D | perf-data.txt | 34 Convert time to wall clock time.
|
| /tools/testing/selftests/mqueue/ |
| A 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/timens/ |
| A D | timens.c | 36 #define ct(clock, off_id) { clock, #clock, off_id } argument
|
| /tools/testing/selftests/kvm/x86/ |
| A 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()
|
| A D | hyperv_clock.c | 255 struct kvm_clock_data clock = {0}; in main() local 257 vm_ioctl(vm, KVM_SET_CLOCK, &clock); in main()
|
| A D | xen_shinfo_test.c | 1012 kcdata.clock / NSEC_PER_SEC, kcdata.clock % NSEC_PER_SEC); in main() 1017 delta = (wc->sec * NSEC_PER_SEC + wc->nsec) - (kcdata.realtime - kcdata.clock); in main() 1027 wc->sec, wc->nsec, (kcdata.realtime - kcdata.clock) / NSEC_PER_SEC, in main() 1028 (kcdata.realtime - kcdata.clock) % NSEC_PER_SEC); in main()
|
| /tools/include/asm/ |
| A D | timex.h | 11 return clock(); in get_cycles()
|
| /tools/perf/util/ |
| A D | data-convert-bt.c | 68 struct bt_ctf_clock *clock; member 1399 struct bt_ctf_clock *clock = cw->clock; in ctf_writer__setup_clock() local 1406 if (!env->clock.enabled) { in ctf_writer__setup_clock() 1412 desc = clockid_name(env->clock.clockid); in ctf_writer__setup_clock() 1413 offset = env->clock.tod_ns - env->clock.clockid_ns; in ctf_writer__setup_clock() 1418 if (bt_ctf_clock_set_##__n(clock, __v)) \ in ctf_writer__setup_clock() 1501 bt_ctf_clock_put(cw->clock); in ctf_writer__cleanup() 1515 struct bt_ctf_clock *clock; in ctf_writer__init() local 1527 clock = bt_ctf_clock_create("perf_clock"); in ctf_writer__init() 1528 if (!clock) { in ctf_writer__init() [all …]
|
| A D | data-convert-json.c | 295 if (env->clock.enabled) { in output_headers() 297 "%u", env->clock.clockid); in output_headers() 299 "%" PRIu64, env->clock.clockid_ns); in output_headers() 301 "%" PRIu64, env->clock.tod_ns); in output_headers()
|
| A D | env.h | 140 } clock; member
|
| /tools/testing/selftests/net/ |
| A D | bind_bhash.c | 122 begin = clock(); in main() 129 end = clock(); in main()
|
| A 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/ |
| A D | stat_output.sh | 56 perf stat -e cpu-clock $2 true
|