/linux/tools/testing/selftests/mm/ |
H A D | thp_settings.c | 115 char path[PATH_MAX]; in thp_read_string() 121 if (ret >= PATH_MAX) { in thp_read_string() 160 char path[PATH_MAX]; in thp_write_string() 164 if (ret >= PATH_MAX) { in thp_write_string() 177 char path[PATH_MAX]; in thp_read_num() 181 if (ret >= PATH_MAX) { in thp_read_num() 190 char path[PATH_MAX]; in thp_write_num() 194 if (ret >= PATH_MAX) { in thp_write_num() 205 char path[PATH_MAX]; in thp_read_settings() 257 char path[PATH_MAX]; in thp_write_settings() [all …]
|
/linux/tools/perf/tests/ |
H A D | pe-file-parsing.c | 25 char filename[PATH_MAX]; in run_dir() 26 char debugfile[PATH_MAX]; in run_dir() 28 char debuglink[PATH_MAX]; in run_dir() 33 char expect_debuglink[PATH_MAX] = "pe-file.exe.debug"; in run_dir() 39 scnprintf(filename, PATH_MAX, "%s/pe-file.exe", d); in run_dir() 46 ret = filename__read_debuglink(filename, debuglink, PATH_MAX); in run_dir() 51 scnprintf(debugfile, PATH_MAX, "%s/%s", d, debuglink); in run_dir() 76 char path_dir[PATH_MAX]; in test__pe_file_parsing() 83 snprintf(path_dir, PATH_MAX, "%s/tests", get_argv_exec_path()); in test__pe_file_parsing()
|
H A D | attr.c | 72 char path[PATH_MAX]; in store_event() 77 snprintf(path, PATH_MAX, "%s/event-%d-%llu-%d", dir, in store_event() 170 char cmd[3*PATH_MAX]; in run_dir() 175 scnprintf(cmd, 3*PATH_MAX, PYTHON " %s/attr.py -d %s/attr/ -p %s %.*s", in run_dir() 184 char path_perf[PATH_MAX]; in test__attr() 185 char path_dir[PATH_MAX]; in test__attr() 207 snprintf(path_dir, PATH_MAX, "%s/tests", exec_path); in test__attr() 208 snprintf(path_perf, PATH_MAX, "%s/perf", BINDIR); in test__attr()
|
H A D | dlfilter-test.c | 52 char perf[PATH_MAX]; 53 char perf_data_file_name[PATH_MAX]; 54 char c_file_name[PATH_MAX]; 55 char prog_file_name[PATH_MAX]; 56 char dlfilters[PATH_MAX]; 224 char perf[PATH_MAX]; in get_dlfilters_path() 225 char path[PATH_MAX]; in get_dlfilters_path() 328 if (get_dlfilters_path(td->name, td->dlfilters, PATH_MAX)) in test__dlfilter_test() 418 snprintf(td.perf_data_file_name, PATH_MAX, "/tmp/dlfilter-test-%u-perf-data", pid); in test__dlfilter_ver() 419 snprintf(td.c_file_name, PATH_MAX, "/tmp/dlfilter-test-%u-prog.c", pid); in test__dlfilter_ver() [all …]
|
H A D | api-io.c | 37 static int make_test_file(char path[PATH_MAX], const char *contents) in make_test_file() argument 58 static int setup_test(char path[PATH_MAX], const char *contents, in setup_test() argument 81 static void cleanup_test(char path[PATH_MAX], struct io *io) in cleanup_test() argument 90 char path[PATH_MAX]; in do_test_get_char() 137 char path[PATH_MAX]; in do_test_get_hex() 218 char path[PATH_MAX]; in do_test_get_dec() 295 char path[PATH_MAX]; in test_get_line()
|
H A D | pmu.c | 24 char buf[PATH_MAX + 20]; in test_pmu_put() 65 char name[PATH_MAX]; in test_pmu_get() 109 if (scnprintf(name, PATH_MAX, "perf-pmu-test/format/%s", format->name) < 0) { in test_pmu_get() 160 char dir[PATH_MAX]; in test__pmu_format() 207 char dir[PATH_MAX]; in test__pmu_events() 301 char path[PATH_MAX]; in test__pmu_event_names()
|
/linux/tools/testing/selftests/bpf/ |
H A D | cgroup_helpers.c | 61 char path[PATH_MAX + 1]; in __enable_controllers() 62 char enable[PATH_MAX + 1]; in __enable_controllers() 122 char cgroup_path[PATH_MAX + 1]; in enable_controllers() 131 char file_path[PATH_MAX + 1]; in __write_cgroup_file() 163 char cgroup_path[PATH_MAX - 24]; in write_cgroup_file() 184 char cgroup_path[PATH_MAX - 24]; in write_cgroup_file_parent() 287 char cgroup_path[PATH_MAX + 1]; in join_cgroup() 315 char cgroup_path[PATH_MAX + 1]; in join_parent_cgroup() 329 char cgroup_workdir[PATH_MAX + 1]; in __cleanup_cgroup_environment() 387 char cgroup_path[PATH_MAX + 1]; in remove_cgroup() [all …]
|
/linux/tools/perf/util/ |
H A D | cpumap.c | 190 char path[PATH_MAX]; in cpu__get_topology_int() 192 snprintf(path, PATH_MAX, in cpu__get_topology_int() 429 char path[PATH_MAX]; in set_max_cpu_num() 442 if (ret >= PATH_MAX) { in set_max_cpu_num() 453 if (ret >= PATH_MAX) { in set_max_cpu_num() 469 char path[PATH_MAX]; in set_max_node_num() 481 if (ret >= PATH_MAX) { in set_max_node_num() 552 char buf[PATH_MAX]; in cpu__setup_cpunode_map() 553 char path[PATH_MAX]; in cpu__setup_cpunode_map() 566 if (n >= PATH_MAX) { in cpu__setup_cpunode_map() [all …]
|
H A D | namespaces.c | 100 char oldns[PATH_MAX]; in nsinfo__init() 101 char spath[PATH_MAX]; in nsinfo__init() 107 if (snprintf(oldns, PATH_MAX, "/proc/self/ns/mnt") >= PATH_MAX) in nsinfo__init() 131 if (snprintf(spath, PATH_MAX, "/proc/%d/status", nsinfo__pid(nsi)) >= PATH_MAX) in nsinfo__init() 277 char curpath[PATH_MAX]; in nsinfo__mountns_enter() 291 if (snprintf(curpath, PATH_MAX, "/proc/self/ns/mnt") >= PATH_MAX) in nsinfo__mountns_enter()
|
H A D | cgroup.c | 33 char path[PATH_MAX + 1]; in open_cgroup() 34 char mnt[PATH_MAX + 1]; in open_cgroup() 38 if (cgroupfs_find_mountpoint(mnt, PATH_MAX + 1, "perf_event")) in open_cgroup() 41 scnprintf(path, PATH_MAX, "%s/%s", mnt, name); in open_cgroup() 68 char path[PATH_MAX + 1]; in read_cgroup_id() 69 char mnt[PATH_MAX + 1]; in read_cgroup_id() 74 scnprintf(path, PATH_MAX, "%s/%s", mnt, cgrp->name); in read_cgroup_id() 89 char mnt[PATH_MAX + 1]; in cgroup_is_v2() 92 if (cgroupfs_find_mountpoint(mnt, PATH_MAX + 1, subsys)) in cgroup_is_v2() 302 char mnt[PATH_MAX]; in match_cgroups() [all …]
|
/linux/usr/ |
H A D | gen_init_cpio.c | 141 char name[PATH_MAX + 1]; in cpio_mkslink_line() 142 char target[PATH_MAX + 1]; in cpio_mkslink_line() 148 …if (5 != sscanf(line, "%" str(PATH_MAX) "s %" str(PATH_MAX) "s %o %d %d", name, target, &mode, &ui… in cpio_mkslink_line() 213 char name[PATH_MAX + 1]; in cpio_mkgeneric_line() 281 char name[PATH_MAX + 1]; in cpio_mknod_line() 442 char expanded[PATH_MAX + 1]; in cpio_replace_env() 459 char name[PATH_MAX + 1]; in cpio_mkfile_line() 461 char location[PATH_MAX + 1]; in cpio_mkfile_line() 469 if (5 > sscanf(line, "%" str(PATH_MAX) "s %" str(PATH_MAX) in cpio_mkfile_line() 490 if (sscanf(line + end, "%" str(PATH_MAX) "s %n", in cpio_mkfile_line() [all …]
|
/linux/tools/perf/jvmti/ |
H A D | jvmti_agent.c | 45 static char jit_path[PATH_MAX]; 149 ret = snprintf(jit_path, PATH_MAX, "%s/.debug/", base); in create_jit_cache_dir() 150 if (ret >= PATH_MAX) { in create_jit_cache_dir() 164 ret = snprintf(jit_path, PATH_MAX, "%s/.debug/jit", base); in create_jit_cache_dir() 165 if (ret >= PATH_MAX) { in create_jit_cache_dir() 179 ret = snprintf(jit_path, PATH_MAX, "%s/.debug/jit/%s.XXXXXXXX", base, str); in create_jit_cache_dir() 180 if (ret >= PATH_MAX) { in create_jit_cache_dir() 248 char dump_path[PATH_MAX]; in jvmti_open() 276 ret = snprintf(dump_path, PATH_MAX, "%s/jit-%i.dump", jit_path, getpid()); in jvmti_open() 277 if (ret >= PATH_MAX) { in jvmti_open()
|
/linux/tools/lib/api/fs/ |
H A D | fs.c | 158 char path[PATH_MAX + 1]; in fs__read_mounts() 164 while (fscanf(fp, "%*s %" STR(PATH_MAX) "s %99s %*s %*d %*d\n", in fs__read_mounts() 387 char path[PATH_MAX]; in procfs__read_str() 401 char path[PATH_MAX]; in sysfs__read_ull_base() 424 char path[PATH_MAX]; in sysfs__read_int() 437 char path[PATH_MAX]; in sysfs__read_str() 453 char path[PATH_MAX]; in sysfs__read_bool() 485 char path[PATH_MAX]; in sysctl__read_int() 498 char path[PATH_MAX]; in sysfs__write_int() 504 if (snprintf(path, sizeof(path), "%s/%s", sysfs, entry) >= PATH_MAX) in sysfs__write_int()
|
H A D | tracing_path.c | 16 static char tracing_path[PATH_MAX] = "/sys/kernel/tracing"; 131 char filename[PATH_MAX]; in tracing_path__strerror_open_tp() 133 snprintf(filename, PATH_MAX, "%s/%s", sys, name ?: "*"); in tracing_path__strerror_open_tp()
|
H A D | fs.h | 12 #ifndef PATH_MAX 13 #define PATH_MAX 4096 macro
|
/linux/fs/xfs/ |
H A D | xfs_stats.c | 63 len += scnprintf(buf + len, PATH_MAX - len, "%s", in xfs_stats_format() 67 len += scnprintf(buf + len, PATH_MAX - len, " %u", in xfs_stats_format() 69 len += scnprintf(buf + len, PATH_MAX - len, "\n"); in xfs_stats_format() 79 len += scnprintf(buf + len, PATH_MAX-len, "xpc %llu %llu %llu\n", in xfs_stats_format() 81 len += scnprintf(buf + len, PATH_MAX-len, "defer_relog %llu\n", in xfs_stats_format() 83 len += scnprintf(buf + len, PATH_MAX-len, "debug %u\n", in xfs_stats_format()
|
/linux/samples/cgroup/ |
H A 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/tools/perf/ |
H A D | builtin-buildid-cache.c | 36 char root_dir[PATH_MAX]; in build_id_cache__kcore_buildid() 55 char from[PATH_MAX]; in same_kallsyms_reloc() 56 char to[PATH_MAX]; in same_kallsyms_reloc() 82 char from[PATH_MAX]; in build_id_cache__kcore_existing() 83 char to[PATH_MAX]; in build_id_cache__kcore_existing() 84 char to_subdir[PATH_MAX]; in build_id_cache__kcore_existing() 121 char from_dir[PATH_MAX], to_dir[PATH_MAX]; in build_id_cache__add_kcore() 277 char filename[PATH_MAX]; in dso__missing_buildid_cache()
|
/linux/tools/testing/selftests/powerpc/ptrace/ |
H A 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() 369 core_pattern = malloc(PATH_MAX); in setup_core_pattern() 375 ret = read_file(core_pattern_file, core_pattern, PATH_MAX - 1, &len); in setup_core_pattern()
|
/linux/tools/testing/selftests/openat2/ |
H A D | helpers.c | 61 target = malloc(PATH_MAX); in fdreadlink() 64 memset(target, 0, PATH_MAX); in fdreadlink() 66 E_readlink(tmp, target, PATH_MAX); in fdreadlink()
|
/linux/tools/perf/arch/s390/util/ |
H A D | machine.c | 15 char path[PATH_MAX]; in arch__fix_module_text_start() 17 snprintf(path, PATH_MAX, "module/%.*s/sections/.text", in arch__fix_module_text_start()
|
/linux/tools/bpf/bpftool/ |
H A D | tracelog.c | 48 if (src_len + 1 >= PATH_MAX) { in find_tracefs_mnt_single() 82 PATH_MAX - strlen(pipe_name) - 1); in get_tracefs_pipe() 130 char trace_pipe[PATH_MAX]; in do_tracelog()
|
/linux/tools/virtio/virtio-trace/ |
H A D | trace-agent.c | 115 buf = zalloc(PATH_MAX); in make_path() 123 ret = snprintf(buf, PATH_MAX, WRITE_PATH_FMT, cpu_num); in make_path() 126 ret = snprintf(buf, PATH_MAX, READ_PATH_FMT, TRACEFS, cpu_num); in make_path() 128 ret = snprintf(buf, PATH_MAX, READ_PATH_FMT, DEBUGFS, cpu_num); in make_path()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | bpf_obj_pinning.c | 127 char abs_path[PATH_MAX], old_cwd[PATH_MAX]; in validate_pin() 187 char abs_path[PATH_MAX], old_cwd[PATH_MAX]; in validate_get()
|
/linux/tools/include/nolibc/ |
H A D | types.h | 80 #ifndef PATH_MAX 81 #define PATH_MAX 4096 macro 85 #define MAXPATHLEN (PATH_MAX)
|