| /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/mm/kmsan/ |
| H A D | kmsan_test.c | 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() 222 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_init_stack_var() [all …]
|
| /linux/mm/kfence/ |
| H A D | kfence_test.c | 101 typeof(observed.lines) expect; in report_matches() local 112 cur = expect[0]; in report_matches() 113 end = ARRAY_END(expect[0]); in report_matches() 137 cur = strchr(expect[0], '+'); in report_matches() 142 cur = expect[1]; in report_matches() 143 end = ARRAY_END(expect[1]); in report_matches() 173 ret = strstr(observed.lines[0], expect[0]) && strstr(observed.lines[1], expect[1]); in report_matches() 322 struct expect_report expect = { in test_out_of_bounds_read() local 341 expect.addr = buf - 1; in test_out_of_bounds_read() 342 READ_ONCE(*expect.addr); in test_out_of_bounds_read() [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/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/tools/testing/selftests/rseq/ |
| 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_cmpeqv_storev() argument 29 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in rseq_cmpeqv_storev() 33 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in rseq_cmpeqv_storev() 43 [expect] "r" (expect), in rseq_cmpeqv_storev() 181 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument 198 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in rseq_cmpeqv_cmpeqv_storev() 204 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in rseq_cmpeqv_cmpeqv_storev() 215 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev() 255 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_trystorev_storev)(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument 271 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in rseq_cmpeqv_trystorev_storev() [all …]
|
| 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_cmpeqv_storev() argument 32 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in rseq_cmpeqv_storev() 38 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in rseq_cmpeqv_storev() 49 [expect] "r" (expect), in rseq_cmpeqv_storev() 207 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument 227 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in rseq_cmpeqv_cmpeqv_storev() 236 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in rseq_cmpeqv_cmpeqv_storev() 253 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev() 292 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_trystorev_storev)(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument 311 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in rseq_cmpeqv_trystorev_storev() [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_cmpeqv_storev() argument 22 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[cmpfail]") in rseq_cmpeqv_storev() 26 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[error2]") in rseq_cmpeqv_storev() 36 [expect] "r" (expect), in rseq_cmpeqv_storev() 163 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument 179 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[cmpfail]") in rseq_cmpeqv_cmpeqv_storev() 185 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[error2]") in rseq_cmpeqv_cmpeqv_storev() 196 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev() 281 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_trystorev_storev)(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument 296 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[cmpfail]") in rseq_cmpeqv_trystorev_storev() [all …]
|
| H A D | rseq-or1k-bits.h | 9 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_storev)(intptr_t *v, intptr_t expect, intptr_t newv, in rseq_cmpeqv_storev() argument 23 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[cmpfail]") in rseq_cmpeqv_storev() 27 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[error2]") in rseq_cmpeqv_storev() 37 [expect] "r" (expect), in rseq_cmpeqv_storev() 164 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument 180 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[cmpfail]") in rseq_cmpeqv_cmpeqv_storev() 186 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[error2]") in rseq_cmpeqv_cmpeqv_storev() 197 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev() 283 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_trystorev_storev)(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument 298 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[cmpfail]") in rseq_cmpeqv_trystorev_storev() [all …]
|
| H A D | rseq.h | 249 intptr_t *v, intptr_t expect, in rseq_cmpeqv_storev() argument 256 return rseq_cmpeqv_storev_relaxed_cpu_id(v, expect, newv, cpu); in rseq_cmpeqv_storev() 258 return rseq_cmpeqv_storev_relaxed_mm_cid(v, expect, newv, cpu); in rseq_cmpeqv_storev() 321 intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument 329 return rseq_cmpeqv_trystorev_storev_relaxed_cpu_id(v, expect, v2, newv2, newv, cpu); in rseq_cmpeqv_trystorev_storev() 331 return rseq_cmpeqv_trystorev_storev_relaxed_mm_cid(v, expect, v2, newv2, newv, cpu); in rseq_cmpeqv_trystorev_storev() 337 return rseq_cmpeqv_trystorev_storev_release_cpu_id(v, expect, v2, newv2, newv, cpu); in rseq_cmpeqv_trystorev_storev() 339 return rseq_cmpeqv_trystorev_storev_release_mm_cid(v, expect, v2, newv2, newv, cpu); in rseq_cmpeqv_trystorev_storev() 349 intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument 357 return rseq_cmpeqv_cmpeqv_storev_relaxed_cpu_id(v, expect, v2, expect2, newv, cpu); in rseq_cmpeqv_cmpeqv_storev() [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_cmpeqv_storev() argument 48 [expect] "r" (expect), in rseq_cmpeqv_storev() 255 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument 299 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev() 337 int RSEQ_TEMPLATE_IDENTIFIER(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() 407 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_trymemcpy_storev)(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trymemcpy_storev() argument 484 [expect] "r" (expect), in rseq_cmpeqv_trymemcpy_storev() 528 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_storev)(intptr_t *v, intptr_t expect, intptr_t newv, int c… in rseq_cmpeqv_storev() argument 560 [expect] "r" (expect), in rseq_cmpeqv_storev() [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_cmpeqv_storev() argument 49 [expect] "r" (expect), in rseq_cmpeqv_storev() 190 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument 237 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev() 270 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_trystorev_storev)(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument 317 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev() 342 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_trymemcpy_storev)(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trymemcpy_storev() argument 428 [expect] "r" (expect), in rseq_cmpeqv_trymemcpy_storev()
|
| 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_cmpeqv_storev() argument 51 [expect] "r" (expect), in rseq_cmpeqv_storev() 207 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument 258 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev() 297 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_trystorev_storev)(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument 346 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev() 377 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_trymemcpy_storev)(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trymemcpy_storev() argument 466 [expect] "r" (expect), in rseq_cmpeqv_trymemcpy_storev()
|
| 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_cmpeqv_storev() argument 42 [expect] "r" (expect), in rseq_cmpeqv_storev() 199 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument 244 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev() 284 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_trystorev_storev)(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument 326 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev() 357 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_trymemcpy_storev)(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trymemcpy_storev() argument 435 [expect] "r" (expect), in rseq_cmpeqv_trymemcpy_storev()
|
| /linux/net/netfilter/ |
| H A D | nf_conntrack_expect.c | 453 static inline int __nf_ct_expect_check(struct nf_conntrack_expect *expect, in __nf_ct_expect_check() argument 459 struct nf_conn *master = expect->master; in __nf_ct_expect_check() 462 struct net *net = nf_ct_exp_net(expect); in __nf_ct_expect_check() 473 h = nf_ct_expect_dst_hash(net, &expect->tuple); in __nf_ct_expect_check() 475 if (master_matches(i, expect, flags) && in __nf_ct_expect_check() 476 expect_matches(i, expect)) { in __nf_ct_expect_check() 477 if (i->class != expect->class || in __nf_ct_expect_check() 478 i->master != expect->master) in __nf_ct_expect_check() 483 } else if (expect_clash(i, expect)) { in __nf_ct_expect_check() 492 p = &helper->expect_policy[expect->class]; in __nf_ct_expect_check() [all …]
|
| /linux/kernel/kcsan/ |
| H A D | kcsan_test.c | 162 typeof(*observed.lines) *expect; in __report_matches() local 171 expect = (typeof(expect))kmalloc_obj(observed.lines); in __report_matches() 172 if (WARN_ON(!expect)) in __report_matches() 178 cur = expect[0]; in __report_matches() 179 end = ARRAY_END(expect[0]); in __report_matches() 196 cur = strchr(expect[0], '+'); in __report_matches() 202 cur = expect[1]; in __report_matches() 203 end = ARRAY_END(expect[1]); in __report_matches() 229 cur = expect[2]; in __report_matches() 230 end = &expect[2][sizeof(expect[2]) - 1]; in __report_matches() [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/tools/testing/selftests/kvm/x86/ |
| H A D | hyperv_features.c | 33 uint64_t expect; member 111 GUEST_ASSERT_EQ(res, hcall->expect); in guest_hcall() 555 hcall->expect = HV_STATUS_INVALID_HYPERCALL_CODE; in guest_test_hcalls_access() 560 hcall->expect = HV_STATUS_ACCESS_DENIED; in guest_test_hcalls_access() 565 hcall->expect = HV_STATUS_INVALID_HYPERCALL_INPUT; in guest_test_hcalls_access() 570 hcall->expect = HV_STATUS_ACCESS_DENIED; in guest_test_hcalls_access() 575 hcall->expect = HV_STATUS_INVALID_HYPERCALL_INPUT; in guest_test_hcalls_access() 580 hcall->expect = HV_STATUS_INVALID_HYPERCALL_CODE; in guest_test_hcalls_access() 585 hcall->expect = HV_STATUS_ACCESS_DENIED; in guest_test_hcalls_access() 590 hcall->expect = HV_STATUS_OPERATION_DENIED; in guest_test_hcalls_access() [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/lib/tests/ |
| H A D | scanf_kunit.c | 47 #define _check_numbers_template(arg_fmt, expect, str, fmt, n_args, ap) \ argument 49 for (; n_args > 0; n_args--, expect++) { \ 50 typeof(*expect) got = *va_arg(ap, typeof(expect)); \ 51 if (got != *expect) { \ 54 file, line, str, fmt, *expect, got); \ 341 T expect[8], result[8]; \ 343 fill_random_array(expect); \ 345 for (i = 0; i < ARRAY_SIZE(expect); i++) { \ 351 append_fmt(test_buffer, &pos, BUF_SIZE, gen_fmt, expect[i]); \ 355 test_array_8(fn, expect, test_buffer, fmt_buffer, result); \ [all …]
|
| /linux/fs/smb/client/ |
| H A D | smb2maperror_test.c | 19 test_cmp_map(struct kunit *test, const struct status_to_posix_error *expect) in test_cmp_map() argument 23 result = smb2_get_err_map_test(expect->smb2_status); in test_cmp_map() 25 KUNIT_EXPECT_EQ(test, expect->smb2_status, result->smb2_status); in test_cmp_map() 26 KUNIT_EXPECT_EQ(test, expect->posix_error, result->posix_error); in test_cmp_map() 27 KUNIT_EXPECT_STREQ(test, expect->status_string, result->status_string); in test_cmp_map()
|
| /linux/tools/testing/selftests/net/ |
| H A D | socket.c | 20 int expect; member 56 if (s->expect < 0 && in run_tests() 57 errno == -s->expect) in run_tests() 60 msg1 = strerror_r(-s->expect, err_string1, ERR_STRING_SZ); in run_tests() 73 if (s->expect < 0) { in run_tests()
|
| /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()
|
| /linux/arch/x86/kernel/ |
| H A D | jump_label.c | 38 const void *expect, *code, *nop; in __jump_label_patch() local 61 expect = nop; in __jump_label_patch() 63 expect = code; in __jump_label_patch() 65 if (memcmp(addr, expect, size)) { in __jump_label_patch() 72 addr, addr, addr, expect, size, type); in __jump_label_patch()
|