| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-5.10/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" 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': [FAIL]"
|
| /kernel/linux/linux-5.10/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-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-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-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-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 …]
|
| /kernel/linux/linux-5.10/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 125 mirror_test v$h1 $ip1 $ip2 $dev 100 $expect 126 mirror_test v$h2 $ip2 $ip1 $dev 100 $expect
|
| /kernel/linux/linux-5.10/kernel/kcsan/ |
| D | kcsan-test.c | 152 typeof(observed.lines) expect; in report_matches() local 164 cur = expect[0]; in report_matches() 165 end = &expect[0][sizeof(expect[0]) - 1]; in report_matches() 182 cur = strchr(expect[0], '+'); in report_matches() 188 cur = expect[1]; in report_matches() 189 end = &expect[1][sizeof(expect[1]) - 1]; in report_matches() 213 cur = expect[2]; in report_matches() 214 end = &expect[2][sizeof(expect[2]) - 1]; in report_matches() 236 ret = strstr(observed.lines[0], expect[0]) && in report_matches() 238 ((strstr(observed.lines[1], expect[1]) && in report_matches() [all …]
|
| /kernel/linux/linux-5.10/net/netfilter/ |
| D | nf_conntrack_expect.c | 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() 449 p = &helper->expect_policy[expect->class]; in __nf_ct_expect_check() [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/net/ |
| 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()
|
| /kernel/linux/linux-5.10/arch/x86/kernel/ |
| D | jump_label.c | 35 const void *expect, *code; in __jump_label_set_jump_code() local 45 expect = default_nop; line = __LINE__; in __jump_label_set_jump_code() 47 expect = ideal_nop; line = __LINE__; in __jump_label_set_jump_code() 49 expect = code; line = __LINE__; in __jump_label_set_jump_code() 52 if (memcmp(addr, expect, JUMP_LABEL_NOP_SIZE)) in __jump_label_set_jump_code()
|
| /kernel/linux/linux-5.10/lib/ |
| D | test_printf.c | 39 do_test(int bufsize, const char *expect, int elen, in do_test() argument 85 if (memcmp(test_buffer, expect, written)) { in do_test() 87 bufsize, fmt, test_buffer, written, expect); in do_test() 94 __test(const char *expect, int elen, const char *fmt, ...) in __test() argument 115 failed_tests += do_test(BUF_SIZE, expect, elen, fmt, ap); in __test() 118 failed_tests += do_test(rand, expect, elen, fmt, ap); in __test() 119 failed_tests += do_test(0, expect, elen, fmt, ap); in __test() 124 if (memcmp(p, expect, elen+1)) { in __test() 126 fmt, p, expect); in __test() 134 #define test(expect, fmt, ...) \ argument [all …]
|
| /kernel/linux/linux-5.10/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()
|
| /kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/ |
| 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'"
|
| 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."
|
| /kernel/linux/linux-5.10/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()
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/liteos_a/testsuites/kernel/sample/kernel_base/core/hwi_nesting/ |
| D | It_hwi_nesting.c | 56 UINT32 CheckIntrTrace(UINT32 *expect, UINT32 num) in CheckIntrTrace() argument 61 if ((expect == NULL) || (num > RECORD_SIZE)) { in CheckIntrTrace() 66 if (expect[idx] != g_intrTrace[idx]) { in CheckIntrTrace()
|
| /kernel/linux/linux-5.10/tools/perf/tests/ |
| D | attr.py | 164 self.expect = {} 167 self.load_events(path, self.expect) 237 def compare(self, expect, result): argument 244 for exp_name, exp_event in expect.items(): 273 for exp_name, exp_event in expect.items(): 314 self.resolve_groups(self.expect); 318 self.compare(self.expect, self.result) 319 self.compare(self.result, self.expect)
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
| D | selftest_mocs.c | 182 u32 expect; in check_mocs_table() local 184 for_each_mocs(expect, table, i) { in check_mocs_table() 185 if (**vaddr != expect) { in check_mocs_table() 187 engine->name, i, **vaddr, expect); in check_mocs_table() 213 u32 expect; in check_l3cc_table() local 215 for_each_l3cc(expect, table, i) { in check_l3cc_table() 216 if (!mcr_range(engine->i915, reg) && **vaddr != expect) { in check_l3cc_table() 218 engine->name, i, **vaddr, expect); in check_l3cc_table()
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | compiler.h | 18 int expect, int is_constant); 23 #define __branch_check__(x, expect, is_constant) ({ \ argument 33 ______r = __builtin_expect(!!(x), expect); \ 35 expect, is_constant); \
|