Home
last modified time | relevance | path

Searched refs:pathname (Results 1 – 25 of 61) sorted by relevance

123

/tools/testing/selftests/rcutorture/bin/
Dkvm-remote-noreap.sh13 pathname="$1"
14 if test "$pathname" = ""
16 echo Usage: kvm-remote-noreap.sh pathname
19 if ! test -d "$pathname"
21 echo Usage: kvm-remote-noreap.sh pathname
26 while test -d "$pathname"
28 find "$pathname" -type f -exec touch -c {} \; > /dev/null 2>&1
/tools/power/acpi/tools/acpidump/
Dapfiles.c14 static int ap_is_existing_file(char *pathname);
28 static int ap_is_existing_file(char *pathname) in ap_is_existing_file() argument
34 if (!stat(pathname, &stat_info)) { in ap_is_existing_file()
65 int ap_open_output_file(char *pathname) in ap_open_output_file() argument
71 if (ap_is_existing_file(pathname) != 0) { in ap_open_output_file()
77 file = fopen(pathname, "w"); in ap_open_output_file()
79 fprintf(stderr, "Could not open output file: %s\n", pathname); in ap_open_output_file()
86 gbl_output_filename = pathname; in ap_open_output_file()
179 struct acpi_table_header *ap_get_table_from_file(char *pathname, in ap_get_table_from_file() argument
189 file = fopen(pathname, "rb"); in ap_get_table_from_file()
[all …]
Dacpidump.h63 int ap_dump_table_from_file(char *pathname);
80 int ap_open_output_file(char *pathname);
84 struct acpi_table_header *ap_get_table_from_file(char *pathname,
Dapdump.c365 int ap_dump_table_from_file(char *pathname) in ap_dump_table_from_file() argument
373 table = ap_get_table_from_file(pathname, &file_size); in ap_dump_table_from_file()
381 pathname); in ap_dump_table_from_file()
389 table->length, file_size, pathname); in ap_dump_table_from_file()
396 pathname, table->signature, file_size, file_size); in ap_dump_table_from_file()
/tools/testing/selftests/filesystems/fuse/
Dbpf_loader.c180 int s_mkdir(struct s pathname, mode_t mode) in s_mkdir() argument
184 if (!pathname.s) { in s_mkdir()
189 res = mkdir(pathname.s, mode); in s_mkdir()
190 free(pathname.s); in s_mkdir()
194 int s_rmdir(struct s pathname) in s_rmdir() argument
198 if (!pathname.s) { in s_rmdir()
203 res = rmdir(pathname.s); in s_rmdir()
204 free(pathname.s); in s_rmdir()
208 int s_unlink(struct s pathname) in s_unlink() argument
212 if (!pathname.s) { in s_unlink()
[all …]
Dtest_fuse.h49 int s_mkdir(struct s pathname, mode_t mode);
50 int s_rmdir(struct s pathname);
51 int s_unlink(struct s pathname);
52 int s_open(struct s pathname, int flags, ...);
53 int s_openat(int dirfd, struct s pathname, int flags, ...);
54 int s_creat(struct s pathname, mode_t mode);
55 int s_mkfifo(struct s pathname, mode_t mode);
56 int s_stat(struct s pathname, struct stat *st);
57 int s_statfs(struct s pathname, struct statfs *st);
58 int s_fuse_attr(struct s pathname, struct fuse_attr *fuse_attr_out);
[all …]
/tools/testing/selftests/exec/
Dnon-regular.c15 void rm(struct __test_metadata *_metadata, const char *pathname, in rm() argument
21 rc = rmdir(pathname); in rm()
23 rc = unlink(pathname); in rm()
27 TH_LOG("Not ENOENT: %s", pathname); in rm()
31 TH_LOG("Failed to remove: %s", pathname); in rm()
37 char *pathname; in FIXTURE() local
64 ASSERT_EQ(symlink(paths[i], self->pathname), 0); in setup_link()
84 ASSERT_EQ(mkdir(self->pathname, 0755), 0); in setup_dir()
103 rc = mknod(self->pathname, 0755 | variant->mode, dev); in setup_node()
137 ASSERT_EQ(mkfifo(self->pathname, 0755), 0); in setup_fifo()
[all …]
/tools/testing/selftests/devices/probe/
Dtest_discoverable_devices.py208 pathname = ""
211 pathname = str(device["path"])
219 pathname = pathname + "/" + dev_type
222 pathname += "@" + str(device["dt-mmio"])
225 pathname += "-" + str(device["of-fullname-regex"])
228 pathname = pathname + "/" + device["name"]
230 return pathname
239 pathname = generate_pathname(child)
241 pathname = parent["meta"]["pathname"] + "/" + pathname
242 child["meta"]["pathname"] = pathname
/tools/testing/selftests/proc/
Dfd-001-lookup.c33 static void test_lookup_pass(const char *pathname) in test_lookup_pass() argument
39 rv = lstat(pathname, &st); in test_lookup_pass()
44 static void test_lookup_fail(const char *pathname) in test_lookup_fail() argument
49 rv = lstat(pathname, &st); in test_lookup_fail()
Dfd-003-kthread.c116 static inline int sys_statx(int dirfd, const char *pathname, int flags, in sys_statx() argument
119 return syscall(SYS_statx, dirfd, pathname, flags, mask, stx); in sys_statx()
122 static void test_lookup_fail(int fd, const char *pathname) in test_lookup_fail() argument
127 rv = sys_statx(fd, pathname, AT_SYMLINK_NOFOLLOW, 0, (void *)stx); in test_lookup_fail()
/tools/perf/pmu-events/arch/nds32/
Dmapfile.csv2 # MIDR,Version,JSON/file/pathname,Type
9 # JSON/file/pathname is the path to JSON file, relative
/tools/perf/bench/
Dsyscall.c56 const char *pathname = "/bin/true"; in test_execve() local
57 char *const argv[] = { (char *)pathname, NULL }; in test_execve()
64 execve(pathname, argv, NULL); in test_execve()
/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c683 char pathname[32]; in get_msr() local
686 sprintf(pathname, "/dev/cpu/%d/msr", cpu); in get_msr()
687 fd = open(pathname, O_RDONLY); in get_msr()
689 err(-1, "%s open failed, try chown or chmod +r /dev/cpu/*/msr, or run as root", pathname); in get_msr()
694 err(-1, "%s offset 0x%llx read failed", pathname, (unsigned long long)offset); in get_msr()
706 char pathname[32]; in put_msr() local
710 sprintf(pathname, "/dev/cpu/%d/msr", cpu); in put_msr()
711 fd = open(pathname, O_RDWR); in put_msr()
713 err(-1, "%s open failed, try chown or chmod +r /dev/cpu/*/msr, or run as root", pathname); in put_msr()
961 char pathname[64]; in update_cpufreq_scaling_freq() local
[all …]
/tools/perf/pmu-events/arch/powerpc/
Dmapfile.csv2 # PVR,Version,JSON/file/pathname,Type
8 # JSON/file/pathname is the path to JSON file, relative
/tools/testing/selftests/bpf/progs/
Dtest_uprobe_autoattach.c92 int BPF_UPROBE(handle_uprobe_byname2, const char *pathname, const char *mode) in BPF_UPROBE() argument
99 uprobe_byname2_parm1 = (u64)(long)pathname; in BPF_UPROBE()
/tools/perf/pmu-events/arch/riscv/
Dmapfile.csv2 # MVENDORID-MARCHID-MIMPID,Version,JSON/file/pathname,Type
11 # JSON/file/pathname is the path to JSON file, relative
/tools/power/cpupower/utils/
Dcpupower.c181 char pathname[32]; in main() local
218 sprintf(pathname, "/dev/cpu/%d/msr", base_cpu); in main()
220 stat(pathname, &statbuf) != 0) { in main()
/tools/perf/util/
Dbuild-id.h27 int filename__sprintf_build_id(const char *pathname, char *sbuild_id);
61 int build_id_cache__list_build_ids(const char *pathname, struct nsinfo *nsi,
Dbuild-id.c105 int filename__sprintf_build_id(const char *pathname, char *sbuild_id) in filename__sprintf_build_id() argument
110 ret = filename__read_build_id(pathname, &bid); in filename__sprintf_build_id()
206 char *pathname; in build_id_cache__valid_id() local
210 pathname = build_id_cache__origname(sbuild_id); in build_id_cache__valid_id()
211 if (!pathname) in build_id_cache__valid_id()
214 if (!strcmp(pathname, DSO__NAME_KALLSYMS)) in build_id_cache__valid_id()
216 else if (pathname[0] == '/') in build_id_cache__valid_id()
217 ret = filename__sprintf_build_id(pathname, real_sbuild_id); in build_id_cache__valid_id()
222 free(pathname); in build_id_cache__valid_id()
518 int build_id_cache__list_build_ids(const char *pathname, struct nsinfo *nsi, in build_id_cache__list_build_ids() argument
[all …]
/tools/perf/pmu-events/arch/arm64/
Dmapfile.csv2 # MIDR,Version,JSON/file/pathname,Type
9 # JSON/file/pathname is the path to JSON file, relative
/tools/testing/cxl/test/
Dmock.h15 acpi_string pathname,
Dmock.c82 acpi_string pathname, in __wrap_acpi_evaluate_integer() argument
91 status = ops->acpi_evaluate_integer(handle, pathname, arguments, in __wrap_acpi_evaluate_integer()
94 status = acpi_evaluate_integer(handle, pathname, arguments, in __wrap_acpi_evaluate_integer()
/tools/power/acpi/tools/pfrut/
Dpfrut.c100 char *pathname, *endptr; in parse_options() local
103 pathname = strdup(argv[0]); in parse_options()
104 progname = basename(pathname); in parse_options()
/tools/lib/bpf/
Dbpf.h312 LIBBPF_API int bpf_obj_pin(int fd, const char *pathname);
313 LIBBPF_API int bpf_obj_pin_opts(int fd, const char *pathname,
326 LIBBPF_API int bpf_obj_get(const char *pathname);
327 LIBBPF_API int bpf_obj_get_opts(const char *pathname,
/tools/perf/
Dbuiltin-buildid-cache.c222 static int build_id_cache__purge_path(const char *pathname, struct nsinfo *nsi) in build_id_cache__purge_path() argument
228 err = build_id_cache__list_build_ids(pathname, nsi, &list); in build_id_cache__purge_path()
234 pr_debug("Removing %s %s: %s\n", pos->s, pathname, in build_id_cache__purge_path()
242 pr_debug("Purging %s: %s\n", pathname, err ? "FAIL" : "Ok"); in build_id_cache__purge_path()

123