Home
last modified time | relevance | path

Searched refs:expect (Results 1 – 25 of 35) 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.sh52 expect=$3
55 cnt=$(ip netns exec $ns nft list counter inet filter "$name" | grep -q "$expect")
57 echo "ERROR: counter $name in $ns has unexpected value (expected $expect)" 1>&2
67 expect="packets 0 bytes 0"
69 check_counter $n "unknown" "$expect"
233 expect="packets 0 bytes 0"
235 check_counter "$netns" "related" "$expect"
241 expect="packets 2 bytes 2076"
242 check_counter nsclient2 "new" "$expect"
255 expect="packets 0 bytes 0"
[all …]
/tools/testing/selftests/lkdtm/
Drun.sh43 expect=$(echo "$line" | cut -d" " -f2-)
45 expect=""
51 if [ -z "$expect" ]; then
52 expect="crashes entire system"
54 echo "Skipping $test: $expect"
59 if [ -z "$expect" ]; then
60 expect="call trace:"
93 if grep -E -qi "$expect" "$LOG" ; then
94 echo "$test: saw '$expect': ok"
101 echo "$test: missing '$expect': [FAIL]"
/tools/testing/selftests/net/forwarding/
Dmirror_lib.sh37 local expect=$1; shift
54 ((expect <= delta && delta <= expect + 2))
55 check_err $? "Expected to capture $expect packets, got $delta."
60 local expect=$1; shift
67 mirror_test v$h1 $ip1 $ip2 $dev 100 $expect
68 mirror_test v$h2 $ip2 $ip1 $dev 100 $expect
114 local expect=$1; shift
125 mirror_test v$h1 $ip1 $ip2 $dev 100 $expect
126 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."
/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.h161 #define RSEQ_ASM_OP_CMPEQ(var, expect, label) \ argument
163 RSEQ_CMP_LONG "cr7, %%r17, %[" __rseq_str(expect) "]\n\t" \
213 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev() argument
230 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in rseq_cmpeqv_storev()
236 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in rseq_cmpeqv_storev()
247 [expect] "r" (expect), in rseq_cmpeqv_storev()
405 int rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument
424 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in rseq_cmpeqv_trystorev_storev()
430 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in rseq_cmpeqv_trystorev_storev()
448 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev()
[all …]
Drseq-x86.h116 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev() argument
148 [expect] "r" (expect), in rseq_cmpeqv_storev()
355 int rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument
396 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev()
426 int rseq_cmpeqv_trystorev_storev_release(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev_release() argument
430 return rseq_cmpeqv_trystorev_storev(v, expect, v2, newv2, newv, cpu); in rseq_cmpeqv_trystorev_storev_release()
434 int rseq_cmpeqv_cmpeqv_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument
478 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev()
510 int rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trymemcpy_storev() argument
587 [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()
328 int rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument
370 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev()
401 int rseq_cmpeqv_trystorev_storev_release(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev_release() argument
405 return rseq_cmpeqv_trystorev_storev(v, expect, v2, newv2, newv, cpu); in rseq_cmpeqv_trystorev_storev_release()
409 int rseq_cmpeqv_cmpeqv_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument
454 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev()
487 int rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trymemcpy_storev() argument
565 [expect] "r" (expect), in rseq_cmpeqv_trymemcpy_storev()
[all …]
Drseq-arm.h151 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev() argument
188 [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
390 [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
467 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev_release()
497 int rseq_cmpeqv_cmpeqv_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument
548 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev()
581 int rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trymemcpy_storev() argument
667 [expect] "r" (expect), in rseq_cmpeqv_trymemcpy_storev()
[all …]
Drseq-mips.h158 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev() argument
193 [expect] "r" (expect), in rseq_cmpeqv_storev()
334 int rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument
378 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev()
403 int rseq_cmpeqv_trystorev_storev_release(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev_release() argument
448 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev_release()
473 int rseq_cmpeqv_cmpeqv_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument
520 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev()
547 int rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trymemcpy_storev() argument
630 [expect] "r" (expect), in rseq_cmpeqv_trymemcpy_storev()
[all …]
Dbasic_percpu_ops_test.c141 intptr_t *targetptr, newval, expect; in this_cpu_list_push() local
146 expect = (intptr_t)RSEQ_READ_ONCE(list->c[cpu].head); in this_cpu_list_push()
149 node->next = (struct percpu_list_node *)expect; in this_cpu_list_push()
150 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_headroom.sh67 local expect=$1; shift
70 test "$current" = "$expect"
71 check_err $? "prio2buffer is '$current', expected '$expect'"
76 local expect=$1; shift
79 test "$current" = "$expect"
80 check_err $? "prio PFC is '$current', expected '$expect'"
85 local expect=$1; shift
88 test "$current" = "$expect"
89 check_err $? "prio_tc is '$current', expected '$expect'"
Dqos_dscp_bridge.sh163 local expect
165 expect=10
167 expect=0
171 ((expect == delta))
172 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.c113 int expect) in do_test() argument
201 if (count != expect * evlist->core.nr_entries) { in do_test()
202 …pr_debug("BPF filter result incorrect, expected %d, got %d samples\n", expect * evlist->core.nr_en… in do_test()
/tools/testing/selftests/bpf/prog_tests/
Dcpu_mask.c34 const char *expect; member
74 validate_mask(i + 1, test_cases[i].expect, mask, n); in test_cpu_mask()
/tools/testing/selftests/livepatch/
Dfunctions.sh274 local expect="$*"
286 if [[ "$expect" == "$result" ]] ; then
289 …echo -e "not ok\n\n$(diff -upr --label expected --label result <(echo "$expect") <(echo "$result")…
/tools/testing/selftests/pidfd/
Dpidfd_fdinfo_test.c164 size_t prefix_len, const char *expect, ...) in verify_fdinfo() argument
175 va_start(args, expect); in verify_fdinfo()
176 r = vsnprintf(buffer, sizeof(buffer), expect, args); in verify_fdinfo()
/tools/testing/selftests/powerpc/nx-gzip/
Dgunz_test.c277 int c, expect, i, cc, rc = 0; in decompress_file() local
336 c = GETINPC(inpf); expect = 0x1f; /* ID1 */ in decompress_file()
337 if (c != expect) in decompress_file()
340 c = GETINPC(inpf); expect = 0x8b; /* ID2 */ in decompress_file()
341 if (c != expect) in decompress_file()
344 c = GETINPC(inpf); expect = 0x08; /* CM */ in decompress_file()
345 if (c != expect) in decompress_file()
979 expect, c); in decompress_file()

12