/tools/perf/bench/ |
D | syscall.c | 35 struct timeval start, stop, diff; in bench_syscall_basic() local 47 timersub(&stop, &start, &diff); in bench_syscall_basic() 53 result_usec = diff.tv_sec * 1000000; in bench_syscall_basic() 54 result_usec += diff.tv_usec; in bench_syscall_basic() 57 diff.tv_sec, in bench_syscall_basic() 58 (unsigned long) (diff.tv_usec/1000)); in bench_syscall_basic() 69 diff.tv_sec, in bench_syscall_basic() 70 (unsigned long) (diff.tv_usec / 1000)); in bench_syscall_basic()
|
D | sched-pipe.c | 81 struct timeval start, stop, diff; in bench_sched_pipe() local 148 timersub(&stop, &start, &diff); in bench_sched_pipe() 155 result_usec = diff.tv_sec * USEC_PER_SEC; in bench_sched_pipe() 156 result_usec += diff.tv_usec; in bench_sched_pipe() 159 diff.tv_sec, in bench_sched_pipe() 160 (unsigned long) (diff.tv_usec / USEC_PER_MSEC)); in bench_sched_pipe() 171 diff.tv_sec, in bench_sched_pipe() 172 (unsigned long) (diff.tv_usec / USEC_PER_MSEC)); in bench_sched_pipe()
|
D | find-bit-bench.c | 58 struct timeval start, end, diff; in do_for_each_set_bit() local 84 timersub(&end, &start, &diff); in do_for_each_set_bit() 85 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in do_for_each_set_bit() 98 timersub(&end, &start, &diff); in do_for_each_set_bit() 99 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in do_for_each_set_bit()
|
D | kallsyms-parse.c | 37 struct timeval start, end, diff; in do_kallsyms_parse() local 54 timersub(&end, &start, &diff); in do_kallsyms_parse() 55 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in do_kallsyms_parse()
|
D | synthesize.c | 66 struct timeval start, end, diff; in do_run_single_threaded() local 89 timersub(&end, &start, &diff); in do_run_single_threaded() 90 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in do_run_single_threaded() 153 struct timeval start, end, diff; in do_run_multi_threaded() local 182 timersub(&end, &start, &diff); in do_run_multi_threaded() 183 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in do_run_multi_threaded()
|
D | sched-messaging.c | 264 struct timeval start, stop, diff; in bench_sched_messaging() local 302 timersub(&stop, &start, &diff); in bench_sched_messaging() 312 diff.tv_sec, in bench_sched_messaging() 313 (unsigned long) (diff.tv_usec / USEC_PER_MSEC)); in bench_sched_messaging() 316 printf("%lu.%03lu\n", diff.tv_sec, in bench_sched_messaging() 317 (unsigned long) (diff.tv_usec / USEC_PER_MSEC)); in bench_sched_messaging()
|
D | numa.c | 1107 struct timeval start0, start, stop, diff; in worker_thread() local 1212 timersub(&stop, &start0, &diff); in worker_thread() 1213 if ((u32)diff.tv_sec >= g->p.nr_secs) { in worker_thread() 1255 timersub(&stop, &start, &diff); in worker_thread() 1256 runtime_ns_max = diff.tv_sec * NSEC_PER_SEC; in worker_thread() 1257 runtime_ns_max += diff.tv_usec * NSEC_PER_USEC; in worker_thread() 1268 timersub(&stop, &start0, &diff); in worker_thread() 1269 runtime_ns_max = diff.tv_sec * NSEC_PER_SEC; in worker_thread() 1270 runtime_ns_max += diff.tv_usec * NSEC_PER_USEC; in worker_thread() 1276 timersub(&stop, &start0, &diff); in worker_thread() [all …]
|
/tools/perf/scripts/python/ |
D | powerpc-hcalls.py | 176 diff = nsecs(sec, nsec) - d_enter[cpu][opcode] 179 output[opcode]['time'] += diff 181 if (output[opcode]['min'] > diff): 182 output[opcode]['min'] = diff 183 if (output[opcode]['max'] < diff): 184 output[opcode]['max'] = diff 187 'time': diff, 189 'min': diff, 190 'max': diff,
|
/tools/testing/selftests/timers/ |
D | rtcpie.c | 35 struct timeval start, end, diff; in main() local 111 timersub(&end, &start, &diff); in main() 112 if (diff.tv_sec > 0 || in main() 113 diff.tv_usec > ((1000000L / tmp) * 1.10)) { in main() 115 diff.tv_sec, diff.tv_usec, in main()
|
D | posix_timers.c | 64 long long diff; in check_diff() local 66 diff = end.tv_usec - start.tv_usec; in check_diff() 67 diff += (end.tv_sec - start.tv_sec) * USECS_PER_SEC; in check_diff() 69 if (abs(diff - DELAY * USECS_PER_SEC) > USECS_PER_SEC / 2) { in check_diff() 70 printf("Diff too high: %lld..", diff); in check_diff()
|
D | raw_skew.c | 72 long long diff = 0, tmp; in get_monotonic_and_raw() local 83 if (diff == 0 || newdiff < diff) { in get_monotonic_and_raw() 84 diff = newdiff; in get_monotonic_and_raw()
|
D | adjtick.c | 72 long long diff = 0, tmp; in get_monotonic_and_raw() local 87 if (diff == 0 || newdiff < diff) { in get_monotonic_and_raw() 88 diff = newdiff; in get_monotonic_and_raw()
|
/tools/bpf/bpftool/skeleton/ |
D | profiler.bpf.c | 79 struct bpf_perf_event_value___local *before, diff; in fexit_update_maps() local 86 diff.counter = after->counter - before->counter; in fexit_update_maps() 87 diff.enabled = after->enabled - before->enabled; in fexit_update_maps() 88 diff.running = after->running - before->running; in fexit_update_maps() 92 accum->counter += diff.counter; in fexit_update_maps() 93 accum->enabled += diff.enabled; in fexit_update_maps() 94 accum->running += diff.running; in fexit_update_maps()
|
/tools/testing/selftests/firmware/ |
D | fw_fallback.sh | 187 if diff -q "$FW" /dev/test_firmware >/dev/null ; then 204 if diff -q "$FW" /dev/test_firmware >/dev/null ; then 213 if ! diff -q "$FW" /dev/test_firmware >/dev/null ; then 221 if diff -q "$FW" /dev/test_firmware >/dev/null ; then 244 if ! diff -q "$RANDOM_FILE_PATH" /dev/test_firmware >/dev/null ; then 255 if ! diff -q "$RANDOM_FILE_PATH" /dev/test_firmware >/dev/null ; then 268 if diff -q "$RANDOM_FILE_PATH" /dev/test_firmware >/dev/null ; then
|
D | fw_filesystem.sh | 46 if diff -q "$FW" /dev/test_firmware >/dev/null ; then 63 if ! diff -q "$FW" /dev/test_firmware >/dev/null ; then 81 if ! diff -q "$FW" /dev/test_firmware >/dev/null ; then 223 if ! diff -q -Z "$fwfile" $DIR/read_firmware 2>/dev/null ; then 264 if diff -q -Z "$FW" $DIR/read_firmware 2>/dev/null ; then
|
/tools/testing/selftests/bpf/progs/ |
D | test_xdp_meta.c | 15 __u32 diff = 0; in ing_cls() local 25 diff |= ((__u32 *)data_meta)[0] ^ ((__u32 *)data)[0]; in ing_cls() 26 diff |= ((__u16 *)data_meta)[2] ^ ((__u16 *)data)[2]; in ing_cls() 28 return diff ? TC_ACT_SHOT : TC_ACT_OK; in ing_cls()
|
/tools/perf/ |
D | builtin-diff.c | 284 pair->diff.period_ratio_delta = new_percent - old_percent; in compute_delta() 285 pair->diff.computed = true; in compute_delta() 286 return pair->diff.period_ratio_delta; in compute_delta() 294 pair->diff.computed = true; in compute_ratio() 295 pair->diff.period_ratio = new_period / old_period; in compute_ratio() 296 return pair->diff.period_ratio; in compute_ratio() 304 pair->diff.computed = true; in compute_wdiff() 305 pair->diff.wdiff = new_period * compute_wdiff_w2 - in compute_wdiff() 308 return pair->diff.wdiff; in compute_wdiff() 571 l = llabs(left->diff.cycles); in block_cycles_diff_cmp() [all …]
|
/tools/perf/Documentation/ |
D | perf-diff.txt | 1 perf-diff(1) 6 perf-diff - Read perf.data files and display the differential profile 11 'perf diff' [baseline file] [data file1] [[data file2] ... ] 25 could vary. So perf diff is based on the comparison of the files and 74 diff. 95 diff.compute config option. See COMPARISON METHODS section for 117 The default value can be set using the diff.order config option. 134 Select the second 10% time slice to diff: 136 perf diff --time 10%/2 138 Select from 0% to 10% time slice to diff: [all …]
|
/tools/testing/selftests/ftrace/test.d/ftrace/ |
D | func_profile_stat.tc | 13 ! diff trace_stat/function0 $TMPDIR/function0 21 diff trace_stat/function0 $TMPDIR/function0
|
D | func-filter-glob.tc | 15 DIFF=`diff $TMPDIR/actual $TMPDIR/expected`
|
/tools/power/cpupower/debug/kernel/ |
D | cpufreq-test_tsc.c | 56 u32 now, then, diff; in cpufreq_test_tsc() local 90 diff = (now - then) & 0xFFFFFF; in cpufreq_test_tsc() 92 …printk(KERN_DEBUG "t1: %08u t2: %08u diff_pmtmr: %08u diff_tsc: %016llu\n", then, now, diff, diff_… in cpufreq_test_tsc()
|
/tools/perf/arch/powerpc/ |
D | Makefile | 27 (diff -B $(sysdef) $(syskrn) >/dev/null) \ 33 (diff -B $(sysdef) $(syskrn) >/dev/null) \
|
/tools/lib/bpf/ |
D | Makefile | 162 (diff -B ../../include/uapi/linux/bpf.h ../../../include/uapi/linux/bpf.h >/dev/null) || \ 165 …(diff -B ../../include/uapi/linux/bpf_common.h ../../../include/uapi/linux/bpf_common.h >/dev/null… 168 (diff -B ../../include/uapi/linux/netlink.h ../../../include/uapi/linux/netlink.h >/dev/null) || \ 171 (diff -B ../../include/uapi/linux/if_link.h ../../../include/uapi/linux/if_link.h >/dev/null) || \ 174 (diff -B ../../include/uapi/linux/if_xdp.h ../../../include/uapi/linux/if_xdp.h >/dev/null) || \ 222 diff -u $(OUTPUT)libbpf_global_syms.tmp \
|
/tools/power/cpupower/utils/idle_monitor/ |
D | amd_fam14h_idle.c | 210 unsigned long diff; in fam14h_get_count_percent() local 215 diff = current_count[id][cpu] - previous_count[id][cpu]; in fam14h_get_count_percent() 220 *percent = 100.0 * diff / timediff / 12.5; in fam14h_get_count_percent() 223 timediff, diff * 10 / 125, *percent); in fam14h_get_count_percent()
|
/tools/objtool/ |
D | sync-check.sh | 41 echo diff -u $file1 $file2
|