Home
last modified time | relevance | path

Searched refs:delta (Results 1 – 25 of 39) sorted by relevance

12

/tools/testing/selftests/powerpc/mm/
Dstack_expansion_ldst.c42 int consume_stack(unsigned long target_sp, unsigned long stack_high, int delta, enum access_type ty… in consume_stack() argument
48 return consume_stack(target_sp, stack_high, delta, type); in consume_stack()
59 target = stack_high - delta + 1; in consume_stack()
114 int child(unsigned int stack_used, int delta, enum access_type type) in child() argument
120 assert(consume_stack(stack_high - stack_used, stack_high, delta, type) == 0); in child()
123 type == LOAD ? "load" : "store", delta, stack_used, stack_high, in child()
129 static int test_one(unsigned int stack_used, int delta, enum access_type type) in test_one() argument
136 exit(child(stack_used, delta, type)); in test_one()
147 type == LOAD ? "load" : "store", delta, stack_used, in test_one()
159 unsigned long delta; in test_one_type() local
[all …]
Dbad_accesses.c122 unsigned long base, delta; in test() local
125 delta = 1ul << j; in test()
127 if (delta >= base) in test()
130 addr = (base | delta) & ~((1 << page_shift) - 1); in test()
/tools/testing/selftests/bpf/progs/
Dtest_check_mtu.c38 int delta = 0; in xdp_use_helper() local
44 if (bpf_check_mtu(ctx, ifindex, &mtu_len, delta, 0)) { in xdp_use_helper()
67 int delta; in xdp_exceed_mtu() local
71 delta = GLOBAL_USER_MTU - (data_len - ETH_HLEN) + 1; in xdp_exceed_mtu()
73 err = bpf_check_mtu(ctx, ifindex, &mtu_len, delta, 0); in xdp_exceed_mtu()
93 int delta; in xdp_minus_delta() local
96 delta = -((data_len - ETH_HLEN) + 1); in xdp_minus_delta()
101 if (bpf_check_mtu(ctx, ifindex, &mtu_len, delta, 0)) in xdp_minus_delta()
161 int delta = 0; in tc_use_helper() local
163 if (bpf_check_mtu(ctx, 0, &mtu_len, delta, 0)) { in tc_use_helper()
[all …]
Dbpf_cubic.c200 __s32 delta; in BPF_PROG() local
202 delta = now - tcp_sk(sk)->lsndtime; in BPF_PROG()
207 if (ca->epoch_start && delta > 0) { in BPF_PROG()
208 ca->epoch_start += delta; in BPF_PROG()
275 __u32 delta, bic_target, max_cnt; in bictcp_update() local
338 delta = (cube_rtt_scale * offs * offs * offs) >> (10+3*BICTCP_HZ); in bictcp_update()
340 bic_target = ca->bic_origin_point - delta; in bictcp_update()
342 bic_target = ca->bic_origin_point + delta; in bictcp_update()
365 delta = (cwnd * scale) >> 3; in bictcp_update()
366 if (ca->ack_cnt > delta && delta) { in bictcp_update()
[all …]
Dbpf_iter_tcp4.c41 static clock_t jiffies_delta_to_clock_t(long delta) in jiffies_delta_to_clock_t() argument
43 if (delta <= 0) in jiffies_delta_to_clock_t()
46 return jiffies_to_clock_t(delta); in jiffies_delta_to_clock_t()
153 long delta; in dump_tw_sock() local
155 delta = tw->tw_timer.expires - bpf_jiffies64(); in dump_tw_sock()
166 3, jiffies_delta_to_clock_t(delta), 0, 0, 0, 0, in dump_tw_sock()
Dbpf_iter_tcp6.c41 static clock_t jiffies_delta_to_clock_t(long delta) in jiffies_delta_to_clock_t() argument
43 if (delta <= 0) in jiffies_delta_to_clock_t()
46 return jiffies_to_clock_t(delta); in jiffies_delta_to_clock_t()
158 long delta; in dump_tw_sock() local
160 delta = tw->tw_timer.expires - bpf_jiffies64(); in dump_tw_sock()
175 3, jiffies_delta_to_clock_t(delta), 0, 0, 0, 0, in dump_tw_sock()
Dnetif_receive_skb.c41 int i, delta = 0; in __strncmp() local
44 delta = s1[i] - s2[i]; in __strncmp()
45 if (delta || s1[i] == 0 || s2[i] == 0) in __strncmp()
48 return delta; in __strncmp()
Dtest_spin_lock.c46 #define CREDIT_PER_NS(delta, rate) (((delta) * rate) >> 20) argument
/tools/perf/arch/x86/tests/
Drdpmc.c41 u64 count, cyc = 0, time_offset = 0, enabled, running, delta; in mmap_read_self() local
70 delta = time_offset + quot * time_mult + in mmap_read_self()
73 enabled += delta; in mmap_read_self()
75 running += delta; in mmap_read_self()
133 u64 stamp, now, delta; in __test__rdpmc() local
143 delta = now - stamp; in __test__rdpmc()
144 pr_debug("%14d: %14Lu\n", n, (long long)delta); in __test__rdpmc()
146 delta_sum += delta; in __test__rdpmc()
/tools/lib/traceevent/
Dkbuffer-parse.c281 unsigned int delta; in old_update_pointers() local
290 delta = ts4host(kbuf, type_len_ts); in old_update_pointers()
300 extend += delta; in old_update_pointers()
301 delta = extend; in old_update_pointers()
323 kbuf->timestamp += delta; in old_update_pointers()
346 unsigned long long *delta, int *length) in translate_data() argument
356 *delta = ts4host(kbuf, type_len_ts); in translate_data()
368 extend += *delta; in translate_data()
369 *delta = extend; in translate_data()
390 unsigned long long delta; in update_pointers() local
[all …]
Dkbuffer.h60 unsigned long long delta; member
/tools/testing/selftests/drivers/net/mlxsw/
Drouter_scale.sh72 local delta=$((t1 - t0))
73 echo $delta
74 [[ $delta -ge $route_count ]]
115 local delta
121 delta=$(busywait "$TIMEOUT" wait_for_routes $t0 $route_count)
123 check_err_fail $should_fail $? "Offload routes: Expected $route_count, got $delta."
Dqos_dscp_router.sh210 local delta=$((dev2_t1s[$i] - dev2_t0s[$i]))
211 ((expect2 == delta))
212 check_err $? "DSCP $dscpi@$dev2: Expected to capture $expect2 packets, got $delta."
214 delta=$((dev1_t1s[$i] - dev1_t0s[$i]))
215 ((expect3 == delta))
216 check_err $? "DSCP $dscpi@$dev1: Expected to capture $expect3 packets, got $delta."
Dqos_dscp_bridge.sh170 local delta=$((t1s[$key] - t0s[$key]))
171 ((expect == delta))
172 check_err $? "DSCP $key: Expected to capture $expect packets, got $delta."
/tools/perf/util/bpf_skel/
Dbperf_cgroup.bpf.c113 struct bpf_perf_event_value val, delta, *prev_val, *cgrp_val; in bperf_cgroup_count() local
149 delta.counter = val.counter - prev_val->counter; in bperf_cgroup_count()
150 delta.enabled = val.enabled - prev_val->enabled; in bperf_cgroup_count()
151 delta.running = val.running - prev_val->running; in bperf_cgroup_count()
163 cgrp_val->counter += delta.counter; in bperf_cgroup_count()
164 cgrp_val->enabled += delta.enabled; in bperf_cgroup_count()
165 cgrp_val->running += delta.running; in bperf_cgroup_count()
168 &delta, BPF_ANY); in bperf_cgroup_count()
/tools/testing/selftests/timers/
Dinconsistency-check.c123 unsigned long long delta; in consistency_test() local
134 delta = list[inconsistent].tv_sec * NSEC_PER_SEC; in consistency_test()
135 delta += list[inconsistent].tv_nsec; in consistency_test()
136 delta -= list[inconsistent+1].tv_sec * NSEC_PER_SEC; in consistency_test()
137 delta -= list[inconsistent+1].tv_nsec; in consistency_test()
138 printf("Delta: %llu ns\n", delta); in consistency_test()
/tools/testing/selftests/net/forwarding/
Dmirror_lib.sh52 local delta=$((t1 - t0))
54 ((expect <= delta && delta <= expect + 2))
55 check_err $? "Expected to capture $expect packets, got $delta."
Dvxlan_bridge_1d.sh403 local delta=$((t1s[$key] - t0s[$key]))
406 ((expect == delta))
407 check_err $? "${counters[$key]}: Expected to capture $expect packets, got $delta."
495 local delta=$((t1 - t0))
498 ((expect <= delta && delta <= expect + 2))
499 check_err $? "$capture_dev: Expected to capture $expect packets, got $delta."
615 local delta=$((t1 - t0))
618 ((expect <= delta && delta <= expect + 2))
619 check_err $? "Expected to capture $expect packets, got $delta."
Dvxlan_bridge_1q.sh508 local delta=$((t1s[$key] - t0s[$key]))
511 ((expect == delta))
512 check_err $? "${counters[$key]}: Expected to capture $expect packets, got $delta."
696 local delta=$((t1 - t0))
699 ((expect <= delta && delta <= expect + 2))
700 check_err $? "$capture_dev: Expected to capture $expect packets, got $delta."
/tools/perf/
Dbuiltin-sched.c325 u64 T0, T1, delta, min_delta = NSEC_PER_SEC; in calibrate_run_measurement_overhead() local
332 delta = T1-T0; in calibrate_run_measurement_overhead()
333 min_delta = min(min_delta, delta); in calibrate_run_measurement_overhead()
342 u64 T0, T1, delta, min_delta = NSEC_PER_SEC; in calibrate_sleep_measurement_overhead() local
349 delta = T1-T0; in calibrate_sleep_measurement_overhead()
350 min_delta = min(min_delta, delta); in calibrate_sleep_measurement_overhead()
749 u64 T0, T1, delta, avg_delta, fluct; in run_one_test() local
755 delta = T1 - T0; in run_one_test()
756 sched->sum_runtime += delta; in run_one_test()
760 if (delta < avg_delta) in run_one_test()
[all …]
/tools/lib/perf/
Dmmap.c346 u64 delta; in perf_mmap__read_self() local
351 delta = time_offset + mul_u64_u32_shr(cyc, time_mult, time_shift); in perf_mmap__read_self()
353 count->ena += delta; in perf_mmap__read_self()
355 count->run += delta; in perf_mmap__read_self()
/tools/perf/Documentation/
Dperf-diff.txt93 Differential computation selection - delta, ratio, wdiff, cycles,
94 delta-abs (default is delta-abs). Default can be changed using
198 and possible computation results (delta) in their related column.
244 delta
261 delta-abs
263 Same as 'delta` method, but sort the result with the absolute values.
Dexamples.txt74 Total 1148 (delta 690), reused 1148 (delta 690)
128 Total 1148 (delta 690), reused 1148 (delta 690)
/tools/testing/selftests/net/
Dtimestamping.c502 struct timeval delta; in main() local
512 delta.tv_sec = delta_us / 1000000; in main()
513 delta.tv_usec = delta_us % 1000000; in main()
522 res = select(sock + 1, &readfs, 0, &errorfs, &delta); in main()
/tools/perf/util/
Dstat.c21 double delta; in update_stats() local
24 delta = val - stats->mean; in update_stats()
25 stats->mean += delta / stats->n; in update_stats()
26 stats->M2 += delta*(val - stats->mean); in update_stats()

12