Home
last modified time | relevance | path

Searched refs:avg (Results 1 – 19 of 19) sorted by relevance

/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DUtil.py20 def avg(total, n): function
40 min, max, avg, count = dict[key]
45 avg = (avg + value) / 2
46 dict[key] = (min, max, avg, count + 1)
/tools/perf/util/
Dstat-shadow.c450 struct evsel *evsel, double avg, in print_stalled_cycles_frontend() argument
461 ratio = avg / total * 100.0; in print_stalled_cycles_frontend()
474 struct evsel *evsel, double avg, in print_stalled_cycles_backend() argument
485 ratio = avg / total * 100.0; in print_stalled_cycles_backend()
495 double avg, in print_branch_misses() argument
506 ratio = avg / total * 100.0; in print_branch_misses()
516 double avg, in print_l1_dcache_misses() argument
528 ratio = avg / total * 100.0; in print_l1_dcache_misses()
538 double avg, in print_l1_icache_misses() argument
550 ratio = avg / total * 100.0; in print_l1_icache_misses()
[all …]
Dstat-display.c39 double total, double avg) in print_noise_pct() argument
41 double pct = rel_stddev_stats(total, avg); in print_noise_pct()
50 struct evsel *evsel, double avg) in print_noise() argument
58 print_noise_pct(config, stddev_stats(&ps->res_stats[0]), avg); in print_noise()
343 int id, int nr, struct evsel *evsel, double avg) in abs_printout() argument
360 fprintf(output, fmt, avg, config->csv_sep); in abs_printout()
784 double avg, avg_enabled, avg_running; member
794 cd->avg += avg_stats(&ps->res_stats[0]); in counter_aggr_cb()
809 struct caggr_data cd = { .avg = 0.0 }; in print_counter_aggr()
817 uval = cd.avg * counter->scale; in print_counter_aggr()
[all …]
Dstat.h156 double rel_stddev_stats(double stddev, double avg);
209 double avg, int cpu,
Dblock-info.c258 u64 avg; in block_cycles_pct_entry() local
261 avg = bi->cycles_aggr / bi->num_aggr; in block_cycles_pct_entry()
262 ratio = (double)avg / (double)block_fmt->block_cycles; in block_cycles_pct_entry()
Dstat.c68 double rel_stddev_stats(double stddev, double avg) in rel_stddev_stats() argument
72 if (avg) in rel_stddev_stats()
73 pct = 100.0 * stddev/avg; in rel_stddev_stats()
/tools/testing/selftests/kvm/
Ddirty_log_perf_test.c43 struct timespec avg; in vcpu_worker() local
83 avg = timespec_div(total, vcpu_last_completed_iteration[vcpu_id]); in vcpu_worker()
86 total.tv_sec, total.tv_nsec, avg.tv_sec, avg.tv_nsec); in vcpu_worker()
108 struct timespec avg; in run_test() local
218 avg = timespec_div(get_dirty_log_total, iterations); in run_test()
221 get_dirty_log_total.tv_nsec, avg.tv_sec, avg.tv_nsec); in run_test()
224 avg = timespec_div(clear_dirty_log_total, iterations); in run_test()
227 clear_dirty_log_total.tv_nsec, avg.tv_sec, avg.tv_nsec); in run_test()
/tools/perf/bench/
Depoll-ctl.c281 unsigned long avg[EPOLL_NR_OPS]; in print_summary() local
285 avg[i] = avg_stats(&all_stats[i]); in print_summary()
290 avg[OP_EPOLL_ADD], rel_stddev_stats(stddev[OP_EPOLL_ADD], in print_summary()
291 avg[OP_EPOLL_ADD])); in print_summary()
293 avg[OP_EPOLL_MOD], rel_stddev_stats(stddev[OP_EPOLL_MOD], in print_summary()
294 avg[OP_EPOLL_MOD])); in print_summary()
296 avg[OP_EPOLL_DEL], rel_stddev_stats(stddev[OP_EPOLL_DEL], in print_summary()
297 avg[OP_EPOLL_DEL])); in print_summary()
Dfutex-hash.c112 unsigned long avg = avg_stats(&throughput_stats); in print_summary() local
116 !silent ? "\n" : "", avg, rel_stddev_stats(stddev, avg), in print_summary()
Dfutex-lock-pi.c61 unsigned long avg = avg_stats(&throughput_stats); in print_summary() local
65 !silent ? "\n" : "", avg, rel_stddev_stats(stddev, avg), in print_summary()
Depoll-wait.c284 unsigned long avg = avg_stats(&throughput_stats); in print_summary() local
288 avg, rel_stddev_stats(stddev, avg), in print_summary()
/tools/perf/scripts/python/
Dfutex-contention.py55 min, max, avg, count = lock_waits[tid, lock]
57 (process_names[tid], tid, lock, count, avg, max, min))
/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/
DUtil.pm23 sub avg subroutine
/tools/perf/scripts/perl/
Dwakeup-latency.pl72 avg($total_wakeup_latency, $total_wakeups));
/tools/perf/Documentation/
Dperf-script-python.txt337 wakeup-latency system-wide min/max/avg wakeup latency
400 wakeup-latency system-wide min/max/avg wakeup latency
611 avg(total, n) - returns average given a sum and a total number of values
Dperf-script-perl.txt212 avg($total, $n) - returns average given a sum and a total number of values
/tools/perf/
Dbuiltin-trace.c4332 double avg = avg_stats(&stats->stats); local
4336 pct = avg ? 100.0 * stddev_stats(&stats->stats) / avg : 0.0;
4337 avg /= NSEC_PER_MSEC;
4342 n, stats->nr_failures, syscall_stats_entry->msecs, min, avg);
Dbuiltin-sched.c1326 u64 avg; in output_lat_thread() local
1348 avg = work_list->total_lat / work_list->nb_atoms; in output_lat_thread()
1354 work_list->nb_atoms, (double)avg / NSEC_PER_MSEC, in output_lat_thread()
/tools/power/pm-graph/
Dsleepgraph.py1185 avg = self.multitest['total'] / idx
1190 left = timedelta(seconds=((self.multitest['count'] - idx) * int(avg)))
1192 (id, avg, str(left)))