/linux-master/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...] |
/linux-master/mm/kmsan/ |
H A D | kmsan_test.c | 81 /* Information we expect in a report. */ 167 EXPECTATION_UNINIT_VALUE(expect); 173 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); 181 EXPECTATION_NO_REPORT(expect); 188 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); 194 EXPECTATION_NO_REPORT(expect); 200 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); 206 EXPECTATION_UNINIT_VALUE(expect); 211 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); 217 EXPECTATION_NO_REPORT(expect); [all...] |
/linux-master/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...] |
/linux-master/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...] |
/linux-master/tools/testing/selftests/net/ |
H A D | socket.c | 20 int expect; member in struct:socket_testcase 55 if (s->expect < 0 && 56 errno == -s->expect) 59 strerror_r(-s->expect, err_string1, ERR_STRING_SZ); 72 if (s->expect < 0) {
|
/linux-master/mm/kfence/ |
H A D | kfence_test.c | 81 /* Information we expect in a report. */ 100 typeof(observed.lines) expect; 111 cur = expect[0]; 112 end = &expect[0][sizeof(expect[0]) - 1]; 136 cur = strchr(expect[0], '+'); 141 cur = expect[1]; 142 end = &expect[1][sizeof(expect[1]) - 1]; 172 ret = strstr(observed.lines[0], expect[ 321 struct expect_report expect = { local 355 struct expect_report expect = { local 373 struct expect_report expect = { local 389 struct expect_report expect = { local 404 struct expect_report expect = { local 421 struct expect_report expect = { local 458 struct expect_report expect = { local 492 struct expect_report expect = { local 557 struct expect_report expect = { local 644 const struct expect_report expect = { local 659 struct expect_report expect = { local 695 const struct expect_report expect = { local [all...] |
/linux-master/tools/testing/selftests/rseq/ |
H A D | rseq.h | 241 intptr_t *v, intptr_t expect, 248 return rseq_cmpeqv_storev_relaxed_cpu_id(v, expect, newv, cpu); 250 return rseq_cmpeqv_storev_relaxed_mm_cid(v, expect, newv, cpu); 313 intptr_t *v, intptr_t expect, 321 return rseq_cmpeqv_trystorev_storev_relaxed_cpu_id(v, expect, v2, newv2, newv, cpu); 323 return rseq_cmpeqv_trystorev_storev_relaxed_mm_cid(v, expect, v2, newv2, newv, cpu); 329 return rseq_cmpeqv_trystorev_storev_release_cpu_id(v, expect, v2, newv2, newv, cpu); 331 return rseq_cmpeqv_trystorev_storev_release_mm_cid(v, expect, v2, newv2, newv, cpu); 341 intptr_t *v, intptr_t expect, 349 return rseq_cmpeqv_cmpeqv_storev_relaxed_cpu_id(v, expect, v 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) 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) 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) 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) 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) argument 29 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) 33 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) 43 [expect] "r" (expect), 181 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, argument 198 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) 204 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) 215 [expect] "r" (expect), 255 rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) argument 322 rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) argument [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 cpu) argument 22 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[cmpfail]") 26 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[error2]") 36 [expect] "r" (expect), 163 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, argument 179 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[cmpfail]") 185 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[error2]") 196 [expect] "r" (expect), 281 rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) argument 344 rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) 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) argument 31 /* cmp @v equal to @expect */ 32 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) 37 /* cmp @v equal to @expect */ 38 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) 49 [expect] "r" (expect), 207 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, argument 226 /* cmp @v equal to @expect */ 227 RSEQ_ASM_OP_CMPEQ(v, expect, 292 rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) argument 369 rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) 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) argument 31 "cmpq %[v], %[expect]\n\t" 36 "cmpq %[v], %[expect]\n\t" 48 [expect] "r" (expect), 255 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, argument 273 "cmpq %[v], %[expect]\n\t" 281 "cmpq %[v], %[expect]\n\t" 299 [expect] "r" (expect), 337 rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) argument 407 rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) argument 528 rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) argument 710 rseq_cmpeqv_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t expect2, intptr_t newv, int cpu) argument 793 rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) argument 870 rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) argument [all...] |
H A D | rseq-arm64.h | 154 #define RSEQ_ASM_OP_CMPEQ(var, expect, label) \ 157 ", %[" __rseq_str(expect) "]\n" \ 160 #define RSEQ_ASM_OP_CMPEQ32(var, expect, label) \ 163 ", %w[" __rseq_str(expect) "]\n" \ 166 #define RSEQ_ASM_OP_CMPNE(var, expect, label) \ 169 ", %[" __rseq_str(expect) "]\n" \
|
H A D | rseq-riscv.h | 100 #define RSEQ_ASM_OP_CMPEQ(var, expect, label) \ 102 "bne " RSEQ_ASM_TMP_REG_1 ", %[" __rseq_str(expect) "] ," \ 105 #define RSEQ_ASM_OP_CMPEQ32(var, expect, label) \ 107 "bne " RSEQ_ASM_TMP_REG_1 ", %[" __rseq_str(expect) "] ," \ 110 #define RSEQ_ASM_OP_CMPNE(var, expect, label) \ 112 "beq " RSEQ_ASM_TMP_REG_1 ", %[" __rseq_str(expect) "] ," \
|
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 cpu) argument 30 "bne $4, %[expect], %l[cmpfail]\n\t" 35 "bne $4, %[expect], %l[error2]\n\t" 49 [expect] "r" (expect), 190 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, argument 209 "bne $4, %[expect], %l[cmpfail]\n\t" 217 "bne $4, %[expect], %l[error2]\n\t" 237 [expect] "r" (expect), 270 rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) argument 342 rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) argument [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 cpu) argument 30 "cmp %[expect], r0\n\t" 36 "cmp %[expect], r0\n\t" 51 [expect] "r" (expect), 207 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, argument 226 "cmp %[expect], r0\n\t" 236 "cmp %[expect], r0\n\t" 258 [expect] "r" (expect), 297 rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) argument 377 rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) argument [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 cpu) argument 24 LONG_CMP " %[expect], %[v]\n\t" 29 LONG_CMP " %[expect], %[v]\n\t" 42 [expect] "r" (expect), 199 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, argument 217 LONG_CMP " %[expect], %[v]\n\t" 225 LONG_CMP " %[expect], %[v]\n\t" 244 [expect] "r" (expect), 284 rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) argument 357 rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) argument [all...] |
/linux-master/arch/arm64/kernel/ |
H A D | reloc_test_core.c | 36 u64 expect; member in struct:__anon20 62 ret == funcs[i].expect ? "pass" : "fail"); 63 if (ret != funcs[i].expect) 65 funcs[i].expect, ret);
|
/linux-master/arch/x86/kernel/ |
H A D | jump_label.c | 38 const void *expect, *code, *nop; local 61 expect = nop; 63 expect = code; 65 if (memcmp(addr, expect, size)) { 72 addr, addr, addr, expect, size, type);
|
/linux-master/kernel/kcsan/ |
H A D | kcsan_test.c | 105 * case, we'd expect tests to fail. 144 /* Report information we expect in a report. */ 162 typeof(*observed.lines) *expect; 171 expect = kmalloc(sizeof(observed.lines), GFP_KERNEL); 172 if (WARN_ON(!expect)) 178 cur = expect[0]; 179 end = &expect[0][sizeof(expect[0]) - 1]; 196 cur = strchr(expect[0], '+'); 202 cur = expect[ 712 struct expect_report expect = { local 743 struct expect_report expect = { local 830 struct expect_report expect = { local 852 struct expect_report expect = { local 878 struct expect_report expect = { local 900 struct expect_report expect = { local 932 struct expect_report expect = { local 953 struct expect_report expect = { local 975 struct expect_report expect = { local 1015 struct expect_report expect = { local 1033 struct expect_report expect = { local 1087 struct expect_report expect = { local 1259 struct expect_report expect = { local 1282 struct expect_report expect = { local 1301 struct expect_report expect = { local 1323 struct expect_report expect = { local 1343 struct expect_report expect = { local [all...] |
/linux-master/include/net/netfilter/ |
H A D | nf_conntrack_expect.h | 25 /* We expect this tuple, with the following mask */ 129 int nf_ct_expect_related_report(struct nf_conntrack_expect *expect, 131 static inline int nf_ct_expect_related(struct nf_conntrack_expect *expect, argument 134 return nf_ct_expect_related_report(expect, 0, 0, flags);
|
/linux-master/tools/testing/selftests/kvm/x86_64/ |
H A D | hyperv_features.c | 33 uint64_t expect; member in struct:hcall_data 111 GUEST_ASSERT_EQ(res, hcall->expect); 561 hcall->expect = HV_STATUS_INVALID_HYPERCALL_CODE; 566 hcall->expect = HV_STATUS_ACCESS_DENIED; 571 hcall->expect = HV_STATUS_INVALID_HYPERCALL_INPUT; 576 hcall->expect = HV_STATUS_ACCESS_DENIED; 581 hcall->expect = HV_STATUS_INVALID_HYPERCALL_INPUT; 586 hcall->expect = HV_STATUS_INVALID_HYPERCALL_CODE; 591 hcall->expect = HV_STATUS_ACCESS_DENIED; 596 hcall->expect [all...] |
/linux-master/net/netfilter/ |
H A D | nf_conntrack_expect.c | 234 /* Optimization: most connection never expect any others. */ 431 static inline int __nf_ct_expect_check(struct nf_conntrack_expect *expect, argument 437 struct nf_conn *master = expect->master; 440 struct net *net = nf_ct_exp_net(expect); 449 h = nf_ct_expect_dst_hash(net, &expect->tuple); 451 if (master_matches(i, expect, flags) && 452 expect_matches(i, expect)) { 453 if (i->class != expect->class || 454 i->master != expect->master) 459 } else if (expect_clash(i, expect)) { 489 nf_ct_expect_related_report(struct nf_conntrack_expect *expect, u32 portid, int report, unsigned int flags) argument 628 struct nf_conntrack_expect *expect; local [all...] |
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | cpu_mask.c | 34 const char *expect; member in struct:__anon2393 74 validate_mask(i + 1, test_cases[i].expect, mask, n);
|
/linux-master/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | qos_dscp_bridge.sh | 151 local expect 153 expect=10 155 expect=0 159 ((expect == delta)) 160 check_err $? "DSCP $key: Expected to capture $expect packets, got $delta."
|