/Linux-v5.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 | 50 expect=$3 53 cnt=$(ip netns exec $ns nft list counter inet filter "$name" | grep -q "$expect") 55 echo "ERROR: counter $name in $ns has unexpected value (expected $expect)" 1>&2 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" [all …]
|
/Linux-v5.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:" 89 if grep -E -qi "$expect" "$LOG" ; then 90 echo "$test: saw '$expect': ok" 97 echo "$test: missing '$expect': [FAIL]"
|
/Linux-v5.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 | 155 #define RSEQ_ASM_OP_CMPEQ(var, expect, label) \ argument 157 CMP_WORD "cr7, %%r17, %[" __rseq_str(expect) "]\n\t" \ 207 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev() argument 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() 386 int rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument 405 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in rseq_cmpeqv_trystorev_storev() 411 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in rseq_cmpeqv_trystorev_storev() 429 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev() [all …]
|
D | rseq-x86.h | 114 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev() argument 146 [expect] "r" (expect), in rseq_cmpeqv_storev() 340 int rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument 381 [expect] "r" (expect), in rseq_cmpeqv_trystorev_storev() 406 int rseq_cmpeqv_trystorev_storev_release(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev_release() argument 410 return rseq_cmpeqv_trystorev_storev(v, expect, v2, newv2, newv, cpu); in rseq_cmpeqv_trystorev_storev_release() 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() 484 int rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, in rseq_cmpeqv_trymemcpy_storev() argument 561 [expect] "r" (expect), in rseq_cmpeqv_trymemcpy_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-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() 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() [all …]
|
D | rseq-arm.h | 153 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev() argument 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() [all …]
|
D | rseq-mips.h | 160 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev() argument 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() [all …]
|
/Linux-v5.10/tools/testing/selftests/net/forwarding/ |
D | mirror_lib.sh | 30 local expect=$1; shift 39 ((expect <= delta && delta <= expect + 2)) 40 check_err $? "Expected to capture $expect packets, got $delta." 45 local expect=$1; shift 52 mirror_test v$h1 $ip1 $ip2 $dev 100 $expect 53 mirror_test v$h2 $ip2 $ip1 $dev 100 $expect 99 local expect=$1; shift 110 mirror_test v$h1 $ip1 $ip2 $dev 100 $expect 111 mirror_test v$h2 $ip2 $ip1 $dev 100 $expect
|
/Linux-v5.10/kernel/kcsan/ |
D | kcsan-test.c | 152 typeof(observed.lines) expect; in report_matches() 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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.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()
|
D | ipv6_flowlabel.c | 74 static void do_recv(int fd, bool with_flowlabel, uint32_t expect) in do_recv() argument 76 char control[CMSG_SPACE(sizeof(expect))]; in do_recv() 117 if (expect != FLOWLABEL_WILDCARD && expect != flowlabel) in do_recv() 119 flowlabel, expect); in do_recv()
|
/Linux-v5.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()
|
/Linux-v5.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 …]
|
/Linux-v5.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 | 161 local expect 163 expect=10 165 expect=0 169 ((expect == delta)) 170 check_err $? "DSCP $key: Expected to capture $expect packets, got $delta."
|
/Linux-v5.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()
|
/Linux-v5.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()
|
/Linux-v5.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 …]
|
/Linux-v5.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); \
|
/Linux-v5.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()
|
/Linux-v5.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)
|