Lines Matching refs:expected

172 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:
200 …raise Exception("Time out waiting for program counts to stabilize want %d, have %d" % (expected, n…
202 def bpftool_map_list_wait(expected=0, n_retry=20): argument
205 if nmaps == expected:
208 …raise Exception("Time out waiting for map counts to stabilize want %d, have %d" % (expected, nmaps…
407 def dfs_get_bound_progs(self, expected): argument
409 if expected is not None:
410 if len(progs) != expected:
412 (len(progs), expected))
513 def tc_show_ingress(self, expected=None): argument
538 if expected is not None:
539 fail(len(filters) != expected,
541 (len(filters), expected))
598 progs = bpftool_prog_list(expected=(idx + 1))
605 def pin_map(file_name, idx=0, expected=1): argument
606 maps = bpftool_map_list(expected=expected)
614 bpftool_prog_list(expected=0)
621 bpftool_map_list(expected=0)
629 progs = bpftool_prog_list(expected=1, ns=ns)
645 maps = bpftool_map_list(expected=2, ns=ns)
814 bpftool_prog_list_wait(expected=0)
827 simdev.dfs_get_bound_progs(expected=0)
844 simdev.dfs_get_bound_progs(expected=0)
845 ingress = sim.tc_show_ingress(expected=1)
854 simdev.dfs_get_bound_progs(expected=0)
855 ingress = sim.tc_show_ingress(expected=1)
929 dfs = simdev.dfs_get_bound_progs(expected=1)
930 progs = bpftool_prog_list(expected=1)
931 ingress = sim.tc_show_ingress(expected=1)
954 sim.tc_show_ingress(expected=0)
966 bpftool_prog_list_wait(expected=0)
975 bpftool_prog_list_wait(expected=0)
984 progs = bpftool_prog_list(expected=1)
996 bpftool_prog_list_wait(expected=1)
998 progs = bpftool_prog_list(expected=1)
1017 bpftool_prog_list_wait(expected=0)
1057 progs = bpftool_prog_list(expected=1)
1062 dfs = simdev.dfs_get_bound_progs(expected=1)
1078 bpftool_prog_list_wait(expected=0)
1096 bpftool_prog_list_wait(expected=0)
1168 bpftool_prog_list_wait(expected=0)
1192 map_file, _ = pin_map("/sys/fs/bpf/tmp_map", idx=1, expected=2)
1200 bpftool_prog_list_wait(expected=0)
1207 maps = bpftool_map_list(expected=2)
1283 bpftool_map_list_wait(expected=0)
1290 bpftool_map_list_wait(expected=0)
1371 bpftool_prog_list_wait(expected=2)
1374 bpftool_prog_list_wait(expected=1)
1379 bpftool_prog_list_wait(expected=1)
1392 bpftool_prog_list_wait(expected=0)