Home
last modified time | relevance | path

Searched refs:dir_path (Results 1 – 13 of 13) sorted by relevance

/linux/tools/perf/util/
H A Dtracepoint.c14 int tp_event_has_id(const char *dir_path, struct dirent *evt_dir) in tp_event_has_id()
19 snprintf(evt_path, MAXPATHLEN, "%s/%s/id", dir_path, evt_dir->d_name); in tp_event_has_id()
12 tp_event_has_id(const char * dir_path,struct dirent * evt_dir) tp_event_has_id() argument
34 char *dir_path; is_valid_tracepoint() local
H A Dtracepoint.h9 int tp_event_has_id(const char *dir_path, struct dirent *evt_dir);
11 #define for_each_event(dir_path, evt_dir, evt_dirent) \
16 (!tp_event_has_id(dir_path, evt_dirent)))
10 for_each_event(dir_path,evt_dir,evt_dirent) global() argument
H A Dtrace-event-info.c413 char *dir_path; in tracepoint_id_to_path() local
420 dir_path = get_events_file(sys_dirent->d_name); in tracepoint_id_to_path()
421 if (!dir_path) in tracepoint_id_to_path()
423 evt_dir = opendir(dir_path); in tracepoint_id_to_path()
427 for_each_event(dir_path, evt_dir, evt_dirent) { in tracepoint_id_to_path()
429 scnprintf(evt_path, MAXPATHLEN, "%s/%s/id", dir_path, in tracepoint_id_to_path()
441 put_events_file(dir_path); in tracepoint_id_to_path()
463 put_events_file(dir_path); in tracepoint_id_to_path()
/linux/tools/testing/selftests/drivers/net/lib/py/
H A Dremote_netns.py10 def __init__(self, name, dir_path): argument
12 self.dir_path = dir_path
21 return os.path.abspath(self.dir_path + "/" + what)
H A Dremote_ssh.py12 def __init__(self, name, dir_path): argument
14 self.dir_path = dir_path
36 what = os.path.abspath(self.dir_path + "/" + what)
H A Dremote.py14 dir_path = os.path.abspath(src_path + "/../")
15 return getattr(_modules[kind], "Remote")(args, dir_path)
/linux/tools/testing/selftests/filesystems/fat/
H A Drun_fat_tests.sh58 local dir_path="${MNT_PATH}/subdir"
60 local new_path="${dir_path}/new_file"
62 sudo mkdir -p "${dir_path}"
/linux/scripts/
H A Dmacro_checker.py110 def dir_check_macro(dir_path): argument
112 for dentry in os.listdir(dir_path):
113 path = os.path.join(dir_path, dentry)
/linux/tools/testing/selftests/vfio/lib/
H A Dvfio_pci_device.c273 char dir_path[PATH_MAX]; in vfio_pci_get_cdev_path() local
281 snprintf(dir_path, sizeof(dir_path), "/sys/bus/pci/devices/%s/vfio-dev/", bdf); in vfio_pci_get_cdev_path()
283 dir = opendir(dir_path); in vfio_pci_get_cdev_path()
284 VFIO_ASSERT_NOT_NULL(dir, "Failed to open directory %s\n", dir_path); in vfio_pci_get_cdev_path()
/linux/tools/perf/pmu-events/
H A Dmodels.py11 def dir_path(path: str) -> str: function
62 type=dir_path,
H A Djevents.py1387 def dir_path(path: str) -> str: function
1420 type=dir_path,
/linux/tools/testing/selftests/exec/
H A Dcheck-exec.c114 static const char dir_path[] = "./test-mount/directory"; variable
145 ASSERT_EQ(0, mkdir(dir_path, variant->file_exec ? 0700 : 0600)); in FIXTURE_SETUP()
314 test_exec_path(_metadata, dir_path, EACCES); in TEST_F()
/linux/tools/testing/selftests/landlock/
H A Dfs_test.c6863 char *dir_path = dirname_alloc(variant->file_path); in FIXTURE_SETUP() local
6874 if (stat(dir_path, &statbuf)) { in FIXTURE_SETUP()
6876 EXPECT_EQ(0, mkdir(dir_path, 0700)) in FIXTURE_SETUP()
6879 dir_path, strerror(errno)); in FIXTURE_SETUP()
6901 free(dir_path); in FIXTURE_SETUP()
6920 char *dir_path = dirname_alloc(variant->file_path); in FIXTURE_TEARDOWN_PARENT() local
6927 rmdir(dir_path); in FIXTURE_TEARDOWN_PARENT()
6929 free(dir_path); in FIXTURE_TEARDOWN_PARENT()
6997 char *dir_path = dirname_alloc(variant->file_path); in TEST_F_FORK() local
6999 layer3_fs_tag_inode(_metadata, self, variant, dir_path); in TEST_F_FORK()
[all …]