Lines Matching refs:expected
177 def bpftool_prog_list(expected=None, ns="", exclude_orphaned=True): argument
185 if expected is not None:
186 if len(progs) != expected:
188 (len(progs), expected))
191 def bpftool_map_list(expected=None, ns=""): argument
195 if expected is not None:
196 if len(maps) != expected:
198 (len(maps), expected))
201 def bpftool_prog_list_wait(expected=0, n_retry=20): argument
204 if nprogs == expected:
207 …raise Exception("Time out waiting for program counts to stabilize want %d, have %d" % (expected, n…
209 def bpftool_map_list_wait(expected=0, n_retry=20, ns=""): argument
214 if nmaps == expected:
217 …raise Exception("Time out waiting for map counts to stabilize want %d, have %d" % (expected, nmaps…
362 def dfs_get_bound_progs(self, expected): argument
364 if expected is not None:
365 if len(progs) != expected:
367 (len(progs), expected))
455 def tc_show_ingress(self, expected=None): argument
480 if expected is not None:
481 fail(len(filters) != expected,
483 (len(filters), expected))
540 progs = bpftool_prog_list(expected=(idx + 1))
547 def pin_map(file_name, idx=0, expected=1): argument
548 maps = bpftool_map_list_wait(expected=expected)
556 bpftool_prog_list(expected=0)
557 bpftool_prog_list(expected=1, exclude_orphaned=False)
561 bpftool_map_list_wait(expected=0)
569 progs = bpftool_prog_list(expected=1, ns=ns)
585 maps = bpftool_map_list_wait(expected=2, ns=ns)
758 bpftool_prog_list_wait(expected=0)
771 simdev.dfs_get_bound_progs(expected=0)
788 simdev.dfs_get_bound_progs(expected=0)
789 ingress = sim.tc_show_ingress(expected=1)
798 simdev.dfs_get_bound_progs(expected=0)
799 ingress = sim.tc_show_ingress(expected=1)
873 dfs = simdev.dfs_get_bound_progs(expected=1)
874 progs = bpftool_prog_list(expected=1)
875 ingress = sim.tc_show_ingress(expected=1)
898 sim.tc_show_ingress(expected=0)
910 bpftool_prog_list_wait(expected=0)
919 bpftool_prog_list_wait(expected=0)
928 progs = bpftool_prog_list(expected=1)
940 bpftool_prog_list_wait(expected=1)
942 progs = bpftool_prog_list(expected=1)
961 bpftool_prog_list_wait(expected=0)
1011 progs = bpftool_prog_list(expected=1)
1016 dfs = simdev.dfs_get_bound_progs(expected=1)
1032 bpftool_prog_list_wait(expected=0)
1050 bpftool_prog_list_wait(expected=0)
1122 bpftool_prog_list_wait(expected=0)
1146 map_file, _ = pin_map("/sys/fs/bpf/tmp_map", idx=1, expected=2)
1154 bpftool_prog_list_wait(expected=0)
1161 maps = bpftool_map_list_wait(expected=2)
1237 bpftool_map_list_wait(expected=0)
1244 bpftool_map_list_wait(expected=0)
1325 bpftool_prog_list_wait(expected=2)
1328 bpftool_prog_list_wait(expected=1)
1333 bpftool_prog_list_wait(expected=1)
1346 bpftool_prog_list_wait(expected=0)