/linux-5.10/scripts/kconfig/tests/ |
D | conftest.py | 220 def _read_and_compare(self, compare, expected): argument 224 expected: file that contains the expected data 226 with open(os.path.join(self._test_dir, expected)) as f: 230 def _contains(self, attr, expected): argument 233 expected) 235 def _matches(self, attr, expected): argument 237 expected) 239 def config_contains(self, expected): argument 240 """Check if resulted configuration contains expected data. 242 expected: file that contains the expected data [all …]
|
/linux-5.10/tools/testing/selftests/ |
D | kselftest_harness.h | 167 * Defines a test by name and the expected term signal. 437 * @expected: expected value 440 * ASSERT_EQ(expected, measured): expected == measured 442 #define ASSERT_EQ(expected, seen) \ argument 443 __EXPECT(expected, #expected, seen, #seen, ==, 1) 448 * @expected: expected value 451 * ASSERT_NE(expected, measured): expected != measured 453 #define ASSERT_NE(expected, seen) \ argument 454 __EXPECT(expected, #expected, seen, #seen, !=, 1) 459 * @expected: expected value [all …]
|
/linux-5.10/tools/testing/selftests/ftrace/test.d/ftrace/ |
D | func_set_ftrace_file.tc | 68 fail "Expected only $ALL_FUNCS" 73 fail "Expected $ALL_FUNCS and $FUNC1:traceoff:unlimited" 78 fail "Expected $FUNC1 and $FUNC1:traceoff:unlimited" 83 fail "Expected $FUNC1 $FUNC2 and $FUNC1:traceoff:unlimited" 88 fail "Expected $FUNC1 $FUNC2 $FUNC1:traceoff:unlimited and $FUNC2:traceoff:unlimited" 93 fail "Expected $FUNC1 $FUNC1:traceoff:unlimited and $FUNC2:traceoff:unlimited" 98 fail "Expected $ALL_FUNCS $FUNC1:traceoff:unlimited and $FUNC2:traceoff:unlimited" 104 fail "Expected $ALL_FUNCS" 109 fail "Expected $FUNC1" 114 fail "Expected $FUNC1 and $FUNC2" [all …]
|
/linux-5.10/tools/testing/selftests/livepatch/ |
D | test-shadow-vars.sh | 21 $MOD_TEST: got expected NULL result 35 $MOD_TEST: got expected PTR3 -> PTR2 result 37 $MOD_TEST: got expected PTR6 -> PTR5 result 39 $MOD_TEST: got expected PTR8 -> PTR7 result 41 $MOD_TEST: got expected PTR11 -> PTR10 result 43 $MOD_TEST: got expected PTR13 -> PTR12 result 45 $MOD_TEST: got expected PTR16 -> PTR15 result 47 $MOD_TEST: got expected PTR3 -> PTR2 result 49 $MOD_TEST: got expected PTR8 -> PTR7 result 51 $MOD_TEST: got expected PTR13 -> PTR12 result [all …]
|
/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn21/ |
D | dcn21_hubp.c | 291 …DC_LOG_DEBUG("DML Validation | HUBPRET_CONTROL:DET_BUF_PLANE1_BASE_ADDRESS - Expected: %u Actual:… in hubp21_validate_dml_output() 294 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:DRQ_EXPANSION_MODE - Expected: %u Actual: %u\n", in hubp21_validate_dml_output() 297 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:MRQ_EXPANSION_MODE - Expected: %u Actual: %u\n", in hubp21_validate_dml_output() 300 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:DET_BUF_PLANE1_BASE_ADDRESS - Expected: %u Actu… in hubp21_validate_dml_output() 303 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:CRQ_EXPANSION_MODE - Expected: %u Actual: %u\n", in hubp21_validate_dml_output() 307 DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:CHUNK_SIZE - Expected: %u Actual: %u\n", in hubp21_validate_dml_output() 310 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:MIN_CHUNK_SIZE - Expected: %u Actual: %u\… in hubp21_validate_dml_output() 313 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:META_CHUNK_SIZE - Expected: %u Actual: %u… in hubp21_validate_dml_output() 316 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:MIN_META_CHUNK_SIZE - Expected: %u Actual… in hubp21_validate_dml_output() 319 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:DPTE_GROUP_SIZE - Expected: %u Actual: %u… in hubp21_validate_dml_output() [all …]
|
/linux-5.10/tools/perf/tests/shell/ |
D | record+probe_libc_inet_pton.sh | 33 expected=`mktemp -u /tmp/expected.XXX` 35 echo "ping[][0-9 \.:]+$event_name: \([[:xdigit:]]+\)" > $expected 36 echo ".*inet_pton\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected 40 echo "gaih_inet.*\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected 41 echo "(__GI_)?getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected 42 echo "main\+0x[[:xdigit:]]+[[:space:]]\(.*/bin/ping.*\)$" >> $expected 46 echo "gaih_inet.*\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected 47 echo "getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected 48 echo ".*(\+0x[[:xdigit:]]+|\[unknown\])[[:space:]]\(.*/bin/ping.*\)$" >> $expected 52 echo "getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected [all …]
|
/linux-5.10/fs/ext4/ |
D | inode-test.c | 77 struct timespec64 expected; member 110 .expected = {.tv_sec = -0x80000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 118 .expected = {.tv_sec = -1LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 126 .expected = {0LL, 0L}, in inode_test_xtimestamp_decoding() 134 .expected = {.tv_sec = 0x7fffffffLL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 142 .expected = {.tv_sec = 0x80000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 150 .expected = {.tv_sec = 0xffffffffLL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 158 .expected = {.tv_sec = 0x100000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 166 .expected = {.tv_sec = 0x17fffffffLL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 174 .expected = {.tv_sec = 0x180000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() [all …]
|
/linux-5.10/tools/testing/selftests/powerpc/pmu/ebb/ |
D | event_attributes_test.c | 23 /* Expected to succeed */ in event_attributes() 30 /* Expected to fail, no PMC specified */ in event_attributes() 37 /* Expected to fail, not exclusive */ in event_attributes() 44 /* Expected to fail, sets freq */ in event_attributes() 51 /* Expected to fail, sets sample_period */ in event_attributes() 58 /* Expected to fail, sets enable_on_exec */ in event_attributes() 65 /* Expected to fail, sets inherit */ in event_attributes() 76 /* Expected to succeed */ in event_attributes() 88 /* Expected to fail, event doesn't request EBB, leader does */ in event_attributes() 103 /* Expected to fail, leader doesn't request EBB */ in event_attributes() [all …]
|
D | reg_access_test.c | 18 uint64_t val, expected; in reg_access() local 22 expected = 0x8000000100000000ull; in reg_access() 23 mtspr(SPRN_BESCR, expected); in reg_access() 26 FAIL_IF(val != expected); in reg_access() 28 expected = 0x0000000001000000ull; in reg_access() 29 mtspr(SPRN_EBBHR, expected); in reg_access() 32 FAIL_IF(val != expected); in reg_access()
|
/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | select_reuseport.c | 249 struct data_check expected = {}, result; in check_data() local 265 expected.len = MIN_TCPHDR_LEN; in check_data() 266 expected.ip_protocol = IPPROTO_TCP; in check_data() 268 expected.len = UDPHDR_LEN; in check_data() 269 expected.ip_protocol = IPPROTO_UDP; in check_data() 273 expected.eth_protocol = htons(ETH_P_IPV6); in check_data() 274 expected.bind_inany = !srv_sa.v6.sin6_addr.s6_addr32[3] && in check_data() 279 memcpy(&expected.skb_addrs[0], cli_sa.v6.sin6_addr.s6_addr32, in check_data() 281 memcpy(&expected.skb_addrs[4], &in6addr_loopback, in check_data() 283 expected.skb_ports[0] = cli_sa.v6.sin6_port; in check_data() [all …]
|
/linux-5.10/tools/testing/selftests/bpf/progs/ |
D | btf_dump_test_case_padding.c | 9 /* ----- START-EXPECTED-OUTPUT ----- */ 16 /* ------ END-EXPECTED-OUTPUT ------ */ 18 /* ----- START-EXPECTED-OUTPUT ----- */ 27 /* ------ END-EXPECTED-OUTPUT ------ */ 35 /* ----- START-EXPECTED-OUTPUT ----- */ 46 /* ------ END-EXPECTED-OUTPUT ------ */ 56 /* ----- START-EXPECTED-OUTPUT ----- */ 72 /* ------ END-EXPECTED-OUTPUT ------ */ 79 /* ----- START-EXPECTED-OUTPUT ----- */ 93 /* ------ END-EXPECTED-OUTPUT ------ */
|
D | btf_dump_test_case_bitfields.c | 10 /* ----- START-EXPECTED-OUTPUT ----- */ 26 /* ------ END-EXPECTED-OUTPUT ------ */ 41 /* ----- START-EXPECTED-OUTPUT ----- */ 54 /* ------ END-EXPECTED-OUTPUT ------ */ 69 /* ----- START-EXPECTED-OUTPUT ----- */ 78 /* ------ END-EXPECTED-OUTPUT ------ */
|
/linux-5.10/tools/testing/selftests/bpf/ |
D | test_offload.py | 172 def bpftool_prog_list(expected=None, ns=""): argument 178 if expected is not None: 179 if len(progs) != expected: 180 fail(True, "%d BPF programs loaded, expected %d" % 181 (len(progs), expected)) 184 def bpftool_map_list(expected=None, ns=""): argument 188 if expected is not None: 189 if len(maps) != expected: 190 fail(True, "%d BPF maps loaded, expected %d" % 191 (len(maps), expected)) [all …]
|
/linux-5.10/lib/ |
D | percpu_test.c | 4 /* validate @native and @pcp counter values match @expected */ 5 #define CHECK(native, pcp, expected) \ argument 7 WARN((native) != (expected), \ 8 "raw %ld (0x%lx) != expected %lld (0x%llx)", \ 10 (long long)(expected), (long long)(expected)); \ 11 WARN(__this_cpu_read(pcp) != (expected), \ 12 "pcp %ld (0x%lx) != expected %lld (0x%llx)", \ 14 (long long)(expected), (long long)(expected)); \
|
D | test_strscpy.c | 19 * @expected: Expected return value from call to strscpy_pad() 21 * @chars: Number of characters from the src string expected to be 23 * @pad: Number of pad characters expected (in the tail of dst buffer). 29 static int __init tc(char *src, int count, int expected, in tc() argument 55 if (expected > max_expected) { in tc() 56 pr_warn("expected (%d) is bigger than can possibly be returned (%d)", in tc() 57 expected, max_expected); in tc() 61 if ((written) != (expected)) { in tc() 62 pr_err("%d != %d (written, expected)\n", written, expected); in tc() 125 /* tc(src, count, expected, chars, terminator, pad) */ in selftest()
|
D | test_user_copy.c | 94 int expected = is_zeroed(kmem + start, len); in test_check_nonzero_user() local 96 ret |= test(retval != expected, in test_check_nonzero_user() 98 retval, expected, start, end); in test_check_nonzero_user() 109 char *umem_src = NULL, *expected = NULL; in test_copy_struct_from_user() local 117 expected = kmalloc(size, GFP_KERNEL); in test_copy_struct_from_user() 118 ret = test(expected == NULL, "kmalloc failed"); in test_copy_struct_from_user() 131 memcpy(expected, umem_src, ksize); in test_copy_struct_from_user() 136 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user() 143 memcpy(expected, umem_src, usize); in test_copy_struct_from_user() 144 memset(expected + usize, 0x0, ksize - usize); in test_copy_struct_from_user() [all …]
|
/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn20/ |
D | dcn20_hubp.c | 1313 …DC_LOG_DEBUG("DML Validation | HUBPRET_CONTROL:DET_BUF_PLANE1_BASE_ADDRESS - Expected: %u Actual:… in hubp2_validate_dml_output() 1316 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:DRQ_EXPANSION_MODE - Expected: %u Actual: %u\n", in hubp2_validate_dml_output() 1319 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:MRQ_EXPANSION_MODE - Expected: %u Actual: %u\n", in hubp2_validate_dml_output() 1322 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:DET_BUF_PLANE1_BASE_ADDRESS - Expected: %u Actu… in hubp2_validate_dml_output() 1325 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:CRQ_EXPANSION_MODE - Expected: %u Actual: %u\n", in hubp2_validate_dml_output() 1329 DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:CHUNK_SIZE - Expected: %u Actual: %u\n", in hubp2_validate_dml_output() 1332 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:MIN_CHUNK_SIZE - Expected: %u Actual: %u\… in hubp2_validate_dml_output() 1335 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:META_CHUNK_SIZE - Expected: %u Actual: %u… in hubp2_validate_dml_output() 1338 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:MIN_META_CHUNK_SIZE - Expected: %u Actual… in hubp2_validate_dml_output() 1341 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:DPTE_GROUP_SIZE - Expected: %u Actual: %u… in hubp2_validate_dml_output() [all …]
|
/linux-5.10/tools/testing/selftests/net/ |
D | psock_snd.sh | 48 echo "raw csum_off with bad offset (expected to fail)" 60 echo "raw mtu size + 1 (expected to fail)" 68 echo "raw vlan mtu size + 1 (expected to fail)" 74 echo "dgram mtu size + 1 (expected to fail)" 77 echo "raw truncate hlen (expected to fail: does not arrive)" 80 echo "raw truncate hlen - 1 (expected to fail: EINVAL)" 89 echo "raw gso min size - 1 (expected to fail)" 95 echo "raw gso max size + 1 (expected to fail)"
|
D | rxtimestamp.c | 45 struct tstamps expected; member 144 printf("} expected cmsgs: {"); in print_test_case() 145 if (t->expected.tstamp) in print_test_case() 147 if (t->expected.tstampns) in print_test_case() 149 if (t->expected.swtstamp || t->expected.hwtstamp) { in print_test_case() 151 if (t->expected.swtstamp) in print_test_case() 153 if (t->expected.swtstamp && t->expected.hwtstamp) in print_test_case() 155 if (t->expected.hwtstamp) in print_test_case() 175 bool do_recv(int rcv, int read_size, struct tstamps expected) in do_recv() argument 233 if (expected.field != actual.field) { \ in do_recv() [all …]
|
/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/ |
D | sharedbuffer.sh | 113 check_err $? "Expected iPool($SB_POOL_ING) max occupancy to be $exp_max_occ, but got $max_occ" 118 check_err $? "Expected iPool($SB_POOL_ING) max occupancy to be $exp_max_occ, but got $max_occ" 123 check_err $? "Expected ePool($SB_POOL_EGR_CPU) max occupancy to be $exp_max_occ, but got $max_occ" 141 check_err $? "Expected ingress TC($SB_ITC) max occupancy to be $exp_max_occ, but got $max_occ" 146 check_err $? "Expected ingress TC($SB_ITC) max occupancy to be $exp_max_occ, but got $max_occ" 151 …check_err $? "Expected egress TC($SB_ITC_CPU_IP) max occupancy to be $exp_max_occ, but got $max_oc… 172 check_err $? "Expected ingress TC($SB_ITC) max occupancy to be $exp_max_occ, but got $max_occ" 177 check_err $? "Expected ingress TC($SB_ITC) max occupancy to be $exp_max_occ, but got $max_occ" 182 check_err $? "Expected egress TC($SB_ITC_IP2ME) max occupancy to be $exp_max_occ, but got $max_occ"
|
D | devlink_trap_policer.sh | 224 …check_err $? "Expected rate 1000 pps, got $rate pps, which is $pct% off. Required accuracy is +-10… 225 log_info "Expected rate 1000 pps, measured rate $rate pps" 229 check_err $? "Expected non-zero policer drop rate, got 0" 244 check_err $? "Expected zero policer drop rate, got a drop rate of $drop_rate pps" 260 check_err $? "Expected rate higher than 1000 pps, got $rate pps" 265 check_err $? "Expected zero policer drop rate, got a drop rate of $drop_rate pps" 308 check_err $? "Expected burst size of 16 packets, got $rx packets" 309 log_info "Expected burst size of 16 packets, measured burst size of $rx packets" 313 check_err $? "Expected zero policer drops, got $drop" 332 check_err $? "Expected burst size of 64 packets, got $rx packets" [all …]
|
/linux-5.10/drivers/gpu/drm/i915/selftests/ |
D | i915_perf.c | 197 u64 expected; in live_noa_delay() local 208 expected = atomic64_read(&stream->perf->noa_programming_delay); in live_noa_delay() 260 pr_info("CPU delay: %lluns, expected %lluns\n", in live_noa_delay() 261 ktime_sub(t1, t0), expected); in live_noa_delay() 266 pr_info("GPU delay: %uns, expected %lluns\n", in live_noa_delay() 267 delay, expected); in live_noa_delay() 269 if (4 * delay < 3 * expected || 2 * delay > 3 * expected) { in live_noa_delay() 270 pr_err("GPU delay [%uus] outside of expected threshold! [%lluus, %lluus]\n", in live_noa_delay() 272 div_u64(3 * expected, 4000), in live_noa_delay() 273 div_u64(3 * expected, 2000)); in live_noa_delay() [all …]
|
/linux-5.10/include/linux/ |
D | bcm963xx_nvram.h | 75 * @expected_out: optional pointer to store expected checksum value 84 u32 expected, actual; in bcm963xx_nvram_checksum() local 88 expected = nvram->checksum_v4; in bcm963xx_nvram_checksum() 91 expected = nvram->checksum_v5; in bcm963xx_nvram_checksum() 105 *expected_out = expected; in bcm963xx_nvram_checksum() 110 return expected == actual ? 0 : -EINVAL; in bcm963xx_nvram_checksum()
|
/linux-5.10/tools/perf/tests/ |
D | hists_cumulate.c | 177 static int do_test(struct hists *hists, struct result *expected, size_t nr_expected, in do_test() argument 210 TEST_ASSERT_VAL(buf, he->stat.period == expected[i].self && in do_test() 211 !strcmp(COMM(he), expected[i].comm) && in do_test() 212 !strcmp(DSO(he), expected[i].dso) && in do_test() 213 !strcmp(SYM(he), expected[i].sym)); in do_test() 216 TEST_ASSERT_VAL(buf, he->stat_acc->period == expected[i].children); in do_test() 224 TEST_ASSERT_VAL("callchains expected", !RB_EMPTY_ROOT(root)); in do_test() 255 * expected output: in test1() 269 struct result expected[] = { in test1() local 292 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); in test1() [all …]
|
/linux-5.10/lib/kunit/ |
D | assert.c | 57 KUNIT_SUBTEST_INDENT "Expected %s to be true, but is false\n", in kunit_unary_assert_format() 61 KUNIT_SUBTEST_INDENT "Expected %s to be false, but is true\n", in kunit_unary_assert_format() 76 KUNIT_SUBTEST_INDENT "Expected %s is not null, but is\n", in kunit_ptr_not_err_assert_format() 80 KUNIT_SUBTEST_INDENT "Expected %s is not error, but is: %ld\n", in kunit_ptr_not_err_assert_format() 96 KUNIT_SUBTEST_INDENT "Expected %s %s %s, but\n", in kunit_binary_assert_format() 118 KUNIT_SUBTEST_INDENT "Expected %s %s %s, but\n", in kunit_binary_ptr_assert_format() 140 KUNIT_SUBTEST_INDENT "Expected %s %s %s, but\n", in kunit_binary_str_assert_format()
|