| /tools/testing/selftests/bpf/progs/ |
| D | cgrp_kfunc_failure.c | 33 int BPF_PROG(cgrp_kfunc_acquire_untrusted, struct cgroup *cgrp, const char *path) in BPF_PROG() 52 int BPF_PROG(cgrp_kfunc_acquire_no_null_check, struct cgroup *cgrp, const char *path) in BPF_PROG() 68 int BPF_PROG(cgrp_kfunc_acquire_fp, struct cgroup *cgrp, const char *path) in BPF_PROG() 96 int BPF_PROG(cgrp_kfunc_acquire_trusted_walked, struct cgroup *cgrp, const char *path) in BPF_PROG() 110 int BPF_PROG(cgrp_kfunc_acquire_null, struct cgroup *cgrp, const char *path) in BPF_PROG() 124 int BPF_PROG(cgrp_kfunc_acquire_unreleased, struct cgroup *cgrp, const char *path) in BPF_PROG() 138 int BPF_PROG(cgrp_kfunc_xchg_unreleased, struct cgroup *cgrp, const char *path) in BPF_PROG() 158 int BPF_PROG(cgrp_kfunc_rcu_get_release, struct cgroup *cgrp, const char *path) in BPF_PROG() 179 int BPF_PROG(cgrp_kfunc_release_untrusted, struct cgroup *cgrp, const char *path) in BPF_PROG() 195 int BPF_PROG(cgrp_kfunc_release_fp, struct cgroup *cgrp, const char *path) in BPF_PROG() [all …]
|
| D | cgrp_kfunc_success.c | 33 int BPF_PROG(test_cgrp_acquire_release_argument, struct cgroup *cgrp, const char *path) in BPF_PROG() 50 int BPF_PROG(test_cgrp_acquire_leave_in_map, struct cgroup *cgrp, const char *path) in BPF_PROG() 65 int BPF_PROG(test_cgrp_xchg_release, struct cgroup *cgrp, const char *path) in BPF_PROG() 108 int BPF_PROG(test_cgrp_get_release, struct cgroup *cgrp, const char *path) in BPF_PROG() 139 int BPF_PROG(test_cgrp_get_ancestors, struct cgroup *cgrp, const char *path) in BPF_PROG() 184 int BPF_PROG(test_cgrp_from_id, struct cgroup *cgrp, const char *path) in BPF_PROG()
|
| /tools/testing/selftests/mm/ |
| D | thp_settings.c | 46 int read_file(const char *path, char *buf, size_t buflen) in read_file() 67 int write_file(const char *path, const char *buf, size_t buflen) in write_file() 90 const unsigned long read_num(const char *path) in read_num() 102 void write_num(const char *path, unsigned long num) in write_num() 115 char path[PATH_MAX]; in thp_read_string() local 160 char path[PATH_MAX]; in thp_write_string() local 177 char path[PATH_MAX]; in thp_read_num() local 190 char path[PATH_MAX]; in thp_write_num() local 205 char path[PATH_MAX]; in thp_read_settings() local 257 char path[PATH_MAX]; in thp_write_settings() local [all …]
|
| /tools/testing/selftests/sched_ext/ |
| D | util.c | 14 static ssize_t read_text(const char *path, char *buf, size_t max_len) in read_text() 33 static ssize_t write_text(const char *path, char *buf, ssize_t len) in write_text() 47 long file_read_long(const char *path) in file_read_long() 58 int file_write_long(const char *path, long val) in file_write_long()
|
| /tools/perf/tests/ |
| D | topology.c | 17 static int get_temp(char *path) in get_temp() 33 static int session_write_header(char *path) in session_write_header() 62 static int check_cpu_topology(char *path, struct perf_cpu_map *map) in check_cpu_topology() 207 char path[PATH_MAX]; in test__session_topology() local
|
| D | kmod-path.c | 10 static int test(const char *path, bool alloc_name, bool kmod, in test() 35 static int test_is_kernel_module(const char *path, int cpumode, bool expect) in test_is_kernel_module() 44 #define T(path, an, k, c, n) \ argument 47 #define M(path, c, e) \ argument
|
| /tools/power/cpupower/lib/ |
| D | cpupower.c | 17 int is_valid_path(const char *path) in is_valid_path() 24 unsigned int cpupower_read_sysfs(const char *path, char *buf, size_t buflen) in cpupower_read_sysfs() 45 unsigned int cpupower_write_sysfs(const char *path, char *buf, size_t buflen) in cpupower_write_sysfs() 76 char path[SYSFS_PATH_MAX]; in cpupower_is_cpu_online() local 121 char path[SYSFS_PATH_MAX]; in sysfs_topology_read_file() local
|
| /tools/testing/selftests/memfd/ |
| D | fuse_mnt.c | 27 static int memfd_getattr(const char *path, struct stat *st) in memfd_getattr() 45 static int memfd_readdir(const char *path, in memfd_readdir() 61 static int memfd_open(const char *path, struct fuse_file_info *fi) in memfd_open() 75 static int memfd_read(const char *path, in memfd_read()
|
| /tools/testing/selftests/openat2/ |
| D | helpers.c | 22 int raw_openat2(int dfd, const char *path, void *how, size_t size) in raw_openat2() 28 int sys_openat2(int dfd, const char *path, struct open_how *how) in sys_openat2() 33 int sys_openat(int dfd, const char *path, struct open_how *how) in sys_openat() 47 int touchat(int dfd, const char *path) in touchat() 71 bool fdequal(int fd, int dfd, const char *path) in fdequal()
|
| /tools/include/nolibc/ |
| D | sys.h | 124 int sys_chdir(const char *path) in sys_chdir() 130 int chdir(const char *path) in chdir() 141 int sys_chmod(const char *path, mode_t mode) in sys_chmod() 153 int chmod(const char *path, mode_t mode) in chmod() 164 int sys_chown(const char *path, uid_t owner, gid_t group) in sys_chown() 176 int chown(const char *path, uid_t owner, gid_t group) in chown() 187 int sys_chroot(const char *path) in sys_chroot() 193 int chroot(const char *path) in chroot() 615 int sys_mkdir(const char *path, mode_t mode) in sys_mkdir() 627 int mkdir(const char *path, mode_t mode) in mkdir() [all …]
|
| /tools/power/cpupower/utils/helpers/ |
| D | misc.c | 54 char path[SYSFS_PATH_MAX]; in cpupower_intel_get_perf_bias() local 75 char path[SYSFS_PATH_MAX]; in cpupower_intel_set_perf_bias() local 92 char path[SYSFS_PATH_MAX]; in cpupower_set_epp() local 111 char path[SYSFS_PATH_MAX]; in cpupower_set_amd_pstate_mode() local 129 char path[SYSFS_PATH_MAX]; in cpupower_set_turbo_boost() local
|
| /tools/perf/util/ |
| D | trace-event-info.c | 90 char *path = get_events_file("header_page"); in record_header_files() local 226 char *path; in record_ftrace_files() local 257 char *path; in record_event_files() local 338 char *path; in record_ftrace_printk() local 366 char *path; in record_saved_cmdline() local 406 struct tracepoint_path *path = NULL; in tracepoint_id_to_path() local 472 struct tracepoint_path *path = tracepoint_id_to_path(config); in tracepoint_id_to_name() local 484 struct tracepoint_path *path = zalloc(sizeof(*path)); in tracepoint_name_to_path() local 507 struct tracepoint_path path, *ppath = &path; in get_tracepoints_path() local
|
| D | path.c | 13 static char *cleanup_path(char *path) in cleanup_path() 61 char path[PATH_MAX]; in is_directory() local 73 char path[PATH_MAX]; in is_executable_file() local
|
| D | util.c | 94 int mkdir_p(char *path, mode_t mode) in mkdir_p() 151 static int rm_rf_depth_pat(const char *path, int depth, const char **pat) in rm_rf_depth_pat() 206 static int rm_rf_a_kcore_dir(const char *path, const char *name) in rm_rf_a_kcore_dir() 232 static int rm_rf_kcore_dir(const char *path) in rm_rf_kcore_dir() 254 int rm_rf_perf_data(const char *path) in rm_rf_perf_data() 267 int rm_rf(const char *path) in rm_rf() 568 char path[PATH_MAX]; in scandirat() local
|
| /tools/hv/ |
| D | vmbus_testing | 122 def validate_args_path(path, arg_set, file_map): argument 138 def get_device_test_values(path, file_map): argument 146 def recursive_file_lookup(path, file_map): argument 175 def read_test_files(path): argument 191 def write_test_files(path, value): argument
|
| /tools/testing/selftests/efivarfs/ |
| D | open-unlink.c | 13 static int set_immutable(const char *path, int immutable) in set_immutable() 44 static int get_immutable(const char *path) in get_immutable() 70 const char *path; in main() local
|
| /tools/lib/api/fs/ |
| D | fs.c | 94 char *path; member 158 char path[PATH_MAX + 1]; in fs__read_mounts() local 387 char path[PATH_MAX]; in procfs__read_str() local 401 char path[PATH_MAX]; in sysfs__read_ull_base() local 424 char path[PATH_MAX]; in sysfs__read_int() local 437 char path[PATH_MAX]; in sysfs__read_str() local 453 char path[PATH_MAX]; in sysfs__read_bool() local 485 char path[PATH_MAX]; in sysctl__read_int() local 498 char path[PATH_MAX]; in sysfs__write_int() local
|
| /tools/testing/selftests/ia64/ |
| D | aliasing-test.c | 24 static int map_mem(char *path, off_t offset, size_t length, int touch) in map_mem() 62 static int scan_tree(char *path, char *file, off_t offset, size_t length, int touch) in scan_tree() 119 static int read_rom(char *path) in read_rom() 147 static int scan_rom(char *path, char *file) in scan_rom()
|
| /tools/testing/selftests/powerpc/ |
| D | utils.c | 31 int read_file(const char *path, char *buf, size_t count, size_t *len) in read_file() 68 int read_file_alloc(const char *path, char **buf, size_t *len) in read_file_alloc() 126 int write_file(const char *path, const char *buf, size_t count) in write_file() 170 char path[PATH_MAX] = "/sys/kernel/debug/"; in read_debugfs_file() local 179 char path[PATH_MAX] = "/sys/kernel/debug/"; in write_debugfs_file() local 306 int read_long(const char *path, long *result, int base) in read_long() 318 int read_ulong(const char *path, unsigned long *result, int base) in read_ulong() 330 int write_long(const char *path, long result, int base) in write_long() 355 int write_ulong(const char *path, unsigned long result, int base) in write_ulong() 495 char path[PATH_MAX] = "/sys/"; in read_sysfs_file() local
|
| /tools/testing/selftests/bpf/prog_tests/ |
| D | cgroup_dev.c | 13 static void test_mknod(const char *path, mode_t mode, int dev_major, in test_mknod() 27 static void test_read(const char *path, char *buf, int buf_size, in test_read() 52 static void test_write(const char *path, char *buf, int buf_size, in test_write()
|
| D | cgroup_hierarchical_stats.c | 51 const char *path, *name; member 71 static int read_from_file(const char *path, char *buf, size_t size) in read_from_file() 196 static char buf[128], path[128]; in get_attach_counter() local 252 static char path[128]; in setup_cgroup_iter() local 308 static char path[128]; in destroy_progs() local
|
| /tools/lib/subcmd/ |
| D | exec-cmd.c | 34 static int is_absolute_path(const char *path) in is_absolute_path() 57 static const char *make_nonrelative_path(char *buf, size_t sz, const char *path) in make_nonrelative_path() 77 char *system_path(const char *path) in system_path() 133 static void add_path(char **out, const char *path) in add_path()
|
| /tools/verification/rv/src/ |
| D | in_kernel.c | 34 char path[MAX_PATH]; in __ikm_read_enable() local 74 char path[MAX_PATH]; in ikm_write_enable() local 117 char path[MAX_PATH]; in ikm_read_desc() local 170 char path[MAX_PATH]; in ikm_write_reactor() local 188 char path[MAX_PATH]; in ikm_read_reactor() local 247 char path[MAX_PATH]; in ikm_has_id() local
|
| /tools/perf/arch/ |
| D | common.c | 107 char *path, *tmp = NULL; in lookup_path() local 145 const char *name, char **path) in perf_env__lookup_binutils_path() 221 int perf_env__lookup_objdump(struct perf_env *env, char **path) in perf_env__lookup_objdump()
|
| /tools/bpf/bpftool/ |
| D | common.c | 71 static bool is_bpffs(const char *path) in is_bpffs() 196 int open_obj_pinned(const char *path, bool quiet) in open_obj_pinned() 224 int open_obj_pinned_any(const char *path, enum bpf_obj_type exp_type) in open_obj_pinned_any() 453 char path[PATH_MAX]; in get_fd_type() local 482 char path[PATH_MAX]; in get_fdinfo() local 553 char *path; in do_build_table_cb() local 607 char *path = mntent->mnt_dir; in build_pinned_obj_table() local 671 static int read_sysfs_hex_int(char *path) in read_sysfs_hex_int() 924 char *path; in prog_parse_fds() local 1061 char *path; in map_parse_fds() local [all …]
|