/linux/tools/testing/selftests/netfilter/ |
A D | nft_nat.sh | 82 local expect=$3 105 expect="packets 1 bytes 104" 149 expect="packets 1 bytes 84" 205 expect="packets 0 bytes 0" 224 expect="packets 0 bytes 0" 285 expect="packets 0 bytes 0" 304 expect="packets 0 bytes 0" 343 expect="packets 0 bytes 0" 363 expect="packets 0 bytes 0" 447 expect="packets 0 bytes 0" [all …]
|
A D | conntrack_icmp_related.sh | 50 expect=$3 65 expect="packets 0 bytes 0" 67 check_counter $n "unknown" "$expect" 225 expect="packets 0 bytes 0" 227 check_counter "$netns" "related" "$expect" 233 expect="packets 2 bytes 2076" 234 check_counter nsclient2 "new" "$expect" 247 expect="packets 0 bytes 0" 254 expect="packets 1 bytes 576" 256 check_counter "$netns" "related" "$expect" [all …]
|
/linux/mm/kfence/ |
A D | kfence_test.c | 111 cur = expect[0]; in report_matches() 112 end = &expect[0][sizeof(expect[0]) - 1]; in report_matches() 141 cur = expect[1]; in report_matches() 142 end = &expect[1][sizeof(expect[1]) - 1]; in report_matches() 339 expect.addr = buf - 1; in test_out_of_bounds_read() 363 expect.addr = buf - 1; in test_out_of_bounds_write() 380 test_free(expect.addr); in test_use_after_free_read() 395 test_free(expect.addr); in test_double_free() 437 expect.addr = buf - 1; in test_corruption() 503 WRITE_ONCE(*expect.addr, READ_ONCE(*expect.addr) + 1); in test_kmalloc_aligned_oob_write() [all …]
|
/linux/tools/testing/selftests/lkdtm/ |
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:" 65 expect=$(echo "$expect" | cut -d' ' -f2-) 101 if grep -E -qi "$expect" "$LOG" ; then 102 echo "$test: saw '$expect': ok" [all …]
|
/linux/tools/testing/selftests/rseq/ |
A D | rseq-arm64.h | 159 ", %[" __rseq_str(expect) "]\n" \ 165 ", %w[" __rseq_str(expect) "]\n" \ 171 ", %[" __rseq_str(expect) "]\n" \ 226 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in rseq_cmpeqv_storev() 236 [expect] "r" (expect), in rseq_cmpeqv_storev() 382 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in rseq_cmpeqv_trystorev_storev() 393 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev() 452 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev_release() 514 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev() 574 [expect] "r" (expect), in rseq_cmpeqv_trymemcpy_storev() [all …]
|
A D | rseq-ppc.h | 224 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in rseq_cmpeqv_storev() 230 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in rseq_cmpeqv_storev() 241 [expect] "r" (expect), in rseq_cmpeqv_storev() 411 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in rseq_cmpeqv_trystorev_storev() 429 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev() 479 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in rseq_cmpeqv_trystorev_storev_release() 499 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev_release() 553 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in rseq_cmpeqv_cmpeqv_storev() 570 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev() 642 [expect] "r" (expect), in rseq_cmpeqv_trymemcpy_storev() [all …]
|
A D | rseq-x86.h | 146 [expect] "r" (expect), in rseq_cmpeqv_storev() 381 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev() 414 int rseq_cmpeqv_cmpeqv_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument 458 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev() 561 [expect] "r" (expect), in rseq_cmpeqv_trymemcpy_storev() 724 [expect] "r" (expect), in rseq_cmpeqv_storev() 903 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev() 971 [expect] "m" (expect), in rseq_cmpeqv_trystorev_storev_release() 1041 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev() 1148 [expect] "m" (expect), in rseq_cmpeqv_trymemcpy_storev() [all …]
|
A D | rseq-s390.h | 171 [expect] "r" (expect), in rseq_cmpeqv_storev() 315 int rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument 357 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev() 383 int rseq_cmpeqv_trystorev_storev_release(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev_release() argument 387 return rseq_cmpeqv_trystorev_storev(v, expect, v2, newv2, newv, cpu); in rseq_cmpeqv_trystorev_storev_release() 391 int rseq_cmpeqv_cmpeqv_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument 436 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev() 463 int rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trymemcpy_storev() argument 541 [expect] "r" (expect), in rseq_cmpeqv_trymemcpy_storev() 574 int rseq_cmpeqv_trymemcpy_storev_release(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trymemcpy_storev_release() argument [all …]
|
A D | rseq-arm.h | 191 [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 391 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev() 419 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() 495 int rseq_cmpeqv_cmpeqv_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument 547 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev() 577 int rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trymemcpy_storev() argument 664 [expect] "r" (expect), in rseq_cmpeqv_trymemcpy_storev() 701 int rseq_cmpeqv_trymemcpy_storev_release(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trymemcpy_storev_release() argument [all …]
|
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
|
A D | rseq-mips.h | 196 [expect] "r" (expect), in rseq_cmpeqv_storev() 347 int rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument 392 [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 466 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev_release() 494 int rseq_cmpeqv_cmpeqv_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument 542 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev() 572 int rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trymemcpy_storev() argument 656 [expect] "r" (expect), in rseq_cmpeqv_trymemcpy_storev() 693 int rseq_cmpeqv_trymemcpy_storev_release(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trymemcpy_storev_release() argument [all …]
|
/linux/kernel/kcsan/ |
A D | kcsan_test.c | 159 typeof(observed.lines) expect; in report_matches() 171 cur = expect[0]; in report_matches() 172 end = &expect[0][sizeof(expect[0]) - 1]; in report_matches() 189 cur = strchr(expect[0], '+'); in report_matches() 195 cur = expect[1]; in report_matches() 196 end = &expect[1][sizeof(expect[1]) - 1]; in report_matches() 222 cur = expect[2]; in report_matches() 223 end = &expect[2][sizeof(expect[2]) - 1]; in report_matches() 441 const struct expect_report expect = { in test_basic() local 472 const struct expect_report expect = { in test_concurrent_races() local [all …]
|
/linux/net/netfilter/ |
A D | nf_conntrack_expect.c | 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() 471 evict_oldest_expect(master, expect); in __nf_ct_expect_check() 499 nf_ct_expect_insert(expect); in nf_ct_expect_related_report() 628 struct nf_conntrack_expect *expect; in exp_seq_show() local 635 if (expect->timeout.function) in exp_seq_show() 641 expect->tuple.src.l3num, in exp_seq_show() 642 expect->tuple.dst.protonum); in exp_seq_show() [all …]
|
/linux/tools/testing/selftests/net/forwarding/ |
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
|
/linux/tools/testing/selftests/kvm/x86_64/ |
A D | hyperv_features.c | 99 uint64_t expect; member 146 GUEST_ASSERT(res == hcall->expect); in guest_hcall() 561 hcall->expect = HV_STATUS_ACCESS_DENIED; in guest_test_hcalls_access() 570 hcall->expect = HV_STATUS_ACCESS_DENIED; in guest_test_hcalls_access() 583 hcall->expect = HV_STATUS_ACCESS_DENIED; in guest_test_hcalls_access() 592 hcall->expect = HV_STATUS_ACCESS_DENIED; in guest_test_hcalls_access() 596 hcall->expect = HV_STATUS_SUCCESS; in guest_test_hcalls_access() 604 hcall->expect = HV_STATUS_SUCCESS; in guest_test_hcalls_access() 618 hcall->expect = HV_STATUS_SUCCESS; in guest_test_hcalls_access() 627 hcall->expect = HV_STATUS_SUCCESS; in guest_test_hcalls_access() [all …]
|
/linux/lib/ |
A D | test_scanf.c | 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); \ 383 T expect[8], result[8]; \ 385 fill_random_array(expect); \ 393 expect[i]); \ 609 T result[2] = {~expect[0], ~expect[1]}; \ 693 if (got != (expect)) { \ [all …]
|
A D | test_printf.c | 41 do_test(int bufsize, const char *expect, int elen, in do_test() argument 87 if (memcmp(test_buffer, expect, written)) { in do_test() 89 bufsize, fmt, test_buffer, written, expect); in do_test() 96 __test(const char *expect, int elen, const char *fmt, ...) in __test() argument 117 failed_tests += do_test(BUF_SIZE, expect, elen, fmt, ap); in __test() 120 failed_tests += do_test(rand, expect, elen, fmt, ap); in __test() 121 failed_tests += do_test(0, expect, elen, fmt, ap); in __test() 126 if (memcmp(p, expect, elen+1)) { in __test() 128 fmt, p, expect); in __test() 136 #define test(expect, fmt, ...) \ argument [all …]
|
/linux/tools/testing/selftests/net/ |
A D | socket.c | 18 int expect; member 54 if (s->expect < 0 && in run_tests() 55 errno == -s->expect) in run_tests() 58 strerror_r(-s->expect, err_string1, ERR_STRING_SZ); in run_tests() 71 if (s->expect < 0) { in run_tests()
|
/linux/kernel/trace/ |
A 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/tools/testing/selftests/drivers/net/mlxsw/ |
A 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'"
|
A 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/arch/x86/kernel/ |
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()
|
/linux/drivers/block/drbd/ |
A D | drbd_bitmap.c | 639 if (!expect(b)) in drbd_bm_resize() 760 if (!expect(b)) in _drbd_bm_total_weight() 786 if (!expect(b)) in drbd_bm_words() 797 if (!expect(b)) in drbd_bm_bits() 819 if (!expect(b)) in drbd_bm_merge_lel() 866 if (!expect(b)) in drbd_bm_get_lel() 897 if (!expect(b)) in drbd_bm_set_all() 913 if (!expect(b)) in drbd_bm_clear_all() 1301 if (!expect(b)) in bm_find_next() 1405 if (!expect(b)) in bm_change_bits_to() [all …]
|
/linux/arch/arm64/kernel/ |
A 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/sound/soc/ |
A D | soc-topology-test.c | 253 kunit_comp->expect = -EINVAL; /* expect failure */ in snd_soc_tplg_test_load_with_null_comp() 297 kunit_comp->expect = 0; /* expect success */ in snd_soc_tplg_test_load_with_null_ops() 361 kunit_comp->expect = -EINVAL; /* expect failure */ in snd_soc_tplg_test_load_with_null_fw() 401 kunit_comp->expect = 0; /* expect success */ in snd_soc_tplg_test_load_empty_tplg() 452 kunit_comp->expect = -EINVAL; /* expect failure */ in snd_soc_tplg_test_load_empty_tplg_bad_magic() 508 kunit_comp->expect = -EINVAL; /* expect failure */ in snd_soc_tplg_test_load_empty_tplg_bad_abi() 564 kunit_comp->expect = -EINVAL; /* expect failure */ in snd_soc_tplg_test_load_empty_tplg_bad_size() 620 kunit_comp->expect = -EINVAL; /* expect failure */ in snd_soc_tplg_test_load_empty_tplg_bad_payload_size() 675 kunit_comp->expect = 0; /* expect success */ in snd_soc_tplg_test_load_pcm_tplg() 726 kunit_comp->expect = 0; /* expect success */ in snd_soc_tplg_test_load_pcm_tplg_reload_comp() [all …]
|