Lines Matching refs:path
35 bpf_test_dir = os.path.dirname(os.path.realpath(__file__))
212 args = "prog load %s %s" % (os.path.join(bpf_test_dir, sample), file_name)
238 def bpf_obj(name, sec=".text", path=bpf_test_dir,):
239 return "obj %s sec %s" % (os.path.join(path, name), sec)
281 def __init__(self, path):
282 self.path = path
283 self._dict = self._debugfs_dir_read(path)
297 cmd("echo '%s' > %s/%s" % (value, self.path, key))
300 _, out = cmd('cat %s/%s' % (self.path, key))
303 def _debugfs_dir_read(self, path):
306 log("DebugFS state for %s" % (path), "")
309 _, out = cmd('ls ' + path)
314 p = os.path.join(path, f)
318 if os.path.isfile(p):
321 cmd('echo deadbeef > %s/%s' % (path, f))
322 _, out = cmd('cat %s/%s' % (path, f))
324 elif os.path.isdir(p):
340 def ctrl_write(path, val):
341 fullpath = os.path.join("/sys/bus/netdevsim/", path)
403 path = os.path.join(self.dfs_dir, "bpf_bound_progs")
404 _, progs = cmd('ls %s' % (path))
408 progs = DebugfsDir(os.path.join(self.dfs_dir, "bpf_bound_progs"))
455 path = os.path.join(self.dfs_dir, f)
456 _, data = cmd('cat %s' % (path))
1292 start_test("Test map creation fail path...")
1401 print("%s: OK" % (os.path.basename(__file__)))