/linux/tools/perf/tests/shell/ |
A 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 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 63 exec 4<$expected [all …]
|
/linux/fs/ext4/ |
A D | inode-test.c | 77 struct timespec64 expected; member 89 .expected = {.tv_sec = -0x80000000LL, .tv_nsec = 0L}, 97 .expected = {.tv_sec = -1LL, .tv_nsec = 0L}, 105 .expected = {0LL, 0L}, 113 .expected = {.tv_sec = 0x7fffffffLL, .tv_nsec = 0L}, 121 .expected = {.tv_sec = 0x80000000LL, .tv_nsec = 0L}, 129 .expected = {.tv_sec = 0xffffffffLL, .tv_nsec = 0L}, 137 .expected = {.tv_sec = 0x100000000LL, .tv_nsec = 0L}, 193 .expected = {.tv_sec = 0x300000000LL, 253 test_param->expected.tv_sec, in inode_test_xtimestamp_decoding() [all …]
|
/linux/tools/testing/selftests/ |
A D | kselftest_harness.h | 447 __EXPECT(expected, #expected, seen, #seen, ==, 1) 458 __EXPECT(expected, #expected, seen, #seen, !=, 1) 469 __EXPECT(expected, #expected, seen, #seen, <, 1) 480 __EXPECT(expected, #expected, seen, #seen, <=, 1) 491 __EXPECT(expected, #expected, seen, #seen, >, 1) 502 __EXPECT(expected, #expected, seen, #seen, >=, 1) 565 __EXPECT(expected, #expected, seen, #seen, ==, 0) 576 __EXPECT(expected, #expected, seen, #seen, !=, 0) 587 __EXPECT(expected, #expected, seen, #seen, <, 0) 598 __EXPECT(expected, #expected, seen, #seen, <=, 0) [all …]
|
/linux/tools/testing/selftests/bpf/ |
A D | test_progs.h | 181 #define ASSERT_EQ(actual, expected, name) ({ \ argument 184 typeof(expected) ___exp = (expected); \ 195 typeof(expected) ___exp = (expected); \ 203 #define ASSERT_LT(actual, expected, name) ({ \ argument 206 typeof(expected) ___exp = (expected); \ 214 #define ASSERT_LE(actual, expected, name) ({ \ argument 217 typeof(expected) ___exp = (expected); \ 228 typeof(expected) ___exp = (expected); \ 239 typeof(expected) ___exp = (expected); \ 250 const char *___exp = expected; \ [all …]
|
A D | test_offload.py | 178 if expected is not None: 179 if len(progs) != expected: 188 if expected is not None: 189 if len(maps) != expected: 197 if nprogs == expected: 205 if nmaps == expected: 409 if expected is not None: 538 if expected is not None: 606 maps = bpftool_map_list(expected=expected) 614 bpftool_prog_list(expected=0) [all …]
|
/linux/scripts/kconfig/tests/ |
A D | conftest.py | 234 def _contains(self, attr, expected): argument 237 expected) 239 def _matches(self, attr, expected): argument 241 expected) 243 def config_contains(self, expected): argument 251 def config_matches(self, expected): argument 257 return self._matches('config', expected) 259 def stdout_contains(self, expected): argument 267 def stdout_matches(self, expected): argument 275 def stderr_contains(self, expected): argument [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | select_reuseport.c | 266 expected.len = MIN_TCPHDR_LEN; in check_data() 267 expected.ip_protocol = IPPROTO_TCP; in check_data() 269 expected.len = UDPHDR_LEN; in check_data() 303 expected.eth_protocol, expected.ip_protocol, in check_data() 304 expected.bind_inany); in check_data() 385 enum result expected) in send_data() argument 401 family, err, errno, expected); in send_data() 407 enum result expected) in do_test() argument 415 expected); in do_test() 423 nev, expected, type, family, in do_test() [all …]
|
A D | flow_dissector.c | 15 #define CHECK_FLOW_KEYS(desc, got, expected) \ argument 29 got.nhoff, expected.nhoff, \ 30 got.thoff, expected.thoff, \ 31 got.addr_proto, expected.addr_proto, \ 32 got.is_frag, expected.is_frag, \ 34 got.is_encap, expected.is_encap, \ 35 got.ip_proto, expected.ip_proto, \ 36 got.n_proto, expected.n_proto, \ 37 got.flow_label, expected.flow_label, \ 38 got.sport, expected.sport, \ [all …]
|
/linux/tools/testing/selftests/powerpc/pmu/ebb/ |
A 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()
|
A D | cycles_with_mmcr2_test.c | 25 uint64_t val, expected[2], actual; in cycles_with_mmcr2() local 49 expected[0] = MMCR2_EXPECTED_1; in cycles_with_mmcr2() 50 expected[1] = MMCR2_EXPECTED_2; in cycles_with_mmcr2() 58 mtspr(SPRN_MMCR2, expected[i % 2]); in cycles_with_mmcr2() 63 if (val != expected[i % 2]) { in cycles_with_mmcr2()
|
/linux/tools/testing/selftests/ftrace/test.d/ftrace/ |
A D | func_set_ftrace_file.tc | 119 DIFF=`diff $TMPDIR/actual $TMPDIR/expected` 124 cat available_filter_functions | cut -d' ' -f1 | grep 'lock' | sort -u > $TMPDIR/expected 129 grep -v 'try.*lock$' $TMPDIR/expected > $TMPDIR/expected2 130 mv $TMPDIR/expected2 $TMPDIR/expected 135 grep -v '^m.*lock$' $TMPDIR/expected > $TMPDIR/expected2 136 mv $TMPDIR/expected2 $TMPDIR/expected 141 grep -v '^c.*unlock' $TMPDIR/expected > $TMPDIR/expected2 142 mv $TMPDIR/expected2 $TMPDIR/expected 147 > $TMPDIR/expected 151 rm $TMPDIR/expected
|
/linux/mm/damon/ |
A D | vaddr-test.h | 136 unsigned long *expected, int nr_expected) in damon_do_test_apply_three_regions() argument 152 KUNIT_EXPECT_EQ(test, r->ar.start, expected[i * 2]); in damon_do_test_apply_three_regions() 153 KUNIT_EXPECT_EQ(test, r->ar.end, expected[i * 2 + 1]); in damon_do_test_apply_three_regions() 174 unsigned long expected[] = {5, 20, 20, 27, 45, 55, in damon_test_apply_three_regions1() local 178 new_three_regions, expected, ARRAY_SIZE(expected)); in damon_test_apply_three_regions1() 196 unsigned long expected[] = {5, 20, 20, 27, 56, 57, in damon_test_apply_three_regions2() local 200 new_three_regions, expected, ARRAY_SIZE(expected)); in damon_test_apply_three_regions2() 220 unsigned long expected[] = {5, 20, 20, 27, 61, 63, in damon_test_apply_three_regions3() local 224 new_three_regions, expected, ARRAY_SIZE(expected)); in damon_test_apply_three_regions3() 245 unsigned long expected[] = {5, 7, 30, 32, 65, 68}; in damon_test_apply_three_regions4() local [all …]
|
/linux/tools/perf/tests/ |
A D | hists_cumulate.c | 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() 269 struct result expected[] = { in test1() local 292 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); in test1() 367 struct result expected[] = { in test2() local 439 err = do_test(hists, expected, ARRAY_SIZE(expected), in test2() 471 struct result expected[] = { in test3() local 497 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); in test3() 591 struct result expected[] = { in test4() local [all …]
|
/linux/lib/ |
A D | test_user_copy.c | 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() 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() 149 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user() 164 memcpy(expected, umem_src, ksize); in test_copy_struct_from_user() 171 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user() [all …]
|
A D | percpu_test.c | 5 #define CHECK(native, pcp, expected) \ argument 7 WARN((native) != (expected), \ 10 (long long)(expected), (long long)(expected)); \ 11 WARN(__this_cpu_read(pcp) != (expected), \ 14 (long long)(expected), (long long)(expected)); \
|
A D | globtest.c | 16 bool expected; member 19 static bool __pure __init test(char const *pat, char const *str, bool expected) in test() argument 22 bool success = match == expected; in test() 144 bool expected = *p++ & 1; in glob_init() local 148 successes += test(pat, p, expected); in glob_init()
|
A D | test_strscpy.c | 29 static int __init tc(char *src, int count, int expected, in tc() argument 55 if (expected > max_expected) { 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()
|
/linux/tools/testing/selftests/damon/ |
A D | _debugfs_common.sh | 9 expected=$5 12 if [ $? -ne "$expected" ] 14 echo "writing $content to $file doesn't return $expected" 32 expected=$3 36 if [ "$content" != "$expected" ] 38 echo "reading $file expected $expected but $content"
|
/linux/tools/testing/selftests/net/ |
A D | rxtimestamp.c | 45 struct tstamps expected; member 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() 234 if (expected.field) \ in do_recv() [all …]
|
/linux/tools/testing/selftests/exec/ |
A D | non-regular.c | 44 int expected; in FIXTURE_VARIANT() local 76 .expected = ELOOP, in FIXTURE_VARIANT_ADD() 91 .expected = EACCES, in FIXTURE_VARIANT_ADD() 114 .expected = EACCES, in FIXTURE_VARIANT_ADD() 125 .expected = EACCES, in FIXTURE_VARIANT_ADD() 143 .expected = EACCES, in FIXTURE_VARIANT_ADD() 166 EXPECT_EQ(errno, variant->expected); in TEST_F()
|
/linux/tools/testing/selftests/powerpc/vphn/ |
A D | test-vphn.c | 24 u32 expected[VPHN_ASSOC_BUFSIZE]; member 374 if (len != test->expected[0]) { in test_one() 375 printf("expected %d elements, got %d\n", test->expected[0], in test_one() 382 if (val != test->expected[i]) { in test_one() 384 test->expected[i]); in test_one()
|
/linux/arch/riscv/kernel/ |
A D | ftrace.c | 28 unsigned int *expected) in ftrace_check_current_call() argument 34 if (!expected) in ftrace_check_current_call() 35 expected = nops; in ftrace_check_current_call() 49 if (memcmp(expected, replaced, sizeof(replaced))) { in ftrace_check_current_call() 51 (void *)hook_pos, expected[0], expected[1], replaced[0], in ftrace_check_current_call()
|
/linux/include/linux/ |
A D | bcm963xx_nvram.h | 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/drivers/gpu/drm/i915/ |
A D | i915_cmd_parser.c | 166 u32 expected; member 227 .expected = 0, 234 .expected = 0, 257 .expected = 0, 264 .expected = 0, 270 .expected = 0, 276 .expected = 0, 284 .expected = 0, 293 .expected = 0, 299 .expected = 0, [all …]
|
/linux/tools/testing/selftests/clone3/ |
A D | clone3.c | 100 static void test_clone3(uint64_t flags, size_t size, int expected, in test_clone3() argument 110 getpid(), ret, expected); in test_clone3() 111 if (ret != expected) in test_clone3() 114 getpid(), ret, expected); in test_clone3() 118 getpid(), ret, expected); in test_clone3()
|