/kernel/linux/linux-6.6/mm/kfence/ |
H A D | kfence_test.c | 81 /* Information we expect in a report. */ 100 typeof(observed.lines) expect; in report_matches() 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[ in report_matches() 321 struct expect_report expect = { test_out_of_bounds_read() local 355 struct expect_report expect = { test_out_of_bounds_write() local 373 struct expect_report expect = { test_use_after_free_read() local 389 struct expect_report expect = { test_double_free() local 404 struct expect_report expect = { test_invalid_addr_free() local 421 struct expect_report expect = { test_corruption() local 458 struct expect_report expect = { test_kmalloc_aligned_oob_read() local 492 struct expect_report expect = { test_kmalloc_aligned_oob_write() local 557 struct expect_report expect = { test_init_on_free() local 644 const struct expect_report expect = { test_invalid_access() local 659 struct expect_report expect = { test_memcache_typesafe_by_rcu() local 695 const struct expect_report expect = { test_krealloc() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/netfilter/ |
H A 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_counter [all...] |
H A 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 [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/netfilter/ |
H A 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_counter [all...] |
H A 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 [all...] |
/kernel/linux/linux-6.6/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 [all...] |
/kernel/linux/linux-6.6/mm/kmsan/ |
H A D | kmsan_test.c | 70 /* Information we expect in a report. */ 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() [all...] |
/kernel/linux/linux-5.10/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" 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' [all...] |
/kernel/linux/linux-5.10/kernel/kcsan/ |
H A D | kcsan-test.c | 95 * case, we'd expect tests to fail. in probe_console() 134 /* Report information we expect in a report. */ 152 typeof(*observed.lines) *expect; in report_matches() 161 expect = kmalloc(sizeof(observed.lines), GFP_KERNEL); in report_matches() 162 if (WARN_ON(!expect)) in report_matches() 168 cur = expect[0]; in report_matches() 169 end = &expect[0][sizeof(expect[0]) - 1]; in report_matches() 186 cur = strchr(expect[0], '+'); in report_matches() 192 cur = expect[ in report_matches() 426 const struct expect_report expect = { test_basic() local 457 const struct expect_report expect = { test_concurrent_races() local 486 const struct expect_report expect = { test_novalue_change() local 511 const struct expect_report expect = { test_novalue_change_exception() local 530 const struct expect_report expect = { test_unknown_origin() local 552 const struct expect_report expect = { test_write_write_assume_atomic() local 578 const struct expect_report expect = { test_write_write_struct() local 600 const struct expect_report expect = { test_write_write_struct_part() local 632 const struct expect_report expect = { test_read_plain_atomic_write() local 654 const struct expect_report expect = { test_read_plain_atomic_rmw() local 677 const struct expect_report expect = { test_zero_size_access() local 717 const struct expect_report expect = { test_assert_exclusive_writer() local 735 const struct expect_report expect = { test_assert_exclusive_access() local 789 const struct expect_report expect = { test_assert_exclusive_bits_change() local [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/rseq/ |
H A D | rseq-arm64.h | 156 #define RSEQ_ASM_OP_CMPEQ(var, expect, label) \ 159 ", %[" __rseq_str(expect) "]\n" \ 162 #define RSEQ_ASM_OP_CMPEQ32(var, expect, label) \ 165 ", %w[" __rseq_str(expect) "]\n" \ 168 #define RSEQ_ASM_OP_CMPNE(var, expect, label) \ 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] " in rseq_cmpeqv_storev() 374 rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) rseq_cmpeqv_trystorev_storev() argument 437 rseq_cmpeqv_trystorev_storev_release(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) rseq_cmpeqv_trystorev_storev_release() argument 500 rseq_cmpeqv_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t expect2, intptr_t newv, int cpu) rseq_cmpeqv_cmpeqv_storev() argument 568 rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) rseq_cmpeqv_trymemcpy_storev() argument 632 rseq_cmpeqv_trymemcpy_storev_release(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) rseq_cmpeqv_trymemcpy_storev_release() argument [all...] |
H A D | rseq-ppc.h | 161 #define RSEQ_ASM_OP_CMPEQ(var, expect, label) \ 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 229 /* cmp @v equal to @expect */ in rseq_cmpeqv_storev() 230 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in rseq_cmpeqv_storev() 235 /* cmp @v equal to @expect */ 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 478 rseq_cmpeqv_trystorev_storev_release(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) rseq_cmpeqv_trystorev_storev_release() argument 553 rseq_cmpeqv_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t expect2, intptr_t newv, int cpu) rseq_cmpeqv_cmpeqv_storev() argument 632 rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) rseq_cmpeqv_trymemcpy_storev() argument 711 rseq_cmpeqv_trymemcpy_storev_release(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) rseq_cmpeqv_trymemcpy_storev_release() argument [all...] |
H A 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 131 "cmpq %[v], %[expect]\n\t" in rseq_cmpeqv_storev() 136 "cmpq %[v], %[expect]\n\t" in rseq_cmpeqv_storev() 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 372 "cmpq %[v], %[expect]\n\t" in rseq_cmpeqv_trystorev_storev() 377 "cmpq %[v], %[expect]\n\t" in rseq_cmpeqv_trystorev_storev() 396 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev() 426 rseq_cmpeqv_trystorev_storev_release(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) rseq_cmpeqv_trystorev_storev_release() argument 434 rseq_cmpeqv_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t expect2, intptr_t newv, int cpu) rseq_cmpeqv_cmpeqv_storev() argument 510 rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) rseq_cmpeqv_trymemcpy_storev() argument 624 rseq_cmpeqv_trymemcpy_storev_release(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) rseq_cmpeqv_trymemcpy_storev_release() argument 725 rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) rseq_cmpeqv_storev() argument 907 rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) rseq_cmpeqv_trystorev_storev() argument 978 rseq_cmpeqv_trystorev_storev_release(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) rseq_cmpeqv_trystorev_storev_release() argument 1052 rseq_cmpeqv_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t expect2, intptr_t newv, int cpu) rseq_cmpeqv_cmpeqv_storev() argument 1130 rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) rseq_cmpeqv_trymemcpy_storev() argument 1247 rseq_cmpeqv_trymemcpy_storev_release(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) rseq_cmpeqv_trymemcpy_storev_release() argument [all...] |
H A 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
|
H A 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 174 "bne $4, %[expect], %l[cmpfail]\n\t" in rseq_cmpeqv_storev() 179 "bne $4, %[expect], %l[error2]\n\t" in rseq_cmpeqv_storev() 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 352 "bne $4, %[expect], %l[cmpfail]\n\t" in rseq_cmpeqv_trystorev_storev() 357 "bne $4, %[expect], %l[error2]\n\t" in rseq_cmpeqv_trystorev_storev() 378 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev() 403 rseq_cmpeqv_trystorev_storev_release(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) rseq_cmpeqv_trystorev_storev_release() argument 473 rseq_cmpeqv_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t expect2, intptr_t newv, int cpu) rseq_cmpeqv_cmpeqv_storev() argument 547 rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) rseq_cmpeqv_trymemcpy_storev() argument 662 rseq_cmpeqv_trymemcpy_storev_release(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) rseq_cmpeqv_trymemcpy_storev_release() argument [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/rseq/ |
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 cpu) 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 rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) rseq_cmpeqv_trystorev_storev() argument 344 rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) rseq_cmpeqv_trymemcpy_storev() argument [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 cpu) in rseq_cmpeqv_storev() argument 31 /* cmp @v equal to @expect */ in rseq_cmpeqv_storev() 32 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in rseq_cmpeqv_storev() 37 /* cmp @v equal to @expect */ 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 226 /* cmp @v equal to @expect */ in rseq_cmpeqv_cmpeqv_storev() 227 RSEQ_ASM_OP_CMPEQ(v, expect, in rseq_cmpeqv_cmpeqv_storev() 292 rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) rseq_cmpeqv_trystorev_storev() argument 369 rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) rseq_cmpeqv_trymemcpy_storev() argument [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 cpu) 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 rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) rseq_cmpeqv_trystorev_storev() argument 322 rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) rseq_cmpeqv_trymemcpy_storev() argument [all...] |
H A D | rseq.h | 241 intptr_t *v, intptr_t expect, in rseq_cmpeqv_storev() 248 return rseq_cmpeqv_storev_relaxed_cpu_id(v, expect, newv, cpu); in rseq_cmpeqv_storev() 250 return rseq_cmpeqv_storev_relaxed_mm_cid(v, expect, newv, cpu); in rseq_cmpeqv_storev() 313 intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() 321 return rseq_cmpeqv_trystorev_storev_relaxed_cpu_id(v, expect, v2, newv2, newv, cpu); in rseq_cmpeqv_trystorev_storev() 323 return rseq_cmpeqv_trystorev_storev_relaxed_mm_cid(v, expect, v2, newv2, newv, cpu); in rseq_cmpeqv_trystorev_storev() 329 return rseq_cmpeqv_trystorev_storev_release_cpu_id(v, expect, v2, newv2, newv, cpu); in rseq_cmpeqv_trystorev_storev() 331 return rseq_cmpeqv_trystorev_storev_release_mm_cid(v, expect, v2, newv2, newv, cpu); in rseq_cmpeqv_trystorev_storev() 341 intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() 349 return rseq_cmpeqv_cmpeqv_storev_relaxed_cpu_id(v, expect, v in rseq_cmpeqv_cmpeqv_storev() 240 rseq_cmpeqv_storev(enum rseq_mo rseq_mo, enum rseq_percpu_mode percpu_mode, intptr_t *v, intptr_t expect, intptr_t newv, int cpu) rseq_cmpeqv_storev() argument 312 rseq_cmpeqv_trystorev_storev(enum rseq_mo rseq_mo, enum rseq_percpu_mode percpu_mode, intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) rseq_cmpeqv_trystorev_storev() argument 340 rseq_cmpeqv_cmpeqv_storev(enum rseq_mo rseq_mo, enum rseq_percpu_mode percpu_mode, intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t expect2, intptr_t newv, int cpu) rseq_cmpeqv_cmpeqv_storev() argument 357 rseq_cmpeqv_trymemcpy_storev(enum rseq_mo rseq_mo, enum rseq_percpu_mode percpu_mode, intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) rseq_cmpeqv_trymemcpy_storev() argument [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 cpu) in rseq_cmpeqv_storev() argument 31 "cmpq %[v], %[expect]\n\t" in rseq_cmpeqv_storev() 36 "cmpq %[v], %[expect]\n\t" in rseq_cmpeqv_storev() 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 273 "cmpq %[v], %[expect]\n\t" in rseq_cmpeqv_cmpeqv_storev() 281 "cmpq %[v], %[expect]\n\t" in rseq_cmpeqv_cmpeqv_storev() 299 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev() 337 rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) rseq_cmpeqv_trystorev_storev() argument 407 rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) rseq_cmpeqv_trymemcpy_storev() argument 528 rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) rseq_cmpeqv_storev() argument 710 rseq_cmpeqv_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t expect2, intptr_t newv, int cpu) rseq_cmpeqv_cmpeqv_storev() argument 793 rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) rseq_cmpeqv_trystorev_storev() argument 870 rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) rseq_cmpeqv_trymemcpy_storev() argument [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/ |
H A 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 125 mirror_test v$h1 $ip1 $ip2 $dev 100 $expect 126 mirror_test v$h2 $ip2 $ip1 $dev 100 $expect [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/ |
H A 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 [all...] |
/kernel/linux/linux-6.6/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() 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[ in __report_matches() 715 struct expect_report expect = { test_basic() local 746 struct expect_report expect = { test_concurrent_races() local 833 struct expect_report expect = { test_unknown_origin() local 855 struct expect_report expect = { test_write_write_assume_atomic() local 881 struct expect_report expect = { test_write_write_struct() local 903 struct expect_report expect = { test_write_write_struct_part() local 935 struct expect_report expect = { test_read_plain_atomic_write() local 956 struct expect_report expect = { test_read_plain_atomic_rmw() local 978 struct expect_report expect = { test_zero_size_access() local 1018 struct expect_report expect = { test_assert_exclusive_writer() local 1036 struct expect_report expect = { test_assert_exclusive_access() local 1090 struct expect_report expect = { test_assert_exclusive_bits_change() local 1262 struct expect_report expect = { test_1bit_value_change() local 1285 struct expect_report expect = { test_correct_barrier() local 1304 struct expect_report expect = { test_missing_barrier() local 1326 struct expect_report expect = { test_atomic_builtins_correct_barrier() local 1346 struct expect_report expect = { test_atomic_builtins_missing_barrier() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/x86_64/ |
H A D | hyperv_features.c | 33 uint64_t expect; member 111 GUEST_ASSERT_EQ(res, hcall->expect); in guest_hcall() 561 hcall->expect = HV_STATUS_INVALID_HYPERCALL_CODE; in guest_test_hcalls_access() 566 hcall->expect = HV_STATUS_ACCESS_DENIED; in guest_test_hcalls_access() 571 hcall->expect = HV_STATUS_INVALID_HYPERCALL_INPUT; in guest_test_hcalls_access() 576 hcall->expect = HV_STATUS_ACCESS_DENIED; in guest_test_hcalls_access() 581 hcall->expect = HV_STATUS_INVALID_HYPERCALL_INPUT; in guest_test_hcalls_access() 586 hcall->expect = HV_STATUS_INVALID_HYPERCALL_CODE; in guest_test_hcalls_access() 591 hcall->expect = HV_STATUS_ACCESS_DENIED; in guest_test_hcalls_access() 596 hcall->expect in guest_test_hcalls_access() [all...] |
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | nf_conntrack_expect.c | 218 /* Optimization: most connection never expect any others. */ in nf_ct_remove_expectations() 413 static inline int __nf_ct_expect_check(struct nf_conntrack_expect *expect, in __nf_ct_expect_check() argument 418 struct nf_conn *master = expect->master; in __nf_ct_expect_check() 421 struct net *net = nf_ct_exp_net(expect); in __nf_ct_expect_check() 430 h = nf_ct_expect_dst_hash(net, &expect->tuple); in __nf_ct_expect_check() 432 if (master_matches(i, expect, flags) && in __nf_ct_expect_check() 433 expect_matches(i, expect)) { in __nf_ct_expect_check() 434 if (i->class != expect->class || in __nf_ct_expect_check() 435 i->master != expect->master) in __nf_ct_expect_check() 440 } else if (expect_clash(i, expect)) { in __nf_ct_expect_check() 469 nf_ct_expect_related_report(struct nf_conntrack_expect *expect, u32 portid, int report, unsigned int flags) nf_ct_expect_related_report() argument 608 struct nf_conntrack_expect *expect; exp_seq_show() local [all...] |
/kernel/linux/linux-6.6/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() 489 nf_ct_expect_related_report(struct nf_conntrack_expect *expect, u32 portid, int report, unsigned int flags) nf_ct_expect_related_report() argument 628 struct nf_conntrack_expect *expect; exp_seq_show() local [all...] |