Home
last modified time | relevance | path

Searched refs:PATH_MAX (Results 1 – 25 of 240) sorted by relevance

12345678910

/linux-6.6.21/tools/perf/tests/
Dpe-file-parsing.c25 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()
Dattr.c72 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()
Ddlfilter-test.c52 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 …]
Dapi-io.c37 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()
Dpmu.c99 char name[PATH_MAX]; in test_format_dir_get()
103 scnprintf(name, PATH_MAX, "%s/%s", dir, format->name); in test_format_dir_get()
121 char buf[PATH_MAX + 20]; in test_format_dir_put()
144 char dir[PATH_MAX]; in test__pmu()
Dbuiltin-test-list.c65 char filename[PATH_MAX]; in shell_test__description()
103 char filename[PATH_MAX]; in is_test_script()
162 char filename[PATH_MAX]; in append_scripts_in_dir()
191 char path_dir[PATH_MAX]; in list_script_files()
/linux-6.6.21/tools/testing/selftests/bpf/
Dcgroup_helpers.c54 char path[PATH_MAX + 1]; in __enable_controllers()
55 char enable[PATH_MAX + 1]; in __enable_controllers()
115 char cgroup_path[PATH_MAX + 1]; in enable_controllers()
124 char file_path[PATH_MAX + 1]; in __write_cgroup_file()
156 char cgroup_path[PATH_MAX - 24]; in write_cgroup_file()
177 char cgroup_path[PATH_MAX - 24]; in write_cgroup_file_parent()
194 char cgroup_workdir[PATH_MAX - 24]; in setup_cgroup_environment()
239 char cgroup_procs_path[PATH_MAX + 1]; in join_cgroup_from_top()
274 char cgroup_path[PATH_MAX + 1]; in join_cgroup()
302 char cgroup_path[PATH_MAX + 1]; in join_parent_cgroup()
[all …]
/linux-6.6.21/tools/perf/util/
Dcpumap.c192 char path[PATH_MAX]; in cpu__get_topology_int()
194 snprintf(path, PATH_MAX, in cpu__get_topology_int()
405 char path[PATH_MAX]; in set_max_cpu_num()
417 ret = snprintf(path, PATH_MAX, "%s/devices/system/cpu/possible", mnt); in set_max_cpu_num()
418 if (ret >= PATH_MAX) { in set_max_cpu_num()
419 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); in set_max_cpu_num()
428 ret = snprintf(path, PATH_MAX, "%s/devices/system/cpu/present", mnt); in set_max_cpu_num()
429 if (ret >= PATH_MAX) { in set_max_cpu_num()
430 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); in set_max_cpu_num()
445 char path[PATH_MAX]; in set_max_node_num()
[all …]
Dnamespaces.c100 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()
Dcgroup.c33 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()
53 char path[PATH_MAX + 1]; in read_cgroup_id()
54 char mnt[PATH_MAX + 1]; in read_cgroup_id()
61 if (cgroupfs_find_mountpoint(mnt, PATH_MAX + 1, "perf_event")) in read_cgroup_id()
64 scnprintf(path, PATH_MAX, "%s/%s", mnt, cgrp->name); in read_cgroup_id()
81 char mnt[PATH_MAX + 1]; in cgroup_is_v2()
84 if (cgroupfs_find_mountpoint(mnt, PATH_MAX + 1, subsys)) in cgroup_is_v2()
[all …]
/linux-6.6.21/usr/
Dgen_init_cpio.c140 char name[PATH_MAX + 1]; in cpio_mkslink_line()
141 char target[PATH_MAX + 1]; in cpio_mkslink_line()
147 …if (5 != sscanf(line, "%" str(PATH_MAX) "s %" str(PATH_MAX) "s %o %d %d", name, target, &mode, &ui… in cpio_mkslink_line()
212 char name[PATH_MAX + 1]; in cpio_mkgeneric_line()
218 if (4 != sscanf(line, "%" str(PATH_MAX) "s %o %d %d", name, &mode, &uid, &gid)) { in cpio_mkgeneric_line()
280 char name[PATH_MAX + 1]; in cpio_mknod_line()
289 if (7 != sscanf(line, "%" str(PATH_MAX) "s %o %d %d %c %u %u", in cpio_mknod_line()
435 char expanded[PATH_MAX + 1]; in cpio_replace_env()
452 char name[PATH_MAX + 1]; in cpio_mkfile_line()
454 char location[PATH_MAX + 1]; in cpio_mkfile_line()
[all …]
/linux-6.6.21/tools/perf/jvmti/
Djvmti_agent.c45 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-6.6.21/fs/xfs/
Dxfs_stats.c61 len += scnprintf(buf + len, PATH_MAX - len, "%s", in xfs_stats_format()
65 len += scnprintf(buf + len, PATH_MAX - len, " %u", in xfs_stats_format()
67 len += scnprintf(buf + len, PATH_MAX - len, "\n"); in xfs_stats_format()
77 len += scnprintf(buf + len, PATH_MAX-len, "xpc %llu %llu %llu\n", in xfs_stats_format()
79 len += scnprintf(buf + len, PATH_MAX-len, "defer_relog %llu\n", in xfs_stats_format()
81 len += scnprintf(buf + len, PATH_MAX-len, "debug %u\n", in xfs_stats_format()
/linux-6.6.21/tools/lib/api/fs/
Dfs.c157 char path[PATH_MAX + 1]; in fs__read_mounts()
163 while (fscanf(fp, "%*s %" STR(PATH_MAX) "s %99s %*s %*d %*d\n", in fs__read_mounts()
415 char path[PATH_MAX]; in procfs__read_str()
429 char path[PATH_MAX]; in sysfs__read_ull_base()
452 char path[PATH_MAX]; in sysfs__read_int()
465 char path[PATH_MAX]; in sysfs__read_str()
507 char path[PATH_MAX]; in sysctl__read_int()
520 char path[PATH_MAX]; in sysfs__write_int()
526 if (snprintf(path, sizeof(path), "%s/%s", sysfs, entry) >= PATH_MAX) in sysfs__write_int()
Dtracing_path.c16 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()
Dfs.h12 #ifndef PATH_MAX
13 #define PATH_MAX 4096 macro
/linux-6.6.21/tools/cgroup/
Dcgroup_event_listener.c27 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-6.6.21/tools/perf/
Dbuiltin-buildid-cache.c36 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-6.6.21/tools/perf/arch/arm/util/
Dcs-etm.c78 char path[PATH_MAX]; in cs_etm_validate_context_id()
97 snprintf(path, PATH_MAX, "cpu%d/%s", in cs_etm_validate_context_id()
149 char path[PATH_MAX]; in cs_etm_validate_timestamp()
164 snprintf(path, PATH_MAX, "cpu%d/%s", in cs_etm_validate_timestamp()
251 char msg[BUFSIZ], path[PATH_MAX], *sink; in cs_etm_set_sink_attr()
264 snprintf(path, PATH_MAX, "sinks/%s", sink); in cs_etm_set_sink_attr()
567 char path[PATH_MAX]; in cs_etm_is_etmv4()
575 snprintf(path, PATH_MAX, "cpu%d/%s", in cs_etm_is_etmv4()
588 char pmu_path[PATH_MAX]; in cs_etm_get_ro()
593 snprintf(pmu_path, PATH_MAX, "cpu%d/%s", cpu, path); in cs_etm_get_ro()
[all …]
/linux-6.6.21/tools/testing/selftests/powerpc/ptrace/
Dcore-pkey.c291 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-6.6.21/tools/testing/selftests/openat2/
Dhelpers.c61 target = malloc(PATH_MAX); in fdreadlink()
64 memset(target, 0, PATH_MAX); in fdreadlink()
66 E_readlink(tmp, target, PATH_MAX); in fdreadlink()
/linux-6.6.21/tools/perf/arch/s390/util/
Dmachine.c15 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-6.6.21/tools/bpf/bpftool/
Dtracelog.c48 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-6.6.21/tools/virtio/virtio-trace/
Dtrace-agent.c115 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-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dbpf_obj_pinning.c127 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()

12345678910