Lines Matching refs:bpftool

168 def bpftool(args, JSON=True, ns="", fail=True, include_stderr=False):  function
173 _, progs = bpftool("prog show", JSON=True, ns=ns, fail=True)
185 _, maps = bpftool("map show", JSON=True, ns=ns, fail=True)
220 res = bpftool(args, fail=fail, include_stderr=include_stderr)
600 bpftool("prog pin id %d %s" % (prog["id"], file_name))
608 bpftool("map pin id %d %s" % (m["id"], file_name))
615 ret, err = bpftool("prog show pin %s" % (prog_file), fail=False)
622 ret, err = bpftool("map show pin %s" % (map_file), fail=False)
767 ret, progs = bpftool("prog", fail=False)
770 _, base_maps = bpftool("map")
1212 bpftool("map update id %d key %s value %s" %
1216 ret, _ = bpftool("map update id %d key %s value %s" %
1224 bpftool("map update id %d key %s value %s exist" %
1228 ret, err = bpftool("map update id %d key %s value %s exist" %
1238 ret, err = bpftool("map update id %d key %s value %s noexist" %
1247 _, entries = bpftool("map dump id %d" % (m["id"]))
1256 _, entry = bpftool("map getnext id %d" % (m["id"]))
1259 _, entry = bpftool("map getnext id %d key %s" %
1263 ret, err = bpftool("map getnext id %d key %s" %
1271 bpftool("map delete id %d key %s" % (htab["id"], int2str("I", i)))
1275 ret, err = bpftool("map delete id %d key %s" %
1344 mapA = bpftool("prog show %s" % (progA))[1]["map_ids"][0]
1345 mapB = bpftool("prog show %s" % (progB))[1]["map_ids"][0]
1376 ifnameB = bpftool("prog show %s" % (progB))[1]["dev"]["ifname"]
1382 ifnameB = bpftool("prog show %s" % (progB))[1]["dev"]["ifname"]
1387 ifnameB = bpftool("prog show %s" % (progB))[1]["dev"]["ifname"]
1395 ret, out = bpftool("prog show %s" % (progB), fail=False)