/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_counter [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 [all...] |
/linux/mm/kfence/ |
H A D | kfence_test.c | 82 /* Information we expect in a report. */ 101 typeof(observed.lines) expect; in report_matches() local 112 cur = expect[0]; in report_matches() 113 end = &expect[0][sizeof(expect[0]) - 1]; in report_matches() 137 cur = strchr(expect[0], '+'); in report_matches() 142 cur = expect[1]; in report_matches() 143 end = &expect[1][sizeof(expect[1]) - 1]; in report_matches() 173 ret = strstr(observed.lines[0], expect[ in report_matches() 322 struct expect_report expect = { test_out_of_bounds_read() local 356 struct expect_report expect = { test_out_of_bounds_write() local 374 struct expect_report expect = { test_use_after_free_read() local 406 struct expect_report expect = { test_double_free() local 421 struct expect_report expect = { test_invalid_addr_free() local 438 struct expect_report expect = { test_corruption() local 475 struct expect_report expect = { test_kmalloc_aligned_oob_read() local 509 struct expect_report expect = { test_kmalloc_aligned_oob_write() local 574 struct expect_report expect = { test_init_on_free() local 661 const struct expect_report expect = { test_invalid_access() local 676 struct expect_report expect = { test_memcache_typesafe_by_rcu() local 712 const struct expect_report expect = { test_krealloc() local [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 [all...] |
/linux/tools/testing/selftests/rseq/ |
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_TEMPLATE_IDENTIFIER() 31 /* cmp @v equal to @expect */ in RSEQ_TEMPLATE_IDENTIFIER() 32 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in RSEQ_TEMPLATE_IDENTIFIER() 37 /* cmp @v equal to @expect */ in RSEQ_TEMPLATE_IDENTIFIER() 38 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in RSEQ_TEMPLATE_IDENTIFIER() 49 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() 207 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER() 226 /* cmp @v equal to @expect */ in RSEQ_TEMPLATE_IDENTIFIER() 227 RSEQ_ASM_OP_CMPEQ(v, expect, in RSEQ_TEMPLATE_IDENTIFIER() [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) in RSEQ_TEMPLATE_IDENTIFIER() 22 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[cmpfail]") in RSEQ_TEMPLATE_IDENTIFIER() 26 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[error2]") in RSEQ_TEMPLATE_IDENTIFIER() 36 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() 163 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER() 179 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[cmpfail]") in RSEQ_TEMPLATE_IDENTIFIER() 185 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[error2]") in RSEQ_TEMPLATE_IDENTIFIER() 196 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() [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_TEMPLATE_IDENTIFIER() 29 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in RSEQ_TEMPLATE_IDENTIFIER() 33 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in RSEQ_TEMPLATE_IDENTIFIER() 43 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() 181 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER() 198 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in RSEQ_TEMPLATE_IDENTIFIER() 204 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in RSEQ_TEMPLATE_IDENTIFIER() 215 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() [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_TEMPLATE_IDENTIFIER() 23 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[cmpfail]") in RSEQ_TEMPLATE_IDENTIFIER() 27 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[error2]") in RSEQ_TEMPLATE_IDENTIFIER() 37 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() 164 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER() 180 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[cmpfail]") in RSEQ_TEMPLATE_IDENTIFIER() 186 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[error2]") in RSEQ_TEMPLATE_IDENTIFIER() 197 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() [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, v in rseq_cmpeqv_cmpeqv_storev() 366 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_TEMPLATE_IDENTIFIER() 31 "cmpq %[v], %[expect]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 36 "cmpq %[v], %[expect]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 48 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() 255 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER() 273 "cmpq %[v], %[expect]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 281 "cmpq %[v], %[expect]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 299 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() [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) in RSEQ_TEMPLATE_IDENTIFIER() 30 "cmp %[expect], r0\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 36 "cmp %[expect], r0\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 51 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() 207 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER() 226 "cmp %[expect], r0\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 236 "cmp %[expect], r0\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 258 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() [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 cpu) in RSEQ_TEMPLATE_IDENTIFIER() 30 "bne $4, %[expect], %l[cmpfail]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 35 "bne $4, %[expect], %l[error2]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 49 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() 190 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER() 209 "bne $4, %[expect], %l[cmpfail]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 217 "bne $4, %[expect], %l[error2]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 237 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() [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) in RSEQ_TEMPLATE_IDENTIFIER() 24 LONG_CMP " %[expect], %[v]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 29 LONG_CMP " %[expect], %[v]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 42 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() 199 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER() 217 LONG_CMP " %[expect], %[v]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 225 LONG_CMP " %[expect], %[v]\n\t" in RSEQ_TEMPLATE_IDENTIFIER() 244 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER() [all...] |
H A D | rseq-riscv.h | 100 #define RSEQ_ASM_OP_CMPEQ(var, expect, label) \ argument 102 "bne " RSEQ_ASM_TMP_REG_1 ", %[" __rseq_str(expect) "] ," \ 105 #define RSEQ_ASM_OP_CMPEQ32(var, expect, label) \ argument 107 "bne " RSEQ_ASM_TMP_REG_1 ", %[" __rseq_str(expect) "] ," \ 110 #define RSEQ_ASM_OP_CMPNE(var, expect, label) \ argument 112 "beq " RSEQ_ASM_TMP_REG_1 ", %[" __rseq_str(expect) "] ," \
|
H A D | rseq-arm64.h | 154 #define RSEQ_ASM_OP_CMPEQ(var, expect, label) \ argument 157 ", %[" __rseq_str(expect) "]\n" \ 160 #define RSEQ_ASM_OP_CMPEQ32(var, expect, label) \ argument 163 ", %w[" __rseq_str(expect) "]\n" \ 166 #define RSEQ_ASM_OP_CMPNE(var, expect, label) \ argument 169 ", %[" __rseq_str(expect) "]\n" \
|
/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} ]]; the [all...] |
/linux/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() 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[ 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 1031 struct expect_report expect = { test_assert_exclusive_writer() local 1049 struct expect_report expect = { test_assert_exclusive_access() local 1103 struct expect_report expect = { test_assert_exclusive_bits_change() local 1275 struct expect_report expect = { test_1bit_value_change() local 1298 struct expect_report expect = { test_correct_barrier() local 1317 struct expect_report expect = { test_missing_barrier() local 1339 struct expect_report expect = { test_atomic_builtins_correct_barrier() local 1359 struct expect_report expect = { test_atomic_builtins_missing_barrier() local [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 [all...] |
/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 in guest_test_hcalls_access() [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[ 682 _test_simple_strtoxx(T,fn,gen_fmt,expect,base) global() argument [all...] |
/linux/tools/testing/selftests/net/ |
H A 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/rust/macros/ |
H A D | helpers.rs | 38 try_ident(it).expect("Expected Ident") in expect_ident() 42 if let TokenTree::Punct(punct) = it.next().expect("Reached end of token stream for Punct") { in expect_punct() 50 try_string(it).expect("Expected string") in expect_string() 54 let string = try_string(it).expect("Expected string"); in expect_string_ascii() 60 if let TokenTree::Group(group) = it.next().expect("Reached end of token stream for Group") { in expect_group()
|
/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()
|
/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/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | qos_headroom.sh | 67 local expect=$1; shift 70 test "$current" = "$expect" 71 check_err $? "prio2buffer is '$current', expected '$expect'" 76 local expect=$1; shift 79 test "$current" = "$expect" 80 check_err $? "prio PFC is '$current', expected '$expect'" 85 local expect=$1; shift 88 test "$current" = "$expect" 89 check_err $? "prio_tc is '$current', expected '$expect'"
|