Home
last modified time | relevance | path

Searched refs:total (Results 1 – 24 of 24) sorted by relevance

/tools/perf/
Dbuiltin-stat.c682 static void print_noise_pct(double total, double avg) in print_noise_pct() argument
684 double pct = rel_stddev_stats(total, avg); in print_noise_pct()
803 double total, ratio = 0.0; in print_stalled_cycles_frontend() local
806 total = avg_stats(&runtime_cycles_stats[cpu]); in print_stalled_cycles_frontend()
808 if (total) in print_stalled_cycles_frontend()
809 ratio = avg / total * 100.0; in print_stalled_cycles_frontend()
822 double total, ratio = 0.0; in print_stalled_cycles_backend() local
825 total = avg_stats(&runtime_cycles_stats[cpu]); in print_stalled_cycles_backend()
827 if (total) in print_stalled_cycles_backend()
828 ratio = avg / total * 100.0; in print_stalled_cycles_backend()
[all …]
Dbuiltin-lock.c687 static void print_bad_events(int bad, int total) in print_bad_events() argument
695 pr_info("bad: %d, total: %d\n", bad, total); in print_bad_events()
696 pr_info("bad rate: %.2f %%\n", (double)bad / (double)total * 100); in print_bad_events()
707 int bad, total; in print_result() local
720 bad = total = 0; in print_result()
722 total++; in print_result()
753 print_bad_events(bad, total); in print_result()
Dbuiltin-kvm.c138 event->total.time = 0; in clear_events_cache_stats()
139 init_stats(&event->total.stats); in clear_events_cache_stats()
191 init_stats(&event->total.stats); in kvm_alloc_init_event()
240 struct kvm_event_stats *kvm_stats = &event->total; in kvm_event_rel_stddev()
253 kvm_update_event_stats(&event->total, time_diff); in update_kvm_event()
429 return event->total.field; \
Dbuiltin-diff.c222 u64 total = hists__total_period(he->hists); in period_percent() local
224 return (period * 100.0) / total; in period_percent()
761 u64 total = hists__total_period(he->hists); in baseline_percent() local
763 return 100.0 * he->stat.period / total; in baseline_percent()
/tools/perf/ui/
Dprogress.c25 void ui_progress__init(struct ui_progress *p, u64 total, const char *title) in ui_progress__init() argument
28 p->next = p->step = total / 16; in ui_progress__init()
29 p->total = total; in ui_progress__init()
Dprogress.h10 u64 curr, next, step, total; member
13 void ui_progress__init(struct ui_progress *p, u64 total, const char *title);
Dhist.c30 u64 total = hists__total_period(hists); in __hpp__fmt() local
32 if (total) in __hpp__fmt()
33 percent = 100.0 * get_field(he) / total; in __hpp__fmt()
48 u64 total = hists__total_period(pair->hists); in __hpp__fmt() local
50 if (!total) in __hpp__fmt()
72 100.0 * period / total); in __hpp__fmt()
/tools/perf/ui/gtk/
Dprogress.c12 double fraction = p->total ? 1.0 * p->curr / p->total : 0.0; in gtk_ui_progress__update()
35 snprintf(buf, sizeof(buf), "%"PRIu64" / %"PRIu64, p->curr, p->total); in gtk_ui_progress__update()
Dhists.c102 GtkTreeIter *parent, int col, u64 total) in perf_gtk__add_callchain() argument
118 percent = 100.0 * hits / total; in perf_gtk__add_callchain()
147 child_total = total; in perf_gtk__add_callchain()
235 u64 total = hists__total_period(h->hists); in perf_gtk__show_hists() local
263 total = symbol_conf.cumulate_callchain ? in perf_gtk__show_hists()
267 sym_col, total); in perf_gtk__show_hists()
/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/
DUtil.pm25 my ($total, $n) = @_;
27 return $total / $n;
/tools/perf/ui/tui/
Dprogress.c18 if (p->total == 0) in tui_progress__update()
30 bar = ((SLtt_Screen_Cols - 2) * p->curr) / p->total; in tui_progress__update()
/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DUtil.py19 def avg(total, n): argument
20 return total / n
/tools/usb/usbip/src/
Dusbip_network.c111 ssize_t total = 0; in usbip_net_xmit() local
127 total += nbytes; in usbip_net_xmit()
131 return total; in usbip_net_xmit()
/tools/vm/
Dslabinfo.c423 unsigned long total; in slab_stats() local
474 total = s->deactivate_full + s->deactivate_empty + in slab_stats()
477 if (total) { in slab_stats()
481 s->deactivate_full, (s->deactivate_full * 100) / total); in slab_stats()
483 s->deactivate_empty, (s->deactivate_empty * 100) / total); in slab_stats()
485 s->deactivate_to_head, (s->deactivate_to_head * 100) / total); in slab_stats()
487 s->deactivate_to_tail, (s->deactivate_to_tail * 100) / total); in slab_stats()
489 s->deactivate_bypass, (s->deactivate_bypass * 100) / total); in slab_stats()
491 s->alloc_refill, (s->alloc_refill * 100) / total); in slab_stats()
493 s->alloc_node_mismatch, (s->alloc_node_mismatch * 100) / total); in slab_stats()
/tools/perf/util/
Dkvm-stat.h29 struct kvm_event_stats total; member
Dhist.h84 int total; member
Dprobe-finder.c285 int bsize, boffs, total; in convert_variable_type() local
299 total = dwarf_bytesize(vr_die); in convert_variable_type()
300 if (boffs < 0 || total < 0) in convert_variable_type()
303 BYTES_TO_BITS(total)); in convert_variable_type()
Dhist.c581 iter->total = sample->branch_stack->nr; in iter_prepare_branch_entry()
606 if (iter->curr >= iter->total) in iter_next_branch_entry()
654 return iter->curr >= iter->total ? 0 : -1; in iter_finish_branch_entry()
/tools/perf/Documentation/
Dperf-script-perl.txt208 nsecs($secs, $nsecs) - returns total nsecs given secs/nsecs pair
212 avg($total, $n) - returns average given a sum and a total number of values
Dperf-top.txt135 --show-total-period::
221 Annotation display filter (>= % of total).
Dperf-timechart.txt6 perf-timechart - Tool to visualize total system behavior during a workload
Dperf-script-python.txt388 total 32
612 nsecs(secs, nsecs) - returns total nsecs given secs/nsecs pair
616 avg(total, n) - returns average given a sum and a total number of values
Dperf-report.txt251 --show-total-period:: Show a column with the sum of periods.
/tools/perf/ui/browsers/
Dhists.c554 unsigned short row, u64 total, in hist_browser__show_callchain() argument
594 double percent = cumul * 100.0 / total; in hist_browser__show_callchain()
619 new_total = total; in hist_browser__show_callchain()
804 u64 total = hists__total_period(entry->hists); in hist_browser__show_entry() local
811 &entry->sorted_chain, 1, row, total, in hist_browser__show_entry()
1074 u64 total = hists__total_period(he->hists); in hist_browser__fprintf_callchain() local
1080 total = he->stat_acc->period; in hist_browser__fprintf_callchain()
1082 hist_browser__show_callchain(browser, &he->sorted_chain, 1, 0, total, in hist_browser__fprintf_callchain()