/tools/testing/selftests/bpf/map_tests/ |
D | lpm_trie_map_batch_ops.c | 76 __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 …]
|
D | htab_map_batch_ops.c | 78 __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 …]
|
D | array_map_batch_ops.c | 79 __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/ |
D | progress.h | 11 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)
|
D | progress.c | 30 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/ |
D | branch.c | 65 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 …]
|
D | stat-shadow.c | 491 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/ |
D | sch_ets_tests.sh | 43 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/ |
D | tcp_mmap.c | 150 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/ |
D | progress.c | 12 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/ |
D | aperf.c | 30 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/ |
D | progress.c | 12 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()
|
D | hists.c | 98 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/ |
D | test_ringbuf_multi.c | 50 long total = 0; variable 81 sample->seq = total; in test_ringbuf() 82 total += 1; in test_ringbuf()
|
D | test_ringbuf.c | 26 long total = 0; variable 59 __sync_fetch_and_add(&total, 1); in test_ringbuf()
|
/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/ |
D | Util.pm | 25 my ($total, $n) = @_; 27 return $total / $n;
|
/tools/testing/selftests/bpf/prog_tests/ |
D | ringbuf.c | 67 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()
|
D | ringbuf_multi.c | 125 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/ |
D | Util.py | 20 def avg(total, n): argument 21 return total / n
|
/tools/testing/selftests/kselftest/ |
D | runner.sh | 109 total=$(echo "$@" | wc -w) 110 echo "1..$total"
|
/tools/testing/selftests/kvm/ |
D | dirty_log_perf_test.c | 42 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/ |
D | mem-phys-addr.py | 48 total = sum(load_mem_type_cnt.values()) 52 (mem_type, count, 100 * count / total),
|
/tools/testing/selftests/sparc64/drivers/ |
D | adi-test.c | 92 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/ |
D | nf-queue.c | 192 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/ |
D | check_mmap_options.c | 96 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()
|