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)
816 bpftool_prog_list_wait(expected=0)
829 simdev.dfs_get_bound_progs(expected=0)
846 simdev.dfs_get_bound_progs(expected=0)
847 ingress = sim.tc_show_ingress(expected=1)
856 simdev.dfs_get_bound_progs(expected=0)
857 ingress = sim.tc_show_ingress(expected=1)
931 dfs = simdev.dfs_get_bound_progs(expected=1)
932 progs = bpftool_prog_list(expected=1)
933 ingress = sim.tc_show_ingress(expected=1)
956 sim.tc_show_ingress(expected=0)
968 bpftool_prog_list_wait(expected=0)
977 bpftool_prog_list_wait(expected=0)
986 progs = bpftool_prog_list(expected=1)
998 bpftool_prog_list_wait(expected=1)
1000 progs = bpftool_prog_list(expected=1)
1019 bpftool_prog_list_wait(expected=0)
1059 progs = bpftool_prog_list(expected=1)
1064 dfs = simdev.dfs_get_bound_progs(expected=1)
1080 bpftool_prog_list_wait(expected=0)
1098 bpftool_prog_list_wait(expected=0)
1170 bpftool_prog_list_wait(expected=0)
1194 map_file, _ = pin_map("/sys/fs/bpf/tmp_map", idx=1, expected=2)
1202 bpftool_prog_list_wait(expected=0)
1209 maps = bpftool_map_list(expected=2)
1285 bpftool_map_list_wait(expected=0)
1292 bpftool_map_list_wait(expected=0)
1373 bpftool_prog_list_wait(expected=2)
1376 bpftool_prog_list_wait(expected=1)
1381 bpftool_prog_list_wait(expected=1)
1394 bpftool_prog_list_wait(expected=0)