Home
last modified time | relevance | path

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

1234

/tools/perf/tests/shell/
Drecord+probe_libc_inet_pton.sh33 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 …]
/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()
/tools/testing/selftests/bpf/
Dtest_progs.h147 #define ASSERT_EQ(actual, expected, name) ({ \ argument
150 typeof(expected) ___exp = (expected); \
158 #define ASSERT_NEQ(actual, expected, name) ({ \ argument
161 typeof(expected) ___exp = (expected); \
169 #define ASSERT_LT(actual, expected, name) ({ \ argument
172 typeof(expected) ___exp = (expected); \
180 #define ASSERT_LE(actual, expected, name) ({ \ argument
183 typeof(expected) ___exp = (expected); \
191 #define ASSERT_GT(actual, expected, name) ({ \ argument
194 typeof(expected) ___exp = (expected); \
[all …]
Dtest_offload.py172 def bpftool_prog_list(expected=None, ns=""): argument
178 if expected is not None:
179 if len(progs) != expected:
181 (len(progs), expected))
184 def bpftool_map_list(expected=None, ns=""): argument
188 if expected is not None:
189 if len(maps) != expected:
191 (len(maps), expected))
194 def bpftool_prog_list_wait(expected=0, n_retry=20): argument
197 if nprogs == expected:
[all …]
/tools/testing/selftests/
Dkselftest_harness.h446 #define ASSERT_EQ(expected, seen) \ argument
447 __EXPECT(expected, #expected, seen, #seen, ==, 1)
457 #define ASSERT_NE(expected, seen) \ argument
458 __EXPECT(expected, #expected, seen, #seen, !=, 1)
468 #define ASSERT_LT(expected, seen) \ argument
469 __EXPECT(expected, #expected, seen, #seen, <, 1)
479 #define ASSERT_LE(expected, seen) \ argument
480 __EXPECT(expected, #expected, seen, #seen, <=, 1)
490 #define ASSERT_GT(expected, seen) \ argument
491 __EXPECT(expected, #expected, seen, #seen, >, 1)
[all …]
/tools/testing/selftests/ftrace/test.d/ftrace/
Dfunc_set_ftrace_file.tc119 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
Dfunc-filter-glob.tc14 cut -f1 -d" " available_filter_functions | grep "$2" > $TMPDIR/expected
15 DIFF=`diff $TMPDIR/actual $TMPDIR/expected`
/tools/testing/selftests/damon/
Ddebugfs_attrs.sh9 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"
/tools/testing/selftests/bpf/prog_tests/
Dselect_reuseport.c250 struct data_check expected = {}, result; in check_data() local
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()
270 expected.ip_protocol = IPPROTO_UDP; in check_data()
274 expected.eth_protocol = htons(ETH_P_IPV6); in check_data()
275 expected.bind_inany = !srv_sa.v6.sin6_addr.s6_addr32[3] && in check_data()
280 memcpy(&expected.skb_addrs[0], cli_sa.v6.sin6_addr.s6_addr32, in check_data()
282 memcpy(&expected.skb_addrs[4], &in6addr_loopback, in check_data()
284 expected.skb_ports[0] = cli_sa.v6.sin6_port; in check_data()
[all …]
Dflow_dissector.c15 #define CHECK_FLOW_KEYS(desc, got, expected) \ argument
16 CHECK_ATTR(memcmp(&got, &expected, sizeof(got)) != 0, \
29 got.nhoff, expected.nhoff, \
30 got.thoff, expected.thoff, \
31 got.addr_proto, expected.addr_proto, \
32 got.is_frag, expected.is_frag, \
33 got.is_first_frag, expected.is_first_frag, \
34 got.is_encap, expected.is_encap, \
35 got.ip_proto, expected.ip_proto, \
36 got.n_proto, expected.n_proto, \
[all …]
/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()
/tools/perf/tests/
Dhists_cumulate.c177 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()
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()
[all …]
Dopenat-syscall-all-cpus.c100 unsigned int expected; in test__openat_syscall_event_on_all_cpus() local
111 expected = nr_openat_calls + cpu; in test__openat_syscall_event_on_all_cpus()
112 if (perf_counts(evsel->counts, cpu, 0)->val != expected) { in test__openat_syscall_event_on_all_cpus()
114 expected, cpus->map[cpu], perf_counts(evsel->counts, cpu, 0)->val); in test__openat_syscall_event_on_all_cpus()
Dapi-io.c18 #define EXPECT_EQUAL(val, expected) \ argument
20 if (val != expected) { \
22 __FILE__, __LINE__, val, expected); \
27 #define EXPECT_EQUAL64(val, expected) \ argument
29 if (val != expected) { \
31 __FILE__, __LINE__, val, expected); \
/tools/testing/selftests/net/mptcp/
Ddiag.sh46 local expected=$2
54 if [ $nr != $expected ]; then
55 echo "[ fail ] expected $expected found $nr"
71 local expected=$1
82 [ $nr == $expected ] && break;
90 echo "[ fail ] timeout while expecting $expected max $max last $nr"
92 elif [ $nr != $expected ]; then
93 echo "[ fail ] expected $expected found $nr"
/tools/testing/selftests/exec/
Dnon-regular.c44 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()
/tools/testing/selftests/net/
Drxtimestamp.c45 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 …]
/tools/testing/selftests/clone3/
Dclone3.c106 static void test_clone3(uint64_t flags, size_t size, int expected, in test_clone3() argument
116 getpid(), ret, expected); in test_clone3()
117 if (ret != expected) in test_clone3()
120 getpid(), ret, expected); in test_clone3()
124 getpid(), ret, expected); in test_clone3()
/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()
Dcount_stcx_fail.c32 s64 difference, expected; in do_count_loop() local
47 expected = instructions + overhead + (events[2].result.value * 10); in do_count_loop()
48 difference = events[0].result.value - expected; in do_count_loop()
58 printf("Expected %llu\n", expected); in do_count_loop()
/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()
/tools/testing/selftests/powerpc/mm/
Dtlbie_test.c292 unsigned int expected, unsigned int observed) in log_anamoly() argument
297 tid, (unsigned long)addr, expected, observed); in log_anamoly()
298 fprintf(f, "Thread %02d: Expected Thread id = %02d\n", tid, extract_tid(expected)); in log_anamoly()
300 fprintf(f, "Thread %02d: Expected Word offset = %03d\n", tid, extract_word_offset(expected)); in log_anamoly()
302 fprintf(f, "Thread %02d: Expected sweep-id = 0x%x\n", tid, extract_sweep_id(expected)); in log_anamoly()
363 unsigned int expected; in verify_chunk() local
383 expected = compute_store_pattern(tid, iter_ptr, expected_sweep_id); in verify_chunk()
388 if (observed != expected) { in verify_chunk()
390 log_anamoly(tid, iter_ptr, expected, observed); in verify_chunk()
/tools/testing/selftests/drivers/net/netdevsim/
Dethtool-coalesce.sh110 expected=${EXPECTED_SETTINGS[@]}
113 check $? "$current" "$expected"

1234