Home
last modified time | relevance | path

Searched refs:expect (Results 1 – 10 of 10) sorted by relevance

/tools/testing/selftests/netfilter/
Dnft_nat.sh55 local expect=$3
57 echo "ERROR: $counter counter in $ns has unexpected value (expected $expect)" 1>&2
77 expect="packets 1 bytes 104"
78 cnt=$(ip netns exec $ns nft list counter inet filter ns0in6 | grep -q "$expect")
80 bad_counter $ns ns0in6 "$expect"
83 cnt=$(ip netns exec $ns nft list counter inet filter ns0out6 | grep -q "$expect")
85 bad_counter $ns ns0out6 "$expect"
121 expect="packets 1 bytes 84"
122 cnt=$(ip netns exec ns0 nft list counter inet filter ${ns}${dir} | grep -q "$expect")
124 bad_counter ns0 $ns$dir "$expect"
[all …]
Dconntrack_icmp_related.sh50 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 …]
/tools/testing/selftests/net/
Dsocket.c18 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()
Dpsock_fanout.c220 static int sock_fanout_read(int fds[], char *rings[], const int expect[]) in sock_fanout_read() argument
228 ret[0], ret[1], expect[0], expect[1]); in sock_fanout_read()
230 if ((!(ret[0] == expect[0] && ret[1] == expect[1])) && in sock_fanout_read()
231 (!(ret[0] == expect[1] && ret[1] == expect[0]))) { in sock_fanout_read()
/tools/perf/tests/
Dattr.py159 self.expect = {}
162 self.load_events(path, self.expect)
232 def compare(self, expect, result): argument
239 for exp_name, exp_event in expect.items():
268 for exp_name, exp_event in expect.items():
309 self.resolve_groups(self.expect);
313 self.compare(self.expect, self.result)
314 self.compare(self.result, self.expect)
Dkmod-path.c39 static int test_is_kernel_module(const char *path, int cpumode, bool expect) in test_is_kernel_module() argument
42 (!!is_kernel_module(path, cpumode)) == (!!expect)); in test_is_kernel_module()
44 path, cpumode, expect ? "true" : "false"); in test_is_kernel_module()
Dbpf.c110 int expect) in do_test() argument
192 if (count != expect) { in do_test()
/tools/perf/tests/attr/
DREADME10 these files are checked for values we expect for command.
/tools/lib/traceevent/
Devent-parse.c1199 static int test_type(enum event_type type, enum event_type expect) in test_type() argument
1201 if (type != expect) { in test_type()
1203 expect, type); in test_type()
1210 enum event_type expect, const char *expect_tok) in test_type_token() argument
1212 if (type != expect) { in test_type_token()
1214 expect, type); in test_type_token()
1226 static int __read_expect_type(enum event_type expect, char **tok, int newline_ok) in __read_expect_type() argument
1234 return test_type(type, expect); in __read_expect_type()
1237 static int read_expect_type(enum event_type expect, char **tok) in read_expect_type() argument
1239 return __read_expect_type(expect, tok, 1); in read_expect_type()
[all …]
/tools/perf/Documentation/
Dperf-record.txt443 (like >5M), for lower values expect different sizes.