Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 25 of 454) sorted by relevance

12345678910>>...19

/Linux-v4.19/tools/perf/tests/shell/
Drecord+probe_libc_inet_pton.sh31 expected=`mktemp -u /tmp/expected.XXX`
33 echo "ping[][0-9 \.:]+$event_name: \([[:xdigit:]]+\)" > $expected
34 echo ".*inet_pton\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected
38 echo "gaih_inet.*\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected
39 echo "(__GI_)?getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected
40 echo "main\+0x[[:xdigit:]]+[[:space:]]\(.*/bin/ping.*\)$" >> $expected
44 echo "gaih_inet.*\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected
45 echo "getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected
46 echo ".*\+0x[[:xdigit:]]+[[:space:]]\(.*/bin/ping.*\)$" >> $expected
50 echo "getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected
[all …]
/Linux-v4.19/tools/testing/selftests/
Dkselftest_harness.h356 #define ASSERT_EQ(expected, seen) \ argument
357 __EXPECT(expected, seen, ==, 1)
367 #define ASSERT_NE(expected, seen) \ argument
368 __EXPECT(expected, seen, !=, 1)
378 #define ASSERT_LT(expected, seen) \ argument
379 __EXPECT(expected, seen, <, 1)
389 #define ASSERT_LE(expected, seen) \ argument
390 __EXPECT(expected, seen, <=, 1)
400 #define ASSERT_GT(expected, seen) \ argument
401 __EXPECT(expected, seen, >, 1)
[all …]
/Linux-v4.19/scripts/kconfig/tests/
Dconftest.py220 def _read_and_compare(self, compare, expected): argument
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
245 return self._contains('config', expected)
247 def config_matches(self, expected): argument
253 return self._matches('config', expected)
[all …]
/Linux-v4.19/tools/testing/selftests/powerpc/pmu/ebb/
Dreg_access_test.c18 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()
Dcycles_with_mmcr2_test.c25 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()
Dinstruction_count_test.c28 int64_t difference, expected; in do_count_loop() local
46 expected = instructions + overhead; in do_count_loop()
47 difference = event->result.value - expected; in do_count_loop()
52 printf("Expected %lu\n", expected); in do_count_loop()
/Linux-v4.19/tools/testing/selftests/bpf/
Dtest_select_reuseport.c232 struct data_check expected = {}, result; in check_data() local
248 expected.len = MIN_TCPHDR_LEN; in check_data()
249 expected.ip_protocol = IPPROTO_TCP; in check_data()
251 expected.len = UDPHDR_LEN; in check_data()
252 expected.ip_protocol = IPPROTO_UDP; in check_data()
256 expected.eth_protocol = htons(ETH_P_IPV6); in check_data()
257 expected.bind_inany = !srv_sa.v6.sin6_addr.s6_addr32[3] && in check_data()
262 memcpy(&expected.skb_addrs[0], cli_sa.v6.sin6_addr.s6_addr32, in check_data()
264 memcpy(&expected.skb_addrs[4], &in6addr_loopback, in check_data()
266 expected.skb_ports[0] = cli_sa.v6.sin6_port; in check_data()
[all …]
Dtest_offload.py165 def bpftool_prog_list(expected=None, ns=""): argument
171 if expected is not None:
172 if len(progs) != expected:
174 (len(progs), expected))
177 def bpftool_map_list(expected=None, ns=""): argument
183 if expected is not None:
184 if len(maps) != expected:
186 (len(maps), expected))
189 def bpftool_prog_list_wait(expected=0, n_retry=20): argument
192 if nprogs == expected:
[all …]
Dtest_tcpbpf_user.c19 #define EXPECT_EQ(expected, actual, fmt) \ argument
21 if ((expected) != (actual)) { \
25 (actual), (expected)); \
/Linux-v4.19/tools/testing/selftests/ftrace/test.d/ftrace/
Dfunc_set_ftrace_file.tc133 DIFF=`diff $TMPDIR/actual $TMPDIR/expected`
138 cat available_filter_functions | cut -d' ' -f1 | grep 'lock' | sort -u > $TMPDIR/expected
143 grep -v 'try.*lock$' $TMPDIR/expected > $TMPDIR/expected2
144 mv $TMPDIR/expected2 $TMPDIR/expected
149 grep -v '^m.*lock$' $TMPDIR/expected > $TMPDIR/expected2
150 mv $TMPDIR/expected2 $TMPDIR/expected
155 grep -v '^c.*unlock' $TMPDIR/expected > $TMPDIR/expected2
156 mv $TMPDIR/expected2 $TMPDIR/expected
161 > $TMPDIR/expected
165 rm $TMPDIR/expected
/Linux-v4.19/tools/perf/tests/
Dhists_cumulate.c176 static int do_test(struct hists *hists, struct result *expected, size_t nr_expected, in do_test() argument
209 TEST_ASSERT_VAL(buf, he->stat.period == expected[i].self && in do_test()
210 !strcmp(COMM(he), expected[i].comm) && in do_test()
211 !strcmp(DSO(he), expected[i].dso) && in do_test()
212 !strcmp(SYM(he), expected[i].sym)); in do_test()
215 TEST_ASSERT_VAL(buf, he->stat_acc->period == expected[i].children); in do_test()
268 struct result expected[] = { in test1() local
291 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); in test1()
366 struct result expected[] = { in test2() local
438 err = do_test(hists, expected, ARRAY_SIZE(expected), in test2()
[all …]
Dopenat-syscall-all-cpus.c98 unsigned int expected; in test__openat_syscall_event_on_all_cpus() local
109 expected = nr_openat_calls + cpu; in test__openat_syscall_event_on_all_cpus()
110 if (perf_counts(evsel->counts, cpu, 0)->val != expected) { in test__openat_syscall_event_on_all_cpus()
112 expected, cpus->map[cpu], perf_counts(evsel->counts, cpu, 0)->val); in test__openat_syscall_event_on_all_cpus()
/Linux-v4.19/lib/
Dpercpu_test.c4 #define CHECK(native, pcp, expected) \ argument
6 WARN((native) != (expected), \
9 (long long)(expected), (long long)(expected)); \
10 WARN(__this_cpu_read(pcp) != (expected), \
13 (long long)(expected), (long long)(expected)); \
Dglobtest.c16 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()
/Linux-v4.19/tools/testing/selftests/networking/timestamping/
Drxtimestamp.c44 struct tstamps expected; member
139 if (t->expected.tstamp) in print_test_case()
141 if (t->expected.tstampns) in print_test_case()
143 if (t->expected.swtstamp || t->expected.hwtstamp) { in print_test_case()
145 if (t->expected.swtstamp) in print_test_case()
147 if (t->expected.swtstamp && t->expected.hwtstamp) in print_test_case()
149 if (t->expected.hwtstamp) in print_test_case()
169 bool do_recv(int rcv, int read_size, struct tstamps expected) in do_recv() argument
227 if (expected.field != actual.field) { \ in do_recv()
228 if (expected.field) \ in do_recv()
[all …]
/Linux-v4.19/arch/arc/include/asm/
Dcmpxchg.h20 __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) in __cmpxchg() argument
38 "ir"(expected), in __cmpxchg()
50 __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) in __cmpxchg() argument
61 if (prev == expected) in __cmpxchg()
70 __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) in __cmpxchg() argument
77 write_aux_reg(CTOP_AUX_GPA1, expected); in __cmpxchg()
/Linux-v4.19/tools/testing/selftests/powerpc/vphn/
Dtest-vphn.c24 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-v4.19/include/linux/
Dbcm963xx_nvram.h84 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-v4.19/arch/riscv/kernel/
Dftrace.c14 unsigned int *expected) in ftrace_check_current_call() argument
20 if (!expected) in ftrace_check_current_call()
21 expected = nops; in ftrace_check_current_call()
34 if (memcmp(expected, replaced, sizeof(replaced))) { in ftrace_check_current_call()
36 (void *)hook_pos, expected[0], expected[1], replaced[0], in ftrace_check_current_call()
/Linux-v4.19/drivers/gpu/drm/i915/
Di915_cmd_parser.c168 u32 expected; member
230 .expected = 0,
237 .expected = 0,
260 .expected = 0,
267 .expected = 0,
273 .expected = 0,
279 .expected = 0,
287 .expected = 0,
296 .expected = 0,
302 .expected = 0,
[all …]
/Linux-v4.19/arch/um/drivers/
Dnet_user.c52 int remain, ret, expected; in read_output() local
67 expected = sizeof(remain); in read_output()
73 expected = (remain < len) ? remain : len; in read_output()
74 ret = read(fd, output, expected); in read_output()
75 if (ret != expected) { in read_output()
92 "%d of %d bytes\n", str, ret, expected); in read_output()
/Linux-v4.19/tools/testing/selftests/powerpc/copyloops/
Dexc_validate.c62 unsigned long got, expected; in do_one_test() local
65 expected = test_copy_tofrom_user_reference(dstp, srcp, len); in do_one_test()
67 if (got != expected) { in do_one_test()
70 srcp, dstp, len, got, expected); in do_one_test()
/Linux-v4.19/tools/testing/selftests/powerpc/pmu/
Dcount_instructions.c32 s64 difference, expected; in do_count_loop() local
45 expected = instructions + overhead; in do_count_loop()
46 difference = events[0].result.value - expected; in do_count_loop()
54 printf("Expected %llu\n", expected); in do_count_loop()
/Linux-v4.19/fs/squashfs/
Dfile.c434 static int squashfs_readpage_fragment(struct page *page, int expected) in squashfs_readpage_fragment() argument
447 squashfs_copy_cache(page, buffer, expected, in squashfs_readpage_fragment()
454 static int squashfs_readpage_sparse(struct page *page, int expected) in squashfs_readpage_sparse() argument
456 squashfs_copy_cache(page, NULL, expected, 0); in squashfs_readpage_sparse()
466 int expected = index == file_end ? in squashfs_readpage() local
487 res = squashfs_readpage_sparse(page, expected); in squashfs_readpage()
489 res = squashfs_readpage_block(page, block, bsize, expected); in squashfs_readpage()
491 res = squashfs_readpage_fragment(page, expected); in squashfs_readpage()
/Linux-v4.19/drivers/media/pci/cx18/
Dcx18-av-firmware.c38 u32 expected, dl_control; in cx18_av_verifyfw() local
57 expected = 0x0f000000 | ((u32)data[addr] << 16) | addr; in cx18_av_verifyfw()
58 if (expected != dl_control) { in cx18_av_verifyfw()
60 FWFILE, expected, dl_control); in cx18_av_verifyfw()

12345678910>>...19