Home
last modified time | relevance | path

Searched refs:expect (Results 1 – 25 of 29) sorted by relevance

12

/tools/testing/selftests/netfilter/
Dnft_nat.sh82 local expect=$3
85 echo "ERROR: $counter counter in $ns has unexpected value (expected $expect) at $tag" 1>&2
105 expect="packets 1 bytes 104"
106 cnt=$(ip netns exec $ns nft list counter inet filter ns0in6 | grep -q "$expect")
108 bad_counter $ns ns0in6 "$expect" "check_counters 3"
111 cnt=$(ip netns exec $ns nft list counter inet filter ns0out6 | grep -q "$expect")
113 bad_counter $ns ns0out6 "$expect" "check_counters 4"
149 expect="packets 1 bytes 84"
150 cnt=$(ip netns exec "$ns0" nft list counter inet filter ${ns}${dir} | grep -q "$expect")
152 bad_counter "$ns0" $ns$dir "$expect" "check_ns0_counters 4"
[all …]
Dconntrack_icmp_related.sh50 expect=$3
53 cnt=$(ip netns exec $ns nft list counter inet filter "$name" | grep -q "$expect")
55 echo "ERROR: counter $name in $ns has unexpected value (expected $expect)" 1>&2
65 expect="packets 0 bytes 0"
67 check_counter $n "unknown" "$expect"
225 expect="packets 0 bytes 0"
227 check_counter "$netns" "related" "$expect"
233 expect="packets 2 bytes 2076"
234 check_counter nsclient2 "new" "$expect"
247 expect="packets 0 bytes 0"
[all …]
/tools/testing/selftests/net/forwarding/
Dmirror_lib.sh30 local expect=$1; shift
41 ((expect <= delta && delta <= expect + 2))
42 check_err $? "Expected to capture $expect packets, got $delta."
47 local expect=$1; shift
54 mirror_test v$h1 $ip1 $ip2 $dev 100 $expect
55 mirror_test v$h2 $ip2 $ip1 $dev 100 $expect
101 local expect=$1; shift
112 mirror_test v$h1 $ip1 $ip2 $dev 100 $expect
113 mirror_test v$h2 $ip2 $ip1 $dev 100 $expect
Dvxlan_bridge_1d.sh404 local expect=${expects[$key]}
406 ((expect == delta))
407 check_err $? "${counters[$key]}: Expected to capture $expect packets, got $delta."
490 local expect=$1; shift
498 ((expect <= delta && delta <= expect + 2))
499 check_err $? "$capture_dev: Expected to capture $expect packets, got $delta."
605 local expect=$1; shift
618 ((expect <= delta && delta <= expect + 2))
619 check_err $? "Expected to capture $expect packets, got $delta."
Dvxlan_bridge_1q.sh509 local expect=${expects[$key]}
511 ((expect == delta))
512 check_err $? "${counters[$key]}: Expected to capture $expect packets, got $delta."
691 local expect=$1; shift
699 ((expect <= delta && delta <= expect + 2))
700 check_err $? "$capture_dev: Expected to capture $expect packets, got $delta."
Dvxlan_asymmetric.sh491 local expect=$1; shift
494 (( expect == actual ))
495 check_err $? "expected $expect arps got $actual"
/tools/testing/selftests/rseq/
Drseq-arm64.h156 #define RSEQ_ASM_OP_CMPEQ(var, expect, label) \ argument
159 ", %[" __rseq_str(expect) "]\n" \
162 #define RSEQ_ASM_OP_CMPEQ32(var, expect, label) \ argument
165 ", %w[" __rseq_str(expect) "]\n" \
168 #define RSEQ_ASM_OP_CMPNE(var, expect, label) \ argument
171 ", %[" __rseq_str(expect) "]\n" \
208 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev() argument
222 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in rseq_cmpeqv_storev()
226 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in rseq_cmpeqv_storev()
236 [expect] "r" (expect), in rseq_cmpeqv_storev()
[all …]
Drseq-skip.h9 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev() argument
28 int rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument
36 int rseq_cmpeqv_trystorev_storev_release(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev_release() argument
44 int rseq_cmpeqv_cmpeqv_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument
52 int rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trymemcpy_storev() argument
60 int rseq_cmpeqv_trymemcpy_storev_release(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trymemcpy_storev_release() argument
Drseq-ppc.h155 #define RSEQ_ASM_OP_CMPEQ(var, expect, label) \ argument
157 CMP_WORD "cr7, %%r17, %[" __rseq_str(expect) "]\n\t" \
207 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev() argument
224 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in rseq_cmpeqv_storev()
230 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in rseq_cmpeqv_storev()
241 [expect] "r" (expect), in rseq_cmpeqv_storev()
386 int rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument
405 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in rseq_cmpeqv_trystorev_storev()
411 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in rseq_cmpeqv_trystorev_storev()
429 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev()
[all …]
Drseq-x86.h114 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev() argument
146 [expect] "r" (expect), in rseq_cmpeqv_storev()
283 int rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument
324 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev()
349 int rseq_cmpeqv_trystorev_storev_release(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev_release() argument
353 return rseq_cmpeqv_trystorev_storev(v, expect, v2, newv2, newv, cpu); in rseq_cmpeqv_trystorev_storev_release()
357 int rseq_cmpeqv_cmpeqv_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument
401 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev()
427 int rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trymemcpy_storev() argument
504 [expect] "r" (expect), in rseq_cmpeqv_trymemcpy_storev()
[all …]
Drseq-s390.h138 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev() argument
171 [expect] "r" (expect), in rseq_cmpeqv_storev()
315 int rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument
357 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev()
383 int rseq_cmpeqv_trystorev_storev_release(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev_release() argument
387 return rseq_cmpeqv_trystorev_storev(v, expect, v2, newv2, newv, cpu); in rseq_cmpeqv_trystorev_storev_release()
391 int rseq_cmpeqv_cmpeqv_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument
436 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev()
463 int rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trymemcpy_storev() argument
541 [expect] "r" (expect), in rseq_cmpeqv_trymemcpy_storev()
[all …]
Drseq-arm.h153 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev() argument
191 [expect] "r" (expect), in rseq_cmpeqv_storev()
344 int rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument
391 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev()
419 int rseq_cmpeqv_trystorev_storev_release(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev_release() argument
467 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev_release()
495 int rseq_cmpeqv_cmpeqv_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument
547 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev()
577 int rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trymemcpy_storev() argument
664 [expect] "r" (expect), in rseq_cmpeqv_trymemcpy_storev()
[all …]
Drseq-mips.h160 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev() argument
196 [expect] "r" (expect), in rseq_cmpeqv_storev()
347 int rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument
392 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev()
420 int rseq_cmpeqv_trystorev_storev_release(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev_release() argument
466 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev_release()
494 int rseq_cmpeqv_cmpeqv_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument
542 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev()
572 int rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trymemcpy_storev() argument
656 [expect] "r" (expect), in rseq_cmpeqv_trymemcpy_storev()
[all …]
Dbasic_percpu_ops_test.c142 intptr_t *targetptr, newval, expect; in this_cpu_list_push() local
147 expect = (intptr_t)RSEQ_READ_ONCE(list->c[cpu].head); in this_cpu_list_push()
150 node->next = (struct percpu_list_node *)expect; in this_cpu_list_push()
151 ret = rseq_cmpeqv_storev(targetptr, expect, newval, cpu); in this_cpu_list_push()
Dparam_test.c520 intptr_t *targetptr, newval, expect; in this_cpu_list_push() local
525 expect = (intptr_t)RSEQ_READ_ONCE(list->c[cpu].head); in this_cpu_list_push()
528 node->next = (struct percpu_list_node *)expect; in this_cpu_list_push()
529 ret = rseq_cmpeqv_storev(targetptr, expect, newval, cpu); in this_cpu_list_push()
/tools/testing/selftests/net/
Dsocket.c18 int expect; member
54 if (s->expect < 0 && in run_tests()
55 errno == -s->expect) in run_tests()
58 strerror_r(-s->expect, err_string1, ERR_STRING_SZ); in run_tests()
71 if (s->expect < 0) { in run_tests()
Dipv6_flowlabel.c74 static void do_recv(int fd, bool with_flowlabel, uint32_t expect) in do_recv() argument
76 char control[CMSG_SPACE(sizeof(expect))]; in do_recv()
117 if (expect != FLOWLABEL_WILDCARD && expect != flowlabel) in do_recv()
119 flowlabel, expect); in do_recv()
Dpsock_fanout.c221 static int sock_fanout_read(int fds[], char *rings[], const int expect[]) in sock_fanout_read() argument
229 ret[0], ret[1], expect[0], expect[1]); in sock_fanout_read()
231 if ((!(ret[0] == expect[0] && ret[1] == expect[1])) && in sock_fanout_read()
232 (!(ret[0] == expect[1] && ret[1] == expect[0]))) { in sock_fanout_read()
/tools/testing/selftests/drivers/net/mlxsw/
Dqos_dscp_bridge.sh161 local expect
163 expect=10
165 expect=0
169 ((expect == delta))
170 check_err $? "DSCP $key: Expected to capture $expect packets, got $delta."
/tools/perf/tests/
Dattr.py164 self.expect = {}
167 self.load_events(path, self.expect)
237 def compare(self, expect, result): argument
244 for exp_name, exp_event in expect.items():
273 for exp_name, exp_event in expect.items():
314 self.resolve_groups(self.expect);
318 self.compare(self.expect, self.result)
319 self.compare(self.result, self.expect)
Dkmod-path.c35 static int test_is_kernel_module(const char *path, int cpumode, bool expect) in test_is_kernel_module() argument
38 (!!is_kernel_module(path, cpumode)) == (!!expect)); in test_is_kernel_module()
40 path, cpumode, expect ? "true" : "false"); in test_is_kernel_module()
Dbpf.c111 int expect) in do_test() argument
199 if (count != expect) { in do_test()
200 pr_debug("BPF filter result incorrect, expected %d, got %d samples\n", expect, count); in do_test()
/tools/testing/selftests/livepatch/
Dfunctions.sh221 local expect="$*"
226 if [[ "$expect" == "$result" ]] ; then
229 …echo -e "not ok\n\n$(diff -upr --label expected --label result <(echo "$expect") <(echo "$result")…
/tools/perf/tests/attr/
DREADME10 these files are checked for values we expect for command.
/tools/lib/traceevent/
Devent-parse.c1258 static int test_type(enum tep_event_type type, enum tep_event_type expect) in test_type() argument
1260 if (type != expect) { in test_type()
1262 expect, type); in test_type()
1269 enum tep_event_type expect, const char *expect_tok) in test_type_token() argument
1271 if (type != expect) { in test_type_token()
1273 expect, type); in test_type_token()
1285 static int __read_expect_type(enum tep_event_type expect, char **tok, int newline_ok) in __read_expect_type() argument
1293 return test_type(type, expect); in __read_expect_type()
1296 static int read_expect_type(enum tep_event_type expect, char **tok) in read_expect_type() argument
1298 return __read_expect_type(expect, tok, 1); in read_expect_type()
[all …]

12