Home
last modified time | relevance | path

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

123

/tools/testing/selftests/bpf/map_tests/
Dlpm_trie_map_batch_ops.c76 __u32 step, count, total, total_success; in test_lpm_trie_map_batch_ops() local
103 total = 0; in test_lpm_trie_map_batch_ops()
110 total ? &batch : NULL, &batch, in test_lpm_trie_map_batch_ops()
111 keys + total, values + total, &count, &opts); in test_lpm_trie_map_batch_ops()
116 total += count; in test_lpm_trie_map_batch_ops()
121 CHECK(total != max_entries, "lookup with steps", in test_lpm_trie_map_batch_ops()
122 "total = %u, max_entries = %u\n", total, max_entries); in test_lpm_trie_map_batch_ops()
126 total = 0; in test_lpm_trie_map_batch_ops()
128 while (total < max_entries) { in test_lpm_trie_map_batch_ops()
129 if (max_entries - total < step) in test_lpm_trie_map_batch_ops()
[all …]
Dhtab_map_batch_ops.c78 __u32 batch, count, total, total_success; in __test_map_lookup_and_delete_batch() local
151 total = 0; in __test_map_lookup_and_delete_batch()
159 total ? &batch : NULL, in __test_map_lookup_and_delete_batch()
160 &batch, keys + total, in __test_map_lookup_and_delete_batch()
162 total * value_size, in __test_map_lookup_and_delete_batch()
177 total += count; in __test_map_lookup_and_delete_batch()
185 CHECK(total != max_entries, "lookup with steps", in __test_map_lookup_and_delete_batch()
186 "total = %u, max_entries = %u\n", total, max_entries); in __test_map_lookup_and_delete_batch()
189 total = 0; in __test_map_lookup_and_delete_batch()
191 while (total < max_entries) { in __test_map_lookup_and_delete_batch()
[all …]
Darray_map_batch_ops.c79 __u32 count, total, total_success; in __test_map_lookup_and_update_batch() local
112 total = 0; in __test_map_lookup_and_update_batch()
119 total ? &batch : NULL, in __test_map_lookup_and_update_batch()
120 &batch, keys + total, in __test_map_lookup_and_update_batch()
121 values + total * value_size, in __test_map_lookup_and_update_batch()
127 total += count; in __test_map_lookup_and_update_batch()
133 CHECK(total != max_entries, "lookup with steps", in __test_map_lookup_and_update_batch()
134 "total = %u, max_entries = %u\n", total, max_entries); in __test_map_lookup_and_update_batch()
/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()
/tools/perf/util/
Dbranch.c65 u64 total = 0; in branch_type_stat_display() local
69 total += st->counts[i]; in branch_type_stat_display()
71 if (total == 0) in branch_type_stat_display()
81 100.0 * (double)st->cond_fwd / (double)total); in branch_type_stat_display()
87 100.0 * (double)st->cond_bwd / (double)total); in branch_type_stat_display()
93 100.0 * (double)st->cross_4k / (double)total); in branch_type_stat_display()
99 100.0 * (double)st->cross_2m / (double)total); in branch_type_stat_display()
107 (double)st->counts[i] / (double)total); in branch_type_stat_display()
119 u64 total = 0; in branch_type_str() local
122 total += st->counts[i]; in branch_type_str()
[all …]
Dstat-shadow.c491 double total, ratio = 0.0; in print_stalled_cycles_frontend() local
494 total = runtime_stat_avg(st, STAT_CYCLES, cpu, rsd); in print_stalled_cycles_frontend()
496 if (total) in print_stalled_cycles_frontend()
497 ratio = avg / total * 100.0; in print_stalled_cycles_frontend()
514 double total, ratio = 0.0; in print_stalled_cycles_backend() local
517 total = runtime_stat_avg(st, STAT_CYCLES, cpu, rsd); in print_stalled_cycles_backend()
519 if (total) in print_stalled_cycles_backend()
520 ratio = avg / total * 100.0; in print_stalled_cycles_backend()
533 double total, ratio = 0.0; in print_branch_misses() local
536 total = runtime_stat_avg(st, STAT_BRANCHES, cpu, rsd); in print_branch_misses()
[all …]
/tools/testing/selftests/net/forwarding/
Dsch_ets_tests.sh43 local total=$1; shift
48 if ((! total)); then
54 local ratio=$(echo "scale=2; 100 * $d / $total" | bc -l)
86 local total
105 total=$(echo ${d[@]} | sed 's/ /+/g' | bc)
110 notraf_eval "band $stream" ${d[$i]} $total
112 strict_eval "band $stream" ${d[$i]} $total
/tools/testing/selftests/net/
Dtcp_mmap.c150 unsigned long total_mmap = 0, total = 0; in child_thread() local
209 total += zc.length; in child_thread()
217 total += lu; in child_thread()
231 total += lu; in child_thread()
241 throughput = total * 8.0 / (double)delta_usec / 1000.0; in child_thread()
243 if (total > 1024*1024) { in child_thread()
245 unsigned long mb = total >> 20; in child_thread()
250 total / (1024.0 * 1024.0), in child_thread()
251 100.0*total_mmap/total, in child_thread()
374 uint64_t 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.c30 long long int start, finish, total; in main() local
88 total = finish - start; in main()
90 printf("runTime: %4.2f\n", 1.0*total/MSEC_PER_SEC); in main()
91 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/testing/selftests/bpf/progs/
Dtest_ringbuf_multi.c50 long total = 0; variable
81 sample->seq = total; in test_ringbuf()
82 total += 1; in test_ringbuf()
Dtest_ringbuf.c26 long total = 0; variable
59 __sync_fetch_and_add(&total, 1); in test_ringbuf()
/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/
DUtil.pm25 my ($total, $n) = @_;
27 return $total / $n;
/tools/testing/selftests/bpf/prog_tests/
Dringbuf.c67 skel->bss->total = 0; in trigger_samples()
195 CHECK(skel->bss->total != 2, "err_total", "exp %ld, got %ld\n", in test_ringbuf()
196 2L, skel->bss->total); in test_ringbuf()
233 CHECK(skel->bss->total != 2, "err_total", "exp %ld, got %ld\n", in test_ringbuf()
234 2L, skel->bss->total); in test_ringbuf()
258 skel->bss->total = 0; in test_ringbuf()
290 CHECK(skel->bss->total != 2, "err_total", "exp %ld, got %ld\n", in test_ringbuf()
291 2L, skel->bss->total); in test_ringbuf()
Dringbuf_multi.c125 CHECK(skel->bss->total != 2, "err_total", "exp %ld, got %ld\n", in test_ringbuf_multi()
126 2L, skel->bss->total); in test_ringbuf_multi()
/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DUtil.py20 def avg(total, n): argument
21 return total / n
/tools/testing/selftests/kselftest/
Drunner.sh109 total=$(echo "$@" | wc -w)
110 echo "1..$total"
/tools/testing/selftests/kvm/
Ddirty_log_perf_test.c42 struct timespec total = (struct timespec){0}; in vcpu_worker() local
68 total = timespec_add(total, ts_diff); in vcpu_worker()
82 avg = timespec_div(total, vcpu_last_completed_iteration[vcpu_id]); in vcpu_worker()
85 total.tv_sec, total.tv_nsec, avg.tv_sec, avg.tv_nsec); in vcpu_worker()
/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/testing/selftests/netfilter/
Dnf-queue.c192 unsigned int last, total; in print_stats() local
195 total = 0; in print_stats()
201 total += last; in print_stats()
204 printf("%u packets total\n", total); in print_stats()
/tools/testing/selftests/arm64/mte/
Dcheck_mmap_options.c96 int total = sizeof(sizes)/sizeof(int); in check_file_memory_mapping() local
100 for (run = 0; run < total; run++) { in check_file_memory_mapping()
135 int total = sizeof(sizes)/sizeof(int); in check_clear_prot_mte_flag() local
139 for (run = 0; run < total; run++) { in check_clear_prot_mte_flag()

123