/linux-6.1.9/tools/testing/selftests/netfilter/ |
D | nft_nat.sh | 82 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 …]
|
D | conntrack_icmp_related.sh | 52 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 …]
|
/linux-6.1.9/mm/kfence/ |
D | kfence_test.c | 100 typeof(observed.lines) expect; in report_matches() local 111 cur = expect[0]; in report_matches() 112 end = &expect[0][sizeof(expect[0]) - 1]; in report_matches() 136 cur = strchr(expect[0], '+'); in report_matches() 141 cur = expect[1]; in report_matches() 142 end = &expect[1][sizeof(expect[1]) - 1]; in report_matches() 172 ret = strstr(observed.lines[0], expect[0]) && strstr(observed.lines[1], expect[1]); in report_matches() 319 struct expect_report expect = { in test_out_of_bounds_read() local 338 expect.addr = buf - 1; in test_out_of_bounds_read() 339 READ_ONCE(*expect.addr); in test_out_of_bounds_read() [all …]
|
/linux-6.1.9/tools/testing/selftests/lkdtm/ |
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-6.1.9/mm/kmsan/ |
D | kmsan_test.c | 156 EXPECTATION_UNINIT_VALUE(expect); in test_uninit_kmalloc() 162 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_uninit_kmalloc() 170 EXPECTATION_NO_REPORT(expect); in test_init_kmalloc() 177 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_init_kmalloc() 183 EXPECTATION_NO_REPORT(expect); in test_init_kzalloc() 189 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_init_kzalloc() 195 EXPECTATION_UNINIT_VALUE(expect); in test_uninit_stack_var() 200 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_uninit_stack_var() 206 EXPECTATION_NO_REPORT(expect); in test_init_stack_var() 211 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_init_stack_var() [all …]
|
/linux-6.1.9/tools/testing/selftests/rseq/ |
D | rseq-arm64.h | 156 #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 …]
|
D | rseq-riscv.h | 104 #define RSEQ_ASM_OP_CMPEQ(var, expect, label) \ argument 106 "bne " RSEQ_ASM_TMP_REG_1 ", %[" __rseq_str(expect) "] ," \ 109 #define RSEQ_ASM_OP_CMPEQ32(var, expect, label) \ argument 111 "bne " RSEQ_ASM_TMP_REG_1 ", %[" __rseq_str(expect) "] ," \ 114 #define RSEQ_ASM_OP_CMPNE(var, expect, label) \ argument 116 "beq " RSEQ_ASM_TMP_REG_1 ", %[" __rseq_str(expect) "] ," \ 173 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev() argument 186 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[cmpfail]") in rseq_cmpeqv_storev() 190 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[error2]") in rseq_cmpeqv_storev() 200 [expect] "r" (expect), in rseq_cmpeqv_storev() [all …]
|
D | rseq-ppc.h | 161 #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 …]
|
D | rseq-x86.h | 116 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 …]
|
D | rseq-skip.h | 9 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
|
D | rseq-s390.h | 138 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 …]
|
D | rseq-arm.h | 151 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 …]
|
D | rseq-mips.h | 158 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 …]
|
/linux-6.1.9/tools/testing/selftests/net/forwarding/ |
D | mirror_lib.sh | 37 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 126 mirror_test v$h1 $ip1 $ip2 $dev 100 $expect 127 mirror_test v$h2 $ip2 $ip1 $dev 100 $expect
|
/linux-6.1.9/net/netfilter/ |
D | nf_conntrack_expect.c | 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() 468 p = &helper->expect_policy[expect->class]; in __nf_ct_expect_check() [all …]
|
/linux-6.1.9/kernel/kcsan/ |
D | kcsan_test.c | 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() 196 cur = strchr(expect[0], '+'); in __report_matches() 202 cur = expect[1]; in __report_matches() 203 end = &expect[1][sizeof(expect[1]) - 1]; in __report_matches() 229 cur = expect[2]; in __report_matches() 230 end = &expect[2][sizeof(expect[2]) - 1]; in __report_matches() [all …]
|
/linux-6.1.9/tools/testing/selftests/kvm/x86_64/ |
D | hyperv_features.c | 44 uint64_t expect; member 89 GUEST_ASSERT_2(res == hcall->expect, hcall->expect, res); in guest_hcall() 512 hcall->expect = HV_STATUS_INVALID_HYPERCALL_CODE; in guest_test_hcalls_access() 517 hcall->expect = HV_STATUS_ACCESS_DENIED; in guest_test_hcalls_access() 522 hcall->expect = HV_STATUS_INVALID_HYPERCALL_INPUT; in guest_test_hcalls_access() 527 hcall->expect = HV_STATUS_ACCESS_DENIED; in guest_test_hcalls_access() 532 hcall->expect = HV_STATUS_INVALID_HYPERCALL_INPUT; in guest_test_hcalls_access() 537 hcall->expect = HV_STATUS_INVALID_HYPERCALL_CODE; in guest_test_hcalls_access() 542 hcall->expect = HV_STATUS_ACCESS_DENIED; in guest_test_hcalls_access() 547 hcall->expect = HV_STATUS_OPERATION_DENIED; in guest_test_hcalls_access() [all …]
|
/linux-6.1.9/lib/ |
D | test_scanf.c | 63 #define _check_numbers_template(arg_fmt, expect, str, fmt, n_args, ap) \ argument 66 for (; n_args > 0; n_args--, expect++) { \ 67 typeof(*expect) got = *va_arg(ap, typeof(expect)); \ 69 if (got != *expect) { \ 71 str, fmt, *expect, got); \ 355 T expect[8], result[8]; \ 357 fill_random_array(expect); \ 359 for (i = 0; i < ARRAY_SIZE(expect); i++) { \ 365 append_fmt(test_buffer, &pos, BUF_SIZE, gen_fmt, expect[i]); \ 369 test_array_8(fn, expect, test_buffer, fmt_buffer, result); \ [all …]
|
/linux-6.1.9/tools/testing/selftests/net/ |
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-6.1.9/arch/x86/kernel/ |
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()
|
/linux-6.1.9/kernel/trace/ |
D | trace_branch.c | 31 probe_likely_condition(struct ftrace_likely_data *f, int val, int expect) in probe_likely_condition() argument 83 entry->correct = val == expect; in probe_likely_condition() 94 void trace_likely_condition(struct ftrace_likely_data *f, int val, int expect) in trace_likely_condition() argument 99 probe_likely_condition(f, val, expect); in trace_likely_condition() 200 void trace_likely_condition(struct ftrace_likely_data *f, int val, int expect) in trace_likely_condition() argument 206 int expect, int is_constant) in ftrace_likely_update() argument 213 val = expect; in ftrace_likely_update() 221 trace_likely_condition(f, val, expect); in ftrace_likely_update() 224 if (val == expect) in ftrace_likely_update()
|
/linux-6.1.9/tools/testing/selftests/drivers/net/mlxsw/ |
D | qos_headroom.sh | 68 local expect=$1; shift 71 test "$current" = "$expect" 72 check_err $? "prio2buffer is '$current', expected '$expect'" 77 local expect=$1; shift 80 test "$current" = "$expect" 81 check_err $? "prio PFC is '$current', expected '$expect'" 86 local expect=$1; shift 89 test "$current" = "$expect" 90 check_err $? "prio_tc is '$current', expected '$expect'"
|
D | qos_dscp_bridge.sh | 163 local expect 165 expect=10 167 expect=0 171 ((expect == delta)) 172 check_err $? "DSCP $key: Expected to capture $expect packets, got $delta."
|
/linux-6.1.9/arch/arm64/kernel/ |
D | reloc_test_core.c | 36 u64 expect; member 62 ret == funcs[i].expect ? "pass" : "fail"); in reloc_test_init() 63 if (ret != funcs[i].expect) in reloc_test_init() 65 funcs[i].expect, ret); in reloc_test_init()
|
/linux-6.1.9/drivers/block/drbd/ |
D | drbd_bitmap.c | 451 if (!expect(device->bitmap)) in drbd_bm_capacity() 460 if (!expect(device->bitmap)) in drbd_bm_cleanup() 639 if (!expect(b)) in drbd_bm_resize() 760 if (!expect(b)) in _drbd_bm_total_weight() 762 if (!expect(b->bm_pages)) in _drbd_bm_total_weight() 786 if (!expect(b)) in drbd_bm_words() 788 if (!expect(b->bm_pages)) in drbd_bm_words() 797 if (!expect(b)) in drbd_bm_bits() 819 if (!expect(b)) in drbd_bm_merge_lel() 821 if (!expect(b->bm_pages)) in drbd_bm_merge_lel() [all …]
|