Home
last modified time | relevance | path

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

1234

/tools/perf/scripts/python/
A 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/
A Duprobe.c115 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()
171 bench_uprobe_format__default_fprintf(name, unit, diff, stdout); in bench_uprobe()
[all …]
A 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()
A 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()
A 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()
A 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()
A 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()
A 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()
158 struct timeval start, end, diff; in do_run_multi_threaded() local
191 timersub(&end, &start, &diff); in do_run_multi_threaded()
192 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in do_run_multi_threaded()
A Dsched-pipe.c221 struct timeval start, stop, diff; in bench_sched_pipe() local
288 timersub(&stop, &start, &diff); in bench_sched_pipe()
301 result_usec = diff.tv_sec * USEC_PER_SEC; in bench_sched_pipe()
302 result_usec += diff.tv_usec; in bench_sched_pipe()
305 (unsigned long) diff.tv_sec, in bench_sched_pipe()
306 (unsigned long) (diff.tv_usec / USEC_PER_MSEC)); in bench_sched_pipe()
317 (unsigned long) diff.tv_sec, in bench_sched_pipe()
318 (unsigned long) (diff.tv_usec / USEC_PER_MSEC)); in bench_sched_pipe()
A 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()
A 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/
A 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/
A 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()
219 timespecsub(&end, &start, &diff); in bench_multi()
[all …]
/tools/testing/selftests/timers/
A 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()
A Draw_skew.c70 long long diff = 0, tmp; in get_monotonic_and_raw() local
81 if (diff == 0 || newdiff < diff) { in get_monotonic_and_raw()
82 diff = newdiff; in get_monotonic_and_raw()
A Dadjtick.c68 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()
/tools/bpf/bpftool/skeleton/
A 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/
A 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/
A 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/perf/
A Dbuiltin-diff.c286 pair->diff.computed = true; in compute_delta()
295 pair->diff.computed = true; in compute_ratio()
309 return pair->diff.wdiff; in compute_wdiff()
626 pair->diff.cycles = in compute_cycles_diff()
1390 double diff; in __hpp__color_compare() local
1409 diff = pair->diff.period_ratio_delta; in __hpp__color_compare()
1415 pfmt, diff); in __hpp__color_compare()
1420 diff = pair->diff.period_ratio; in __hpp__color_compare()
1426 pfmt, diff); in __hpp__color_compare()
1577 double diff; in hpp__entry_pair() local
[all …]
/tools/perf/Documentation/
A Dperf-diff.txt1 perf-diff(1)
74 diff.
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:
140 perf diff --time 0%-10%
144 perf diff --time 10%/1,10%/2
148 perf diff --time 0%-10%,30%-40%
209 - perf diff A B C
220 - perf diff B A C
[all …]
/tools/testing/selftests/ftrace/test.d/ftrace/
A Dfunc_profile_stat.tc13 ! diff trace_stat/function0 $TMPDIR/function0
21 diff trace_stat/function0 $TMPDIR/function0
/tools/power/cpupower/debug/kernel/
A 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/
A Dstring.h111 int diff; in strcmp() local
113 while (!(diff = (unsigned char)*a++ - (c = (unsigned char)*b++)) && c) in strcmp()
115 return diff; in strcmp()
262 int diff = 0; in strncmp() local
265 !(diff = (unsigned char)*a++ - (c = (unsigned char)*b++)) && c) in strncmp()
268 return diff; in strncmp()
/tools/testing/selftests/rcutorture/bin/
A Dmktestid.sh27 echo ' ---' Output of "'"git diff HEAD"'": >> ${resdir}/testid.txt
28 git diff HEAD >> ${resdir}/testid.txt

Completed in 44 milliseconds

1234