Home
last modified time | relevance | path

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

123

/tools/perf/ui/
Dprogress.h11 u64 curr, next, step, total; member
15 void __ui_progress__init(struct ui_progress *p, u64 total,
18 #define ui_progress__init(p, total, title) \ argument
19 __ui_progress__init(p, total, title, false)
21 #define ui_progress__init_size(p, total, title) \ argument
22 __ui_progress__init(p, total, title, true)
Dprogress.c30 void __ui_progress__init(struct ui_progress *p, u64 total, in __ui_progress__init() argument
34 p->next = p->step = total / 16 ?: 1; in __ui_progress__init()
35 p->total = total; in __ui_progress__init()
Dhist.c37 u64 total = hists__total_period(hists); in __hpp__fmt() local
39 if (total) in __hpp__fmt()
40 percent = 100.0 * get_field(he) / total; in __hpp__fmt()
55 u64 total = hists__total_period(pair->hists); in __hpp__fmt() local
57 if (!total) in __hpp__fmt()
79 100.0 * period / total); in __hpp__fmt()
/tools/perf/util/
Dbranch.c63 u64 total = 0; in branch_type_stat_display() local
67 total += st->counts[i]; in branch_type_stat_display()
69 if (total == 0) in branch_type_stat_display()
79 100.0 * (double)st->cond_fwd / (double)total); in branch_type_stat_display()
85 100.0 * (double)st->cond_bwd / (double)total); in branch_type_stat_display()
91 100.0 * (double)st->cross_4k / (double)total); in branch_type_stat_display()
97 100.0 * (double)st->cross_2m / (double)total); in branch_type_stat_display()
105 (double)st->counts[i] / (double)total); in branch_type_stat_display()
117 u64 total = 0; in branch_type_str() local
120 total += st->counts[i]; in branch_type_str()
[all …]
Dstat-shadow.c429 double total, ratio = 0.0; in print_stalled_cycles_frontend() local
433 total = runtime_stat_avg(st, STAT_CYCLES, ctx, cpu); in print_stalled_cycles_frontend()
435 if (total) in print_stalled_cycles_frontend()
436 ratio = avg / total * 100.0; in print_stalled_cycles_frontend()
453 double total, ratio = 0.0; in print_stalled_cycles_backend() local
457 total = runtime_stat_avg(st, STAT_CYCLES, ctx, cpu); in print_stalled_cycles_backend()
459 if (total) in print_stalled_cycles_backend()
460 ratio = avg / total * 100.0; in print_stalled_cycles_backend()
474 double total, ratio = 0.0; in print_branch_misses() local
478 total = runtime_stat_avg(st, STAT_BRANCHES, ctx, cpu); in print_branch_misses()
[all …]
Dcallchain.h278 char *bf, size_t bfsize, u64 total);
280 FILE *fp, u64 total);
Dkvm-stat.h33 struct kvm_event_stats total; member
Dtime-utils.c202 u64 total = end - start; in set_percent_time() local
209 ptime->start = start + round(start_pcnt * total); in set_percent_time()
210 ptime->end = start + round(end_pcnt * total); in set_percent_time()
/tools/testing/selftests/net/
Dtcp_mmap.c123 unsigned long total_mmap = 0, total = 0; in child_thread() local
171 total += zc.length; in child_thread()
179 total += lu; in child_thread()
193 total += lu; in child_thread()
203 throughput = total * 8.0 / (double)delta_usec / 1000.0; in child_thread()
205 if (total > 1024*1024) { in child_thread()
207 unsigned long mb = total >> 20; in child_thread()
212 total / (1024.0 * 1024.0), in child_thread()
213 100.0*total_mmap/total, in child_thread()
305 unsigned long total = 0; in main() local
[all …]
/tools/perf/ui/tui/
Dprogress.c12 p->next = p->step = p->total / (SLtt_Screen_Cols - 2) ?: 1; in __tui_progress__init()
22 ret += unit_number__scnprintf(buf_tot, sizeof(buf_tot), p->total); in get_title()
39 if (p->total == 0) in tui_progress__update()
56 bar = ((SLtt_Screen_Cols - 2) * p->curr) / p->total; in tui_progress__update()
/tools/testing/selftests/intel_pstate/
Daperf.c26 long long int start, finish, total; in main() local
78 total = finish - start; in main()
80 printf("runTime: %4.2f\n", 1.0*total/1000); in main()
81 printf("freq: %7.0f\n", tsc / (1.0*aperf / (1.0 * mperf)) / total); in main()
/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.c98 GtkTreeIter *parent, int col, u64 total) in perf_gtk__add_callchain_flat() argument
121 callchain_node__scnprintf_value(node, buf, sizeof(buf), total); in perf_gtk__add_callchain_flat()
142 callchain_node__scnprintf_value(node, buf, sizeof(buf), total); in perf_gtk__add_callchain_flat()
161 GtkTreeIter *parent, int col, u64 total) in perf_gtk__add_callchain_folded() argument
211 callchain_node__scnprintf_value(node, buf, sizeof(buf), total); in perf_gtk__add_callchain_folded()
221 GtkTreeIter *parent, int col, u64 total) in perf_gtk__add_callchain_graph() argument
243 callchain_node__scnprintf_value(node, buf, sizeof(buf), total); in perf_gtk__add_callchain_graph()
262 child_total = total; in perf_gtk__add_callchain_graph()
271 GtkTreeIter *parent, int col, u64 total) in perf_gtk__add_callchain() argument
274 perf_gtk__add_callchain_flat(root, store, parent, col, total); in perf_gtk__add_callchain()
[all …]
/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/
DUtil.pm25 my ($total, $n) = @_;
27 return $total / $n;
/tools/testing/selftests/bpf/
Dtcp_client.py21 total = len(s)
23 while count < total:
Dtcp_server.py21 total = len(s)
23 while count < total:
/tools/testing/selftests/kselftest/
Drunner.sh96 total=$(echo "$@" | wc -w)
97 echo "1..$total"
/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DUtil.py20 def avg(total, n): argument
21 return total / n
/tools/perf/scripts/python/
Dmem-phys-addr.py48 total = sum(load_mem_type_cnt.values())
52 (mem_type, count, 100 * count / total),
/tools/testing/selftests/sparc64/drivers/
Dadi-test.c92 unsigned long total; member
98 .name = "read", .total = 0, .count = 0, .bytes = 0};
100 .name = "pread", .total = 0, .count = 0, .bytes = 0};
102 .name = "write", .total = 0, .count = 0, .bytes = 0};
104 .name = "pwrite", .total = 0, .count = 0, .bytes = 0};
106 .name = "seek", .total = 0, .count = 0, .bytes = 0};
111 ustats->total += measurement; in update_stats()
120 (float)ustats->total / (float)ustats->count, in print_ustats()
/tools/usb/usbip/src/
Dusbip_network.c99 ssize_t total = 0; in usbip_net_xmit() local
115 total += nbytes; in usbip_net_xmit()
119 return total; in usbip_net_xmit()
/tools/perf/
Dbuiltin-lock.c692 static void print_bad_events(int bad, int total) in print_bad_events() argument
700 pr_info("bad: %d, total: %d\n", bad, total); in print_bad_events()
701 pr_info("bad rate: %.2f %%\n", (double)bad / (double)total * 100); in print_bad_events()
712 int bad, total; in print_result() local
725 bad = total = 0; in print_result()
727 total++; in print_result()
758 print_bad_events(bad, total); in print_result()
/tools/testing/selftests/drivers/net/mlxsw/
Dfib_offload.sh262 local total
275 total=$((nums_nhs * num_rts))
293 while [ $count -lt $total ]; do
/tools/vm/
Dslabinfo.c450 unsigned long total; in slab_stats() local
501 total = s->deactivate_full + s->deactivate_empty + in slab_stats()
504 if (total) { in slab_stats()
508 s->deactivate_full, (s->deactivate_full * 100) / total); in slab_stats()
510 s->deactivate_empty, (s->deactivate_empty * 100) / total); in slab_stats()
512 s->deactivate_to_head, (s->deactivate_to_head * 100) / total); in slab_stats()
514 s->deactivate_to_tail, (s->deactivate_to_tail * 100) / total); in slab_stats()
516 s->deactivate_bypass, (s->deactivate_bypass * 100) / total); in slab_stats()
518 s->alloc_refill, (s->alloc_refill * 100) / total); in slab_stats()
520 s->alloc_node_mismatch, (s->alloc_node_mismatch * 100) / total); in slab_stats()
/tools/perf/ui/browsers/
Dhists.c795 unsigned short row, u64 total, in hist_browser__show_callchain_list() argument
828 total); in hist_browser__show_callchain_list()
859 unsigned short row, u64 total, in hist_browser__show_callchain_flat() argument
891 chain, row, total, in hist_browser__show_callchain_flat()
914 chain, row, total, in hist_browser__show_callchain_flat()
963 unsigned short row, u64 total, in hist_browser__show_callchain_folded() argument
992 callchain_node__scnprintf_value(child, buf, sizeof(buf), total); in hist_browser__show_callchain_folded()
1048 unsigned short row, u64 total, in hist_browser__show_callchain_graph() argument
1057 u64 percent_total = total; in hist_browser__show_callchain_graph()
1100 new_level, row, total, in hist_browser__show_callchain_graph()
[all …]

123