/tools/testing/selftests/bpf/map_tests/ |
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 | 56 __u32 count, total, total_success; in test_array_map_batch_ops() local 88 total = 0; in test_array_map_batch_ops() 96 total ? &batch : NULL, &batch, in test_array_map_batch_ops() 97 keys + total, in test_array_map_batch_ops() 98 values + total, in test_array_map_batch_ops() 104 total += count; in test_array_map_batch_ops() 113 CHECK(total != max_entries, "lookup with steps", in test_array_map_batch_ops() 114 "total = %u, max_entries = %u\n", total, max_entries); in test_array_map_batch_ops()
|
/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 | 63 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 …]
|
D | stat-shadow.c | 454 double total, ratio = 0.0; in print_stalled_cycles_frontend() local 458 total = runtime_stat_avg(st, STAT_CYCLES, ctx, cpu); in print_stalled_cycles_frontend() 460 if (total) in print_stalled_cycles_frontend() 461 ratio = avg / total * 100.0; in print_stalled_cycles_frontend() 478 double total, ratio = 0.0; in print_stalled_cycles_backend() local 482 total = runtime_stat_avg(st, STAT_CYCLES, ctx, cpu); in print_stalled_cycles_backend() 484 if (total) in print_stalled_cycles_backend() 485 ratio = avg / total * 100.0; in print_stalled_cycles_backend() 499 double total, ratio = 0.0; in print_branch_misses() local 503 total = runtime_stat_avg(st, STAT_BRANCHES, ctx, cpu); 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/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/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/testing/selftests/bpf/prog_tests/ |
D | ringbuf.c | 67 skel->bss->total = 0; in trigger_samples() 141 CHECK(skel->bss->total != 2, "err_total", "exp %ld, got %ld\n", in test_ringbuf() 142 2L, skel->bss->total); in test_ringbuf() 179 CHECK(skel->bss->total != 2, "err_total", "exp %ld, got %ld\n", in test_ringbuf() 180 2L, skel->bss->total); in test_ringbuf() 204 skel->bss->total = 0; in test_ringbuf() 236 CHECK(skel->bss->total != 2, "err_total", "exp %ld, got %ld\n", in test_ringbuf() 237 2L, skel->bss->total); in test_ringbuf()
|
D | ringbuf_multi.c | 96 CHECK(skel->bss->total != 2, "err_total", "exp %ld, got %ld\n", in test_ringbuf_multi() 97 2L, skel->bss->total); in test_ringbuf_multi()
|
/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/testing/selftests/bpf/progs/ |
D | test_ringbuf_multi.c | 40 long total = 0; variable 71 sample->seq = total; in test_ringbuf() 72 total += 1; in test_ringbuf()
|
D | test_ringbuf.c | 27 long total = 0; variable 60 __sync_fetch_and_add(&total, 1); in test_ringbuf()
|
/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/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/ |
D | Util.pm | 25 my ($total, $n) = @_; 27 return $total / $n;
|
/tools/testing/selftests/bpf/ |
D | tcp_client.py | 21 total = len(s) 23 while count < total:
|
D | tcp_server.py | 21 total = len(s) 23 while count < total:
|
/tools/testing/selftests/kvm/ |
D | dirty_log_perf_test.c | 42 struct timespec total = (struct timespec){0}; in vcpu_worker() local 69 total = timespec_add(total, ts_diff); in vcpu_worker() 83 avg = timespec_div(total, vcpu_last_completed_iteration[vcpu_id]); in vcpu_worker() 86 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/ |
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/perf/scripts/python/ |
D | mem-phys-addr.py | 48 total = sum(load_mem_type_cnt.values()) 52 (mem_type, count, 100 * count / total),
|
/tools/lib/bpf/ |
D | libbpf_internal.h | 95 size_t total; in libbpf_reallocarray() local 98 if (unlikely(__builtin_mul_overflow(nmemb, size, &total))) in libbpf_reallocarray() 103 total = nmemb * size; in libbpf_reallocarray() 105 return realloc(ptr, total); in libbpf_reallocarray()
|
/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()
|