/linux/tools/testing/selftests/net/netfilter/ |
H A D | nft_nat.sh | 65 local expect=$3 68 echo "ERROR: $counter counter in $ns has unexpected value (expected $expect) at $tag" 1>&2 87 expect="packets 1 bytes 104" 88 if ! ip netns exec "$ns" nft list counter inet filter ns0in6 | grep -q "$expect";then 89 bad_counter "$ns" ns0in6 "$expect" "check_counters 3" 92 if ! ip netns exec "$ns" nft list counter inet filter ns0out6 | grep -q "$expect";then 93 bad_counter "$ns" ns0out6 "$expect" "check_counters 4" 125 expect="packets 1 bytes 84" 126 if ! ip netns exec "$ns0" nft list counter inet filter "${ns}${dir}" | grep -q "$expect";then 127 bad_counter "$ns0" "$ns${dir}" "$expect" "check_ns0_counters 4" [all …]
|
H A D | conntrack_icmp_related.sh | 49 expect=$3 52 if ! ip netns exec "$ns" nft list counter inet filter "$name" | grep -q "$expect"; then 53 echo "ERROR: counter $name in $ns has unexpected value (expected $expect)" 1>&2 63 expect="packets 0 bytes 0" 65 if ! check_counter "$n" "unknown" "$expect"; then 205 expect="packets 0 bytes 0" 207 if ! check_counter "$netns" "related" "$expect"; then 212 expect="packets 2 bytes 2076" 213 if ! check_counter "$nsclient2" "new" "$expect"; then 224 expect="packets 0 bytes 0" [all …]
|
/linux/scripts/dtc/ |
H A D | of_unittest_expect | 30 my ($expect, $got) = @_; 36 while ($expect) { 38 ($expect_next, $type) = split(/<</, $expect); 40 $expect =~ s/^.*?>>//; # '?' is non-greedy, minimal match 102 --hide-expect suppress output of EXPECTed lines 104 --no-expect-stats do not report EXPECT statistics 106 --verbose do not suppress EXPECT begin and end lines 116 to occur with an 'EXPECT \\ : text' (begin) before triggering the 117 message, and an 'EXPECT / : text' (end) after triggering the message. 121 For each expected message, the 'EXPECT \\ : text' (begin) and [all …]
|
/linux/mm/kmsan/ |
H A D | kmsan_test.c | 81 /* Information we expect in a report. */ 167 EXPECTATION_UNINIT_VALUE(expect); in test_uninit_kmalloc() 173 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_uninit_kmalloc() 181 EXPECTATION_NO_REPORT(expect); in test_init_kmalloc() 188 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_init_kmalloc() 194 EXPECTATION_NO_REPORT(expect); in test_init_kzalloc() 200 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_init_kzalloc() 206 EXPECTATION_UNINIT_VALUE(expect); in test_uninit_stack_var() 211 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_uninit_stack_var() 217 EXPECTATION_NO_REPORT(expect); in test_init_stack_var() [all …]
|
/linux/tools/testing/selftests/lkdtm/ |
H A D | run.sh | 43 expect=$(echo "$line" | cut -d" " -f2-) 45 expect="" 51 if [ -z "$expect" ]; then 52 expect="crashes entire system" 54 echo "Skipping $test: $expect" 60 if [ -z "$expect" ]; then 61 expect="call trace:" 63 if echo "$expect" | grep -q '^repeat:' ; then 64 repeat=$(echo "$expect" | cut -d' ' -f1 | cut -d: -f2) 65 expect=$(echo "$expect" | cut -d' ' -f2-) [all …]
|
/linux/tools/testing/selftests/rseq/ |
H A D | rseq-ppc-bits.h | 15 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_storev)(intptr_t *v, intptr_t expect, intptr_t newv, int c… in RSEQ_TEMPLATE_IDENTIFIER() 31 /* cmp @v equal to @expect */ in RSEQ_TEMPLATE_IDENTIFIER() 32 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in RSEQ_TEMPLATE_IDENTIFIER() 37 /* cmp @v equal to @expect */ in RSEQ_TEMPLATE_IDENTIFIER() 38 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in RSEQ_TEMPLATE_IDENTIFIER() 49 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() 207 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER() 226 /* cmp @v equal to @expect */ in RSEQ_TEMPLATE_IDENTIFIER() 227 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in RSEQ_TEMPLATE_IDENTIFIER() 235 /* cmp @v equal to @expect */ in RSEQ_TEMPLATE_IDENTIFIER() [all …]
|
H A D | rseq-arm64-bits.h | 15 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_storev)(intptr_t *v, intptr_t expect, intptr_t newv, int c… in RSEQ_TEMPLATE_IDENTIFIER() 29 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in RSEQ_TEMPLATE_IDENTIFIER() 33 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in RSEQ_TEMPLATE_IDENTIFIER() 43 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() 181 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER() 198 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in RSEQ_TEMPLATE_IDENTIFIER() 204 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in RSEQ_TEMPLATE_IDENTIFIER() 215 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() 255 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_trystorev_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER() 271 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in RSEQ_TEMPLATE_IDENTIFIER() [all …]
|
H A D | rseq-riscv-bits.h | 9 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_storev)(intptr_t *v, intptr_t expect, intptr_t newv, int c… in RSEQ_TEMPLATE_IDENTIFIER() 22 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[cmpfail]") in RSEQ_TEMPLATE_IDENTIFIER() 26 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[error2]") in RSEQ_TEMPLATE_IDENTIFIER() 36 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() 163 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER() 179 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[cmpfail]") in RSEQ_TEMPLATE_IDENTIFIER() 185 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[error2]") in RSEQ_TEMPLATE_IDENTIFIER() 196 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() 281 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_trystorev_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER() 296 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[cmpfail]") in RSEQ_TEMPLATE_IDENTIFIER() [all …]
|
H A D | rseq-x86-bits.h | 16 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_storev)(intptr_t *v, intptr_t expect, intptr_t newv, int c… in RSEQ_TEMPLATE_IDENTIFIER() 31 "cmpq %[v], %[expect]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 36 "cmpq %[v], %[expect]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 48 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() 255 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER() 273 "cmpq %[v], %[expect]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 281 "cmpq %[v], %[expect]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 299 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() 337 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_trystorev_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER() 354 "cmpq %[v], %[expect]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() [all …]
|
H A D | rseq-s390-bits.h | 9 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_storev)(intptr_t *v, intptr_t expect, intptr_t newv, int c… in RSEQ_TEMPLATE_IDENTIFIER() 24 LONG_CMP " %[expect], %[v]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 29 LONG_CMP " %[expect], %[v]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 42 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() 199 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER() 217 LONG_CMP " %[expect], %[v]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 225 LONG_CMP " %[expect], %[v]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 244 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() 284 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_trystorev_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER() 301 LONG_CMP " %[expect], %[v]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() [all …]
|
H A D | rseq-arm-bits.h | 14 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_storev)(intptr_t *v, intptr_t expect, intptr_t newv, int c… in RSEQ_TEMPLATE_IDENTIFIER() 30 "cmp %[expect], r0\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 36 "cmp %[expect], r0\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 51 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() 207 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER() 226 "cmp %[expect], r0\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 236 "cmp %[expect], r0\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 258 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() 297 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_trystorev_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER() 315 "cmp %[expect], r0\n\t" in RSEQ_TEMPLATE_IDENTIFIER() [all …]
|
H A D | rseq-mips-bits.h | 14 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_storev)(intptr_t *v, intptr_t expect, intptr_t newv, int c… in RSEQ_TEMPLATE_IDENTIFIER() 30 "bne $4, %[expect], %l[cmpfail]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 35 "bne $4, %[expect], %l[error2]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 49 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() 190 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER() 209 "bne $4, %[expect], %l[cmpfail]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 217 "bne $4, %[expect], %l[error2]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 237 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() 270 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_trystorev_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER() 288 "bne $4, %[expect], %l[cmpfail]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() [all …]
|
/linux/net/netfilter/ |
H A D | nf_conntrack_expect.c | 234 /* Optimization: most connection never expect any others. */ in nf_ct_remove_expectations() 431 static inline int __nf_ct_expect_check(struct nf_conntrack_expect *expect, in __nf_ct_expect_check() argument 437 struct nf_conn *master = expect->master; in __nf_ct_expect_check() 440 struct net *net = nf_ct_exp_net(expect); in __nf_ct_expect_check() 449 h = nf_ct_expect_dst_hash(net, &expect->tuple); in __nf_ct_expect_check() 451 if (master_matches(i, expect, flags) && in __nf_ct_expect_check() 452 expect_matches(i, expect)) { in __nf_ct_expect_check() 453 if (i->class != expect->class || in __nf_ct_expect_check() 454 i->master != expect->master) in __nf_ct_expect_check() 459 } else if (expect_clash(i, expect)) { in __nf_ct_expect_check() [all …]
|
/linux/tools/testing/selftests/net/forwarding/ |
H A D | mirror_lib.sh | 37 local expect=$1; shift 47 if [[ -z ${expect//[[:digit:]]/} ]]; then 48 expect="== $expect" 57 ((delta $expect)) 58 check_err $? "Expected to capture $expect packets, got $delta." 63 local expect=$1; shift 71 mirror_test v$h1 $ip1 $ip2 $dev 100 $expect 75 mirror_test v$h2 $ip2 $ip1 $dev 100 $expect 123 local expect=$1; shift 134 mirror_test v$h1 $ip1 $ip2 $dev 100 "$expect" [all …]
|
/linux/kernel/kcsan/ |
H A D | kcsan_test.c | 105 * case, we'd expect tests to fail. in probe_console() 144 /* Report information we expect in a report. */ 162 typeof(*observed.lines) *expect; in __report_matches() local 171 expect = kmalloc(sizeof(observed.lines), GFP_KERNEL); in __report_matches() 172 if (WARN_ON(!expect)) in __report_matches() 178 cur = expect[0]; in __report_matches() 179 end = &expect[0][sizeof(expect[0]) - 1]; in __report_matches() 186 /* Expect lexographically sorted function names in title. */ in __report_matches() 196 cur = strchr(expect[0], '+'); in __report_matches() 202 cur = expect[1]; in __report_matches() [all …]
|
/linux/fs/btrfs/ |
H A D | tree-checker.c | 202 "invalid previous key objectid, have %llu expect %llu", in check_prev_ino() 240 "invalid item size, have %u expect [%zu, %u)", in check_extent_data_item() 248 "invalid type for file extent, have %u expect range [0, %u]", in check_extent_data_item() 261 "invalid compression for file extent, have %u expect range [0, %u]", in check_extent_data_item() 268 "invalid encryption for file extent, have %u expect 0", in check_extent_data_item() 276 "invalid file_offset for inline file extent, have %llu expect 0", in check_extent_data_item() 290 "invalid ram_bytes for uncompressed inline extent, have %u expect %llu", in check_extent_data_item() 301 "invalid item size for reg/prealloc file extent, have %u expect %zu", in check_extent_data_item() 373 "invalid key objectid for csum item, have %llu expect %llu", in check_csum_item() 433 "invalid key objectid: has %llu expect %llu or [%llu, %llu] or %llu", in check_inode_key() [all …]
|
/linux/tools/testing/selftests/drivers/usb/usbip/ |
H A D | usbip_test.sh | 74 echo "Expect to see export-able devices"; 84 echo "Get exported devices from localhost - expect to see none"; 96 echo "bind devices - expect already bound messages" 100 echo "Get exported devices from localhost - expect to see exported devices"; 112 echo "unbind devices - expect no devices bound message"; 116 echo "Get exported devices from localhost - expect to see none"; 120 echo "List imported devices - expect to see none"; 132 echo "List imported devices - expect to see exported devices"; 136 echo "List imported devices - expect to see none"; 148 echo "List imported devices - expect to see imported devices"; [all …]
|
/linux/sound/soc/ |
H A D | soc-topology-test.c | 47 int expect; /* what result we expect when loading topology */ member 60 KUNIT_EXPECT_EQ_MSG(kunit_comp->kunit, kunit_comp->expect, ret, in d_probe() 223 KUNIT_EXPECT_EQ_MSG(kunit_comp->kunit, kunit_comp->expect, ret, in d_probe_null_comp() 243 kunit_comp->expect = -EINVAL; /* expect failure */ in snd_soc_tplg_test_load_with_null_comp() 285 kunit_comp->expect = 0; /* expect success */ in snd_soc_tplg_test_load_with_null_ops() 327 KUNIT_EXPECT_EQ_MSG(kunit_comp->kunit, kunit_comp->expect, ret, in d_probe_null_fw() 347 kunit_comp->expect = -EINVAL; /* expect failure */ in snd_soc_tplg_test_load_with_null_fw() 386 kunit_comp->expect = 0; /* expect success */ in snd_soc_tplg_test_load_empty_tplg() 436 kunit_comp->expect = -EINVAL; /* expect failure */ in snd_soc_tplg_test_load_empty_tplg_bad_magic() 491 kunit_comp->expect = -EINVAL; /* expect failure */ in snd_soc_tplg_test_load_empty_tplg_bad_abi() [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | flow_dissector_reattach.c | 101 /* Expect success when attaching a different program */ in test_prog_attach_prog_attach() 109 /* Expect failure when attaching the same program twice */ in test_prog_attach_prog_attach() 134 /* Expect failure creating link when another link exists */ in test_link_create_link_create() 159 /* Expect failure creating link when prog attached */ in test_prog_attach_link_create() 186 /* Expect failure attaching prog when link exists */ in test_link_create_prog_attach() 209 /* Expect failure detaching prog when link exists */ in test_link_create_prog_detach() 237 /* Expect no prog attached after successful detach */ in test_prog_attach_detach_query() 254 /* Expect no prog attached after closing last link FD */ in test_link_create_close_query() 271 /* Expect success replacing the prog when old prog not specified */ in test_link_update_no_old_prog() 296 /* Expect success F_REPLACE and old prog specified to succeed */ in test_link_update_replace_old_prog() [all …]
|
/linux/net/mac80211/tests/ |
H A D | tpe.c | 31 int expect; member 39 .expect = 0, 47 .expect = 0, 57 .expect = 0, 65 .expect = 0, 73 .expect = 0, 81 .expect = 8, 89 .expect = 8 + 4 + 2, 99 .expect = 0, 109 .expect = 4, [all …]
|
/linux/tools/testing/selftests/exec/ |
H A D | check-exec-tests.sh | 20 local expect="$1" 29 if [[ ${ret} -ne ${expect} ]]; then 40 local expect="$1" 49 if [[ ${ret} -ne ${expect} ]]; then 60 local expect="$1" 69 if [[ ${ret} -ne ${expect} ]]; then 80 local expect="$1" 88 if [[ ${ret} -ne ${expect} ]]; then 95 local expect="$1" 103 if [[ ${ret} -ne ${expect} ]]; then
|
/linux/Documentation/rust/ |
H A D | coding-guidelines.rst | 294 On top of that, Rust provides the ``expect`` attribute which takes this further. 301 #[expect(dead_code)] 309 3 | #[expect(dead_code)] 314 This means that ``expect``\ s do not get forgotten when they are not needed, which 328 Thus prefer ``expect`` over ``allow`` unless: 334 a conditional ``expect`` (i.e. ``cfg_attr(..., expect(...))``). Otherwise, 355 ``expect`` here? 359 #[expect(dead_code)] 368 configuration. Therefore, in cases like this, we cannot use ``expect`` as-is. 382 An alternative would be using a conditional ``expect``: [all …]
|
/linux/tools/testing/selftests/net/ |
H A D | socket.c | 20 int expect; member 55 if (s->expect < 0 && in run_tests() 56 errno == -s->expect) in run_tests() 59 strerror_r(-s->expect, err_string1, ERR_STRING_SZ); in run_tests() 72 if (s->expect < 0) { in run_tests()
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | qos_headroom.sh | 67 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'"
|
/linux/kernel/trace/ |
H A D | trace_branch.c | 31 probe_likely_condition(struct ftrace_likely_data *f, int val, int expect) in probe_likely_condition() argument 78 entry->correct = val == expect; in probe_likely_condition() 88 void trace_likely_condition(struct ftrace_likely_data *f, int val, int expect) in trace_likely_condition() argument 93 probe_likely_condition(f, val, expect); in trace_likely_condition() 194 void trace_likely_condition(struct ftrace_likely_data *f, int val, int expect) in trace_likely_condition() argument 200 int expect, int is_constant) in ftrace_likely_update() argument 207 val = expect; in ftrace_likely_update() 215 trace_likely_condition(f, val, expect); in ftrace_likely_update() 218 if (val == expect) in ftrace_likely_update()
|