Home
last modified time | relevance | path

Searched refs:dir_path (Results 1 – 17 of 17) 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/tools/perf/pmu-events/
H A Darm64_metrics.py16 def dir_path(path: str) -> str: function
30 type=dir_path,
H A Dmodels.py11 def dir_path(path: str) -> str: function
62 type=dir_path,
H A Damd_metrics.py505 def dir_path(path: str) -> str:
518 type=dir_path,
449 def dir_path(path: str) -> str: global() function
H A Djevents.py1464 def dir_path(path: str) -> str:
1498 type=dir_path,
1387 def dir_path(path: str) -> str: global() function
H A Dintel_metrics.py1138 def dir_path(path: str) -> str:
1151 type=dir_path,
1077 def dir_path(path: str) -> str: global() function
/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/verification/rvgen/rvgen/
H A Dkunit.py156 dir_path = Path(self.monitor_path).parent
158 header_file_path = dir_path / f"{self.name}_kunit.h"
159 kunit_c_file_path = dir_path / f"{self.name}_kunit.c"
/linux/tools/testing/selftests/vfio/lib/
H A Dvfio_pci_device.c385 char dir_path[PATH_MAX]; in vfio_pci_get_cdev_path() local
392 snprintf_assert(dir_path, sizeof(dir_path), "/sys/bus/pci/devices/%s/vfio-dev/", bdf); in vfio_pci_get_cdev_path()
394 dir = opendir(dir_path); in vfio_pci_get_cdev_path()
395 VFIO_ASSERT_NOT_NULL(dir, "Failed to open directory %s\n", dir_path); in vfio_pci_get_cdev_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.c7264 char *dir_path = dirname_alloc(variant->file_path); in TEST_F()
7275 if (stat(dir_path, &statbuf)) { in TEST_F()
7277 EXPECT_EQ(0, mkdir(dir_path, 0700)) in TEST_F()
7280 dir_path, strerror(errno)); in TEST_F()
7302 free(dir_path); in TEST_F()
7321 char *dir_path = dirname_alloc(variant->file_path); in TEST_F()
7328 rmdir(dir_path); in TEST_F()
7330 free(dir_path); in TEST_F()
7386 char *dir_path = dirname_alloc(variant->file_path); in TEST_F()
7388 layer3_fs_tag_inode(_metadata, self, variant, dir_path); in TEST_F()
6859 char *dir_path = dirname_alloc(variant->file_path); FIXTURE_SETUP() local
6916 char *dir_path = dirname_alloc(variant->file_path); FIXTURE_TEARDOWN_PARENT() local
6993 char *dir_path = dirname_alloc(variant->file_path); TEST_F_FORK() local
7024 char *dir_path = dirname_alloc(variant->file_path); TEST_F_FORK() local
[all...]