/Linux-v4.19/tools/perf/util/ |
D | cgroup.c | 19 char mountpoint[PATH_MAX + 1], tokens[PATH_MAX + 1], type[PATH_MAX + 1]; in cgroupfs_find_mountpoint() 20 char path_v1[PATH_MAX + 1], path_v2[PATH_MAX + 2], *path; in cgroupfs_find_mountpoint() 35 while (fscanf(fp, "%*s %"__stringify(PATH_MAX)"s %"__stringify(PATH_MAX)"s %" in cgroupfs_find_mountpoint() 36 __stringify(PATH_MAX)"s %*d %*d\n", in cgroupfs_find_mountpoint() 76 char path[PATH_MAX + 1]; in open_cgroup() 77 char mnt[PATH_MAX + 1]; in open_cgroup() 81 if (cgroupfs_find_mountpoint(mnt, PATH_MAX + 1)) in open_cgroup() 84 scnprintf(path, PATH_MAX, "%s/%s", mnt, name); in open_cgroup()
|
D | cpumap.c | 306 char path[PATH_MAX]; in cpu__get_topology_int() 308 snprintf(path, PATH_MAX, in cpu__get_topology_int() 445 char path[PATH_MAX]; in set_max_cpu_num() 457 ret = snprintf(path, PATH_MAX, "%s/devices/system/cpu/possible", mnt); in set_max_cpu_num() 458 if (ret == PATH_MAX) { in set_max_cpu_num() 459 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); in set_max_cpu_num() 468 ret = snprintf(path, PATH_MAX, "%s/devices/system/cpu/present", mnt); in set_max_cpu_num() 469 if (ret == PATH_MAX) { in set_max_cpu_num() 470 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); in set_max_cpu_num() 485 char path[PATH_MAX]; in set_max_node_num() [all …]
|
D | namespaces.c | 47 char oldns[PATH_MAX]; in nsinfo__init() 48 char spath[PATH_MAX]; in nsinfo__init() 57 if (snprintf(oldns, PATH_MAX, "/proc/self/ns/mnt") >= PATH_MAX) in nsinfo__init() 81 if (snprintf(spath, PATH_MAX, "/proc/%d/status", nsi->pid) >= PATH_MAX) in nsinfo__init() 186 char curpath[PATH_MAX]; in nsinfo__mountns_enter() 199 if (snprintf(curpath, PATH_MAX, "/proc/self/ns/mnt") >= PATH_MAX) in nsinfo__mountns_enter()
|
D | path.c | 30 static char pathname_array[4][PATH_MAX]; in get_pathname() 54 len = vsnprintf(pathname, PATH_MAX, fmt, args); in mkpath() 56 if (len >= PATH_MAX) in mkpath() 85 char path[PATH_MAX]; in is_directory()
|
D | pmu.c | 54 char path[PATH_MAX]; in perf_pmu__format_parse() 61 snprintf(path, PATH_MAX, "%s/%s", dir, name); in perf_pmu__format_parse() 85 char path[PATH_MAX]; in pmu_format() 91 snprintf(path, PATH_MAX, in pmu_format() 146 char path[PATH_MAX]; in perf_pmu__parse_scale() 148 snprintf(path, PATH_MAX, "%s/%s.scale", dir, name); in perf_pmu__parse_scale() 174 char path[PATH_MAX]; in perf_pmu__parse_unit() 178 snprintf(path, PATH_MAX, "%s/%s.unit", dir, name); in perf_pmu__parse_unit() 205 char path[PATH_MAX]; in perf_pmu__parse_per_pkg() 208 snprintf(path, PATH_MAX, "%s/%s.per-pkg", dir, name); in perf_pmu__parse_per_pkg() [all …]
|
D | llvm-utils.c | 71 char buf[PATH_MAX]; in search_program() 78 strlcpy(output, def, PATH_MAX); in search_program() 97 strlcpy(output, buf, PATH_MAX); in search_program() 437 char clang_path[PATH_MAX], llc_path[PATH_MAX], abspath[PATH_MAX], nr_cpus_avail_str[64]; in llvm__compile_bpf() 574 char clang_path[PATH_MAX]; in llvm__search_clang()
|
D | trace-event.c | 81 char path[PATH_MAX]; in tp_format() 89 scnprintf(path, PATH_MAX, "%s/%s/format", tp_dir, name); in tp_format()
|
/Linux-v4.19/tools/lib/subcmd/ |
D | exec-cmd.c | 15 #define PATH_MAX 4096 macro 38 static char cwd[PATH_MAX + 1]; in get_pwd_cwd() 41 if (getcwd(cwd, PATH_MAX) == NULL) in get_pwd_cwd() 49 strlcpy(cwd, pwd, PATH_MAX); in get_pwd_cwd() 57 static char buf[PATH_MAX + 1]; in make_nonrelative_path() 60 if (strlcpy(buf, path, PATH_MAX) >= PATH_MAX) in make_nonrelative_path() 66 if (snprintf(buf, PATH_MAX, "%s/%s", cwd, path) >= PATH_MAX) in make_nonrelative_path()
|
/Linux-v4.19/samples/mic/mpssd/ |
D | sysfs.c | 28 char filename[PATH_MAX]; in readsysfs() 35 snprintf(filename, PATH_MAX, "%s/%s", MICSYSFSDIR, entry); in readsysfs() 37 snprintf(filename, PATH_MAX, in readsysfs() 70 char filename[PATH_MAX]; in setsysfs() 75 snprintf(filename, PATH_MAX, "%s/%s", MICSYSFSDIR, entry); in setsysfs() 77 snprintf(filename, PATH_MAX, "%s/%s/%s", in setsysfs()
|
/Linux-v4.19/tools/perf/tests/ |
D | pmu.c | 89 static char dir[PATH_MAX]; in test_format_dir_get() 92 snprintf(dir, PATH_MAX, "/tmp/perf-pmu-test-format-XXXXXX"); in test_format_dir_get() 97 static char name[PATH_MAX]; in test_format_dir_get() 101 scnprintf(name, PATH_MAX, "%s/%s", dir, format->name); in test_format_dir_get() 119 char buf[PATH_MAX]; in test_format_dir_put() 120 snprintf(buf, PATH_MAX, "rm -f %s/*\n", dir); in test_format_dir_put() 124 snprintf(buf, PATH_MAX, "rmdir %s\n", dir); in test_format_dir_put()
|
D | attr.c | 70 char path[PATH_MAX]; in store_event() 75 snprintf(path, PATH_MAX, "%s/event-%d-%llu-%d", dir, in store_event() 168 char cmd[3*PATH_MAX]; in run_dir() 173 scnprintf(cmd, 3*PATH_MAX, PYTHON " %s/attr.py -d %s/attr/ -p %s %.*s", in run_dir() 182 char path_perf[PATH_MAX]; in test__attr() 183 char path_dir[PATH_MAX]; in test__attr() 190 snprintf(path_dir, PATH_MAX, "%s/tests", get_argv_exec_path()); in test__attr() 191 snprintf(path_perf, PATH_MAX, "%s/perf", BINDIR); in test__attr()
|
/Linux-v4.19/usr/ |
D | gen_init_cpio.c | 136 char name[PATH_MAX + 1]; in cpio_mkslink_line() 137 char target[PATH_MAX + 1]; in cpio_mkslink_line() 143 …if (5 != sscanf(line, "%" str(PATH_MAX) "s %" str(PATH_MAX) "s %o %d %d", name, target, &mode, &ui… in cpio_mkslink_line() 208 char name[PATH_MAX + 1]; in cpio_mkgeneric_line() 214 if (4 != sscanf(line, "%" str(PATH_MAX) "s %o %d %d", name, &mode, &uid, &gid)) { in cpio_mkgeneric_line() 276 char name[PATH_MAX + 1]; in cpio_mknod_line() 285 if (7 != sscanf(line, "%" str(PATH_MAX) "s %o %d %d %c %u %u", in cpio_mknod_line() 385 char expanded[PATH_MAX + 1]; in cpio_replace_env() 402 char name[PATH_MAX + 1]; in cpio_mkfile_line() 404 char location[PATH_MAX + 1]; in cpio_mkfile_line() [all …]
|
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | cgroup_helpers.c | 47 char cgroup_workdir[PATH_MAX + 1]; in setup_cgroup_environment() 88 char cgroup_procs_path[PATH_MAX + 1]; in join_cgroup_from_top() 123 char cgroup_path[PATH_MAX + 1]; in join_cgroup() 144 char cgroup_workdir[PATH_MAX + 1]; in cleanup_cgroup_environment() 163 char cgroup_path[PATH_MAX + 1]; in create_and_get_cgroup() 196 char cgroup_workdir[PATH_MAX + 1]; in get_cgroup_id()
|
/Linux-v4.19/tools/lib/api/fs/ |
D | tracing_path.c | 16 static char tracing_mnt[PATH_MAX] = "/sys/kernel/debug"; 17 static char tracing_path[PATH_MAX] = "/sys/kernel/debug/tracing"; 18 static char tracing_events_path[PATH_MAX] = "/sys/kernel/debug/tracing/events"; 120 char filename[PATH_MAX]; in tracing_path__strerror_open_tp() 122 snprintf(filename, PATH_MAX, "%s/%s", sys, name ?: "*"); in tracing_path__strerror_open_tp()
|
D | fs.c | 91 char path[PATH_MAX]; 153 fscanf(fp, "%*s %" STR(PATH_MAX) "s %99s %*s %*d %*d\n", in fs__read_mounts() 424 char path[PATH_MAX]; in procfs__read_str() 438 char path[PATH_MAX]; in sysfs__read_ull_base() 461 char path[PATH_MAX]; in sysfs__read_int() 474 char path[PATH_MAX]; in sysfs__read_str() 516 char path[PATH_MAX]; in sysctl__read_int() 529 char path[PATH_MAX]; in sysfs__write_int() 535 if (snprintf(path, sizeof(path), "%s/%s", sysfs, entry) >= PATH_MAX) in sysfs__write_int()
|
D | fs.h | 12 #ifndef PATH_MAX 13 #define PATH_MAX 4096 macro
|
/Linux-v4.19/fs/xfs/ |
D | xfs_stats.c | 61 len += snprintf(buf + len, PATH_MAX - len, "%s", in xfs_stats_format() 65 len += snprintf(buf + len, PATH_MAX - len, " %u", in xfs_stats_format() 67 len += snprintf(buf + len, PATH_MAX - len, "\n"); in xfs_stats_format() 76 len += snprintf(buf + len, PATH_MAX-len, "xpc %Lu %Lu %Lu\n", in xfs_stats_format() 78 len += snprintf(buf + len, PATH_MAX-len, "debug %u\n", in xfs_stats_format()
|
/Linux-v4.19/tools/perf/ |
D | builtin-buildid-cache.c | 32 char root_dir[PATH_MAX]; in build_id_cache__kcore_buildid() 51 char from[PATH_MAX]; in same_kallsyms_reloc() 52 char to[PATH_MAX]; in same_kallsyms_reloc() 78 char from[PATH_MAX]; in build_id_cache__kcore_existing() 79 char to[PATH_MAX]; in build_id_cache__kcore_existing() 80 char to_subdir[PATH_MAX]; in build_id_cache__kcore_existing() 117 char from_dir[PATH_MAX], to_dir[PATH_MAX]; in build_id_cache__add_kcore() 273 char filename[PATH_MAX]; in dso__missing_buildid_cache()
|
/Linux-v4.19/tools/cgroup/ |
D | cgroup_event_listener.c | 27 char event_control_path[PATH_MAX]; in main() 38 ret = snprintf(event_control_path, PATH_MAX, "%s/cgroup.event_control", in main() 40 if (ret >= PATH_MAX) in main()
|
/Linux-v4.19/tools/perf/arch/s390/util/ |
D | machine.c | 11 char path[PATH_MAX]; in arch__fix_module_text_start() 13 snprintf(path, PATH_MAX, "module/%.*s/sections/.text", in arch__fix_module_text_start()
|
/Linux-v4.19/tools/testing/selftests/powerpc/ptrace/ |
D | core-pkey.c | 291 filename[0] = filenames = malloc(PATH_MAX); in parent() 297 ret = snprintf(filename[0], PATH_MAX, "core-pkey.%d", pid); in parent() 298 if (ret < 0 || ret >= PATH_MAX) { in parent() 304 ret = snprintf(filename[1], PATH_MAX - ret - 1, "core.%d", pid); in parent() 305 if (ret < 0 || ret >= PATH_MAX - ret - 1) { in parent() 376 core_pattern = malloc(PATH_MAX); in setup_core_pattern() 389 ret = fread(core_pattern, 1, PATH_MAX, f); in setup_core_pattern()
|
/Linux-v4.19/tools/perf/jvmti/ |
D | jvmti_agent.c | 45 static char jit_path[PATH_MAX]; 147 snprintf(jit_path, PATH_MAX - 1, "%s/.debug/", base); in debug_cache_init() 157 snprintf(jit_path, PATH_MAX - 1, "%s/.debug/jit", base); in debug_cache_init() 166 snprintf(jit_path, PATH_MAX - 1, "%s/.debug/jit/%s.XXXXXXXX", base, str); in debug_cache_init() 229 char dump_path[PATH_MAX]; in jvmti_open() 253 scnprintf(dump_path, PATH_MAX, "%s/jit-%i.dump", jit_path, getpid()); in jvmti_open()
|
/Linux-v4.19/tools/hv/ |
D | hv_vss_daemon.c | 80 buffer = malloc(PATH_MAX); in is_dev_loop() 86 snprintf(buffer, PATH_MAX, "%s/loop", blkname); in is_dev_loop() 95 snprintf(buffer, PATH_MAX, "%s/slaves", blkname); in is_dev_loop() 109 snprintf(buffer, PATH_MAX, "%s/slaves/%s", blkname, in is_dev_loop()
|
/Linux-v4.19/tools/perf/arch/arm64/util/ |
D | header.c | 15 char path[PATH_MAX]; in get_cpuid_str() 32 scnprintf(path, PATH_MAX, "%s/devices/system/cpu/cpu%d"MIDR, in get_cpuid_str()
|
/Linux-v4.19/tools/usb/usbip/src/ |
D | usbip_detach.c | 48 char path[PATH_MAX+1]; in detach_port() 89 snprintf(path, PATH_MAX, VHCI_STATE_PATH"/port%d", portnum); in detach_port()
|