Home
last modified time | relevance | path

Searched refs:diff (Results 1 – 25 of 91) sorted by relevance

1234

/tools/perf/scripts/python/
Dpowerpc-hcalls.py176 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/perf/bench/
Duprobe.c112 static int bench_uprobe_format__default_fprintf(const char *name, const char *unit, u64 diff, FILE … in bench_uprobe_format__default_fprintf() argument
115 s64 diff_to_baseline = diff - baseline, in bench_uprobe_format__default_fprintf()
116 diff_to_previous = diff - previous; in bench_uprobe_format__default_fprintf()
119 printed += fprintf(fp, " %14s: %'" PRIu64 " %ss", "Total time", diff, unit); in bench_uprobe_format__default_fprintf()
128 printed += fprintf(fp, "\n\n %'.3f %ss/op", (double)diff / (double)loops, unit); in bench_uprobe_format__default_fprintf()
136 baseline = diff; in bench_uprobe_format__default_fprintf()
141 previous = diff; in bench_uprobe_format__default_fprintf()
150 u64 diff; in bench_uprobe() local
166 diff = end.tv_sec * NSEC_PER_SEC + end.tv_nsec - (start.tv_sec * NSEC_PER_SEC + start.tv_nsec); in bench_uprobe()
167 diff /= NSEC_PER_USEC; in bench_uprobe()
[all …]
Dsyscall.c77 struct timeval start, stop, diff; in bench_syscall_common() local
117 timersub(&stop, &start, &diff); in bench_syscall_common()
140 result_usec = diff.tv_sec * 1000000; in bench_syscall_common()
141 result_usec += diff.tv_usec; in bench_syscall_common()
144 (unsigned long) diff.tv_sec, in bench_syscall_common()
145 (unsigned long) (diff.tv_usec/1000)); in bench_syscall_common()
156 (unsigned long) diff.tv_sec, in bench_syscall_common()
157 (unsigned long) (diff.tv_usec / 1000)); in bench_syscall_common()
Dbreakpoint.c118 struct timeval start, stop, diff; in bench_breakpoint_thread() local
148 timersub(&stop, &start, &diff); in bench_breakpoint_thread()
158 (long)diff.tv_sec, (long)(diff.tv_usec / USEC_PER_MSEC)); in bench_breakpoint_thread()
159 result_usec = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in bench_breakpoint_thread()
167 printf("%lu.%03lu\n", (long)diff.tv_sec, (long)(diff.tv_usec / USEC_PER_MSEC)); in bench_breakpoint_thread()
204 struct timeval start, stop, diff; in bench_breakpoint_enable() local
238 timersub(&stop, &start, &diff); in bench_breakpoint_enable()
250 (long)diff.tv_sec, (long)(diff.tv_usec / USEC_PER_MSEC)); in bench_breakpoint_enable()
251 result_usec = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in bench_breakpoint_enable()
255 printf("%lu.%03lu\n", (long)diff.tv_sec, (long)(diff.tv_usec / USEC_PER_MSEC)); in bench_breakpoint_enable()
Dsched-seccomp-notify.c97 struct timeval start, stop, diff; in bench_sched_seccomp_notify() local
143 timersub(&stop, &start, &diff); in bench_sched_seccomp_notify()
150 result_usec = diff.tv_sec * USEC_PER_SEC; in bench_sched_seccomp_notify()
151 result_usec += diff.tv_usec; in bench_sched_seccomp_notify()
154 (unsigned long) diff.tv_sec, in bench_sched_seccomp_notify()
155 (unsigned long) (diff.tv_usec / USEC_PER_MSEC)); in bench_sched_seccomp_notify()
166 (unsigned long) diff.tv_sec, in bench_sched_seccomp_notify()
167 (unsigned long) (diff.tv_usec / USEC_PER_MSEC)); in bench_sched_seccomp_notify()
Dfind-bit-bench.c58 struct timeval start, end, diff; in do_for_each_set_bit() local
86 timersub(&end, &start, &diff); in do_for_each_set_bit()
87 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in do_for_each_set_bit()
102 timersub(&end, &start, &diff); in do_for_each_set_bit()
103 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in do_for_each_set_bit()
Dkallsyms-parse.c37 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()
Dsynthesize.c66 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()
Dsched-pipe.c202 struct timeval start, stop, diff; in bench_sched_pipe() local
266 timersub(&stop, &start, &diff); in bench_sched_pipe()
279 result_usec = diff.tv_sec * USEC_PER_SEC; in bench_sched_pipe()
280 result_usec += diff.tv_usec; in bench_sched_pipe()
283 (unsigned long) diff.tv_sec, in bench_sched_pipe()
284 (unsigned long) (diff.tv_usec / USEC_PER_MSEC)); in bench_sched_pipe()
295 (unsigned long) diff.tv_sec, in bench_sched_pipe()
296 (unsigned long) (diff.tv_usec / USEC_PER_MSEC)); in bench_sched_pipe()
Dpmu-scan.c131 struct timeval start, end, diff; in run_pmu_scan() local
155 timersub(&end, &start, &diff); in run_pmu_scan()
156 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in run_pmu_scan()
Dsched-messaging.c295 struct timeval start, stop, diff; in bench_sched_messaging() local
337 timersub(&stop, &start, &diff); in bench_sched_messaging()
347 (unsigned long) diff.tv_sec, in bench_sched_messaging()
348 (unsigned long) (diff.tv_usec / USEC_PER_MSEC)); in bench_sched_messaging()
351 printf("%lu.%03lu\n", (unsigned long) diff.tv_sec, in bench_sched_messaging()
352 (unsigned long) (diff.tv_usec / USEC_PER_MSEC)); in bench_sched_messaging()
/tools/perf/util/bpf_skel/
Dbpf_prog_profiler.bpf.c55 struct bpf_perf_event_value *before, diff; in fexit_update_maps() local
63 diff.counter = after->counter - before->counter; in fexit_update_maps()
64 diff.enabled = after->enabled - before->enabled; in fexit_update_maps()
65 diff.running = after->running - before->running; in fexit_update_maps()
69 accum->counter += diff.counter; in fexit_update_maps()
70 accum->enabled += diff.enabled; in fexit_update_maps()
71 accum->running += diff.running; in fexit_update_maps()
/tools/testing/selftests/vDSO/
Dvdso_test_getrandom.c178 struct timespec start, end, diff; in bench_single() local
183 timespecsub(&end, &start, &diff); in bench_single()
184 printf(" vdso: %u times in %lu.%09lu seconds\n", TRIALS, diff.tv_sec, diff.tv_nsec); in bench_single()
189 timespecsub(&end, &start, &diff); in bench_single()
190 printf(" libc: %u times in %lu.%09lu seconds\n", TRIALS, diff.tv_sec, diff.tv_nsec); in bench_single()
195 timespecsub(&end, &start, &diff); in bench_single()
196 printf("syscall: %u times in %lu.%09lu seconds\n", TRIALS, diff.tv_sec, diff.tv_nsec); in bench_single()
201 struct timespec start, end, diff; in bench_multi() local
210 timespecsub(&end, &start, &diff); in bench_multi()
211 …printf(" vdso: %u x %u times in %lu.%09lu seconds\n", TRIALS, THREADS, diff.tv_sec, diff.tv_nsec… in bench_multi()
[all …]
/tools/testing/selftests/timers/
Drtcpie.c35 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()
Draw_skew.c72 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()
Dadjtick.c72 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/
Dprofiler.bpf.c79 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/
Dfw_fallback.sh187 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
/tools/perf/tests/shell/
Dstat+shadow_stat.sh41 diff=`echo $ipc $res $THRESHOLD | \
44 if [ $diff -eq 1 ]; then
83 diff=`echo $ipc $res $THRESHOLD | \
86 if [ $diff -eq 1 ]; then
/tools/testing/selftests/bpf/progs/
Dtest_xdp_meta.c15 __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/
Dbuiltin-diff.c284 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()
559 l = llabs(left->diff.cycles); in block_cycles_diff_cmp()
[all …]
/tools/perf/Documentation/
Dperf-diff.txt1 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/
Dfunc_profile_stat.tc13 ! diff trace_stat/function0 $TMPDIR/function0
21 diff trace_stat/function0 $TMPDIR/function0
/tools/power/cpupower/debug/kernel/
Dcpufreq-test_tsc.c56 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/include/nolibc/
Dstring.h105 int diff; in strcmp() local
107 while (!(diff = (unsigned char)*a++ - (c = (unsigned char)*b++)) && c) in strcmp()
109 return diff; in strcmp()
255 int diff = 0; in strncmp() local
258 !(diff = (unsigned char)*a++ - (c = (unsigned char)*b++)) && c) in strncmp()
261 return diff; in strncmp()

1234