Home
last modified time | relevance | path

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

12345

/tools/testing/selftests/bpf/map_tests/
A Dlpm_trie_map_batch_ops.c71 __u32 step, count, total, total_success; in test_lpm_trie_map_batch_ops() local
99 total = 0; in test_lpm_trie_map_batch_ops()
106 total ? &batch : NULL, &batch, in test_lpm_trie_map_batch_ops()
107 keys + total, values + total, &count, &opts); in test_lpm_trie_map_batch_ops()
112 total += count; in test_lpm_trie_map_batch_ops()
117 CHECK(total != max_entries, "lookup with steps", in test_lpm_trie_map_batch_ops()
122 total = 0; in test_lpm_trie_map_batch_ops()
124 while (total < max_entries) { in test_lpm_trie_map_batch_ops()
125 if (max_entries - total < step) in test_lpm_trie_map_batch_ops()
126 count = max_entries - total; in test_lpm_trie_map_batch_ops()
[all …]
A Dhtab_map_batch_ops.c145 total = 0; in __test_map_lookup_and_delete_batch()
156 total * value_size, in __test_map_lookup_and_delete_batch()
171 total += count; in __test_map_lookup_and_delete_batch()
183 total = 0; in __test_map_lookup_and_delete_batch()
189 keys + total, in __test_map_lookup_and_delete_batch()
193 total += count; in __test_map_lookup_and_delete_batch()
211 total = 0; in __test_map_lookup_and_delete_batch()
216 total ? &batch : NULL, in __test_map_lookup_and_delete_batch()
217 &batch, keys + total, in __test_map_lookup_and_delete_batch()
219 total * value_size, in __test_map_lookup_and_delete_batch()
[all …]
A Darray_map_batch_ops.c73 __u32 count, total, total_success; in __test_map_lookup_and_update_batch() local
106 total = 0; in __test_map_lookup_and_update_batch()
113 total ? &batch : NULL, in __test_map_lookup_and_update_batch()
114 &batch, keys + total, in __test_map_lookup_and_update_batch()
115 values + total * value_size, in __test_map_lookup_and_update_batch()
121 total += count; in __test_map_lookup_and_update_batch()
127 CHECK(total != max_entries, "lookup with steps", in __test_map_lookup_and_update_batch()
128 "total = %u, max_entries = %u\n", total, max_entries); in __test_map_lookup_and_update_batch()
/tools/perf/ui/
A 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)
A 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/
A Dbranch.c114 u64 total = 0; in branch_type_stat_display() local
118 total += st->counts[i]; in branch_type_stat_display()
120 if (total == 0) in branch_type_stat_display()
130 100.0 * (double)st->cond_fwd / (double)total); in branch_type_stat_display()
136 100.0 * (double)st->cond_bwd / (double)total); in branch_type_stat_display()
156 (double)st->counts[i] / (double)total); in branch_type_stat_display()
164 (double)st->new_counts[i] / (double)total); in branch_type_stat_display()
177 u64 total = 0; in branch_type_str() local
180 total += st->counts[i]; in branch_type_str()
183 total += st->new_counts[i]; in branch_type_str()
[all …]
/tools/testing/selftests/net/forwarding/
A 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
106 total=$(echo ${d[@]} | sed 's/ /+/g' | bc)
111 notraf_eval "band $stream" ${d[$i]} $total
113 strict_eval "band $stream" ${d[$i]} $total
/tools/testing/selftests/net/
A Dtcp_mmap.c242 total += zc.length; in child_thread()
247 FILE_SZ - total)); in child_thread()
253 total += lu; in child_thread()
263 FILE_SZ - total)); in child_thread()
272 total += lu; in child_thread()
298 if (total > 1024*1024) { in child_thread()
305 total / (1024.0 * 1024.0), in child_thread()
306 100.0*total_mmap/total, in child_thread()
450 uint64_t total = 0; in main() local
590 while (total < FILE_SZ) { in main()
[all …]
/tools/perf/ui/tui/
A 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/
A 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/testing/selftests/net/mptcp/
A Dmptcp_inq.c227 if ((size_t)queued > total) in wait_for_ack()
245 size_t len, i, total, sent; in connect_one_server() local
280 total = rand() % (16 * 1024 * 1024); in connect_one_server()
281 total += (1 * 1024 * 1024); in connect_one_server()
282 sent = total; in connect_one_server()
284 ret = write(unixfd, &total, sizeof(total)); in connect_one_server()
285 assert(ret == (ssize_t)sizeof(total)); in connect_one_server()
289 while (total > 0) { in connect_one_server()
290 if (total > sizeof(buf)) in connect_one_server()
293 len = total; in connect_one_server()
[all …]
/tools/testing/selftests/bpf/progs/
A Dtest_ringbuf_multi.c52 long total = 0; variable
82 sample->seq = total; in test_ringbuf()
83 total += 1; in test_ringbuf()
A Dtest_ringbuf.c27 long total = 0; variable
59 __sync_fetch_and_add(&total, 1); in test_ringbuf()
/tools/perf/ui/gtk/
A 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()
A Dhists.c98 GtkTreeIter *parent, int col, u64 total) in perf_gtk__add_callchain_flat() argument
161 GtkTreeIter *parent, int col, u64 total) in perf_gtk__add_callchain_folded() argument
221 GtkTreeIter *parent, int col, u64 total) in perf_gtk__add_callchain_graph() argument
262 child_total = total; in perf_gtk__add_callchain_graph()
271 GtkTreeIter *parent, int col, u64 total) in perf_gtk__add_callchain() argument
361 u64 total = hists__total_period(h->hists); in perf_gtk__show_hists() local
390 total = symbol_conf.cumulate_callchain ? in perf_gtk__show_hists()
394 sym_col, total); in perf_gtk__show_hists()
417 u64 total = hists__total_period(hists); in perf_gtk__add_hierarchy_entries() local
487 total = symbol_conf.cumulate_callchain ? in perf_gtk__add_hierarchy_entries()
[all …]
/tools/testing/selftests/futex/functional/
A Dfutex_numa.c166 int total = 0; in main() local
243 total += args->val; in main()
246 printf("total: %d\n", total); in main()
249 total = 0; in main()
254 total += args->val; in main()
257 printf("contenders: %d\n", total); in main()
/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/
A DUtil.pm25 my ($total, $n) = @_;
27 return $total / $n;
/tools/hv/
A Dvmbus_bufring.c124 uint32_t old_windex, next_windex, windex, total; in vmbus_txbr_write() local
128 total = 0; in vmbus_txbr_write()
130 total += iov[i].iov_len; in vmbus_txbr_write()
131 total += sizeof(save_windex); in vmbus_txbr_write()
146 if (avail <= total) in vmbus_txbr_write()
149 next_windex = vmbus_br_idxinc(old_windex, total, ring_size); in vmbus_txbr_write()
/tools/testing/selftests/bpf/prog_tests/
A Dsockmap_strp.c171 int sent, recvd, total; in test_sockmap_strp_multiple_pkt() local
190 total = test_packet_num * STRP_PKT_FULL_LEN; in test_sockmap_strp_multiple_pkt()
191 snd = malloc(total); in test_sockmap_strp_multiple_pkt()
192 rcv = malloc(total + 1); in test_sockmap_strp_multiple_pkt()
202 sent = xsend(c, snd, total, 0); in test_sockmap_strp_multiple_pkt()
203 if (!ASSERT_EQ(sent, total, "xsend(c)")) in test_sockmap_strp_multiple_pkt()
207 recvd = recv_timeout(p, rcv, total + 1, MSG_DONTWAIT, IO_TIMEOUT_SEC); in test_sockmap_strp_multiple_pkt()
208 if (!ASSERT_EQ(recvd, total, "recv(rcv)")) in test_sockmap_strp_multiple_pkt()
214 if (!ASSERT_OK(memcmp(snd, rcv, total), "data mismatch")) in test_sockmap_strp_multiple_pkt()
A Dringbuf.c72 skel->bss->total = 0; in trigger_samples()
274 CHECK(skel->bss->total != 2, "err_total", "exp %ld, got %ld\n", in ringbuf_subtest()
275 2L, skel->bss->total); in ringbuf_subtest()
312 CHECK(skel->bss->total != 2, "err_total", "exp %ld, got %ld\n", in ringbuf_subtest()
313 2L, skel->bss->total); in ringbuf_subtest()
337 skel->bss->total = 0; in ringbuf_subtest()
373 CHECK(skel->bss->total != 2, "err_total", "exp %ld, got %ld\n", in ringbuf_subtest()
374 2L, skel->bss->total); in ringbuf_subtest()
/tools/testing/selftests/kvm/
A Ddirty_log_perf_test.c76 struct timespec total = (struct timespec){0}; in vcpu_worker() local
101 total = timespec_add(total, ts_diff); in vcpu_worker()
120 avg = timespec_div(total, vcpu_last_completed_iteration[vcpu_idx]); in vcpu_worker()
123 total.tv_sec, total.tv_nsec, avg.tv_sec, avg.tv_nsec); in vcpu_worker()
/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
A DUtil.py20 def avg(total, n): argument
21 return total / n
/tools/tracing/rtla/src/
A Dtimerlat_aa.c562 int total; in timerlat_thread_analysis() local
570 total = taa_data->tlat_irq_latency; in timerlat_thread_analysis()
573 total = taa_data->tlat_thread_latency; in timerlat_thread_analysis()
595 ns_to_per(total, taa_data->timer_irq_start_delay)); in timerlat_thread_analysis()
621 ns_to_per(total, taa_data->timer_irq_duration)); in timerlat_thread_analysis()
631 ns_to_per(total, taa_data->thread_blocking_duration)); in timerlat_thread_analysis()
649 ns_to_per(total, taa_data->thread_nmi_sum)); in timerlat_thread_analysis()
663 ns_to_per(total, taa_data->thread_irq_sum)); in timerlat_thread_analysis()
674 ns_to_per(total, taa_data->thread_softirq_sum)); in timerlat_thread_analysis()
690 ns_to_per(total, taa_data->thread_thread_sum)); in timerlat_thread_analysis()
[all …]
A Dutils.h85 #define ns_to_per(total, part) ((part * 100) / (double)total) argument
/tools/perf/
A Dbuiltin-annotate.c349 int ok = s->total - bad; in print_annotate_data_stat()
353 s->total, ok, 100.0 * ok / (s->total ?: 1), bad, 100.0 * bad / (s->total ?: 1)); in print_annotate_data_stat()
375 int total_good, total_bad, total; in print_annotate_item_stat() local
395 total = total_good + total_bad; in print_annotate_item_stat()
398 printf("total %d, ok %d (%.1f%%), bad %d (%.1f%%)\n\n", total, in print_annotate_item_stat()
399 total_good, 100.0 * total_good / (total ?: 1), in print_annotate_item_stat()
400 total_bad, 100.0 * total_bad / (total ?: 1)); in print_annotate_item_stat()
433 u64 total = hists__total_period(hists); in hists__find_annotations() local
435 if (total) in hists__find_annotations()
436 percent = 100.0 * he->stat.period / total; in hists__find_annotations()

Completed in 34 milliseconds

12345