Home
last modified time | relevance | path

Searched refs:MAX_PATH (Results 1 – 8 of 8) sorted by relevance

/Linux-v6.1/tools/testing/selftests/bpf/progs/
Dprofiler.h7 #define MAX_PATH 256 macro
14 #define MAX_FILEPATH_LENGTH (MAX_PATH_DEPTH * MAX_PATH)
20 (MAX_PATH * 2 + (MAX_PATH * MAX_CGROUPS_PATH_DEPTH))
25 (MAX_METADATA_PAYLOAD_LEN + MAX_CGROUP_PAYLOAD_LEN + CTL_MAXNAME + MAX_PATH)
Dprofiler.inc.h219 bpf_probe_read_str(payload, MAX_PATH, BPF_CORE_READ(cgroup_node, name)); in read_full_cgroup_path()
224 if (filepart_length <= MAX_PATH) { in read_full_cgroup_path()
306 bpf_probe_read_str(payload, MAX_PATH, BPF_CORE_READ(root_kernfs, name)); in populate_cgroup_info()
308 if (cgroup_root_length <= MAX_PATH) { in populate_cgroup_info()
315 bpf_probe_read_str(payload, MAX_PATH, BPF_CORE_READ(proc_kernfs, name)); in populate_cgroup_info()
317 if (cgroup_proc_length <= MAX_PATH) { in populate_cgroup_info()
490 filepart_length = bpf_probe_read_str(payload, MAX_PATH, in read_absolute_file_path_from_dentry()
493 if (filepart_length > MAX_PATH) in read_absolute_file_path_from_dentry()
583 size_t sysctl_path_length = bpf_probe_read_str(payload, MAX_PATH, in BPF_KPROBE()
586 if (sysctl_path_length <= MAX_PATH) { in BPF_KPROBE()
/Linux-v6.1/tools/tracing/rtla/src/
Dutils.c280 char buffer[MAX_PATH]; in procfs_is_workload_pid()
299 snprintf(buffer, MAX_PATH, "/proc/%s/comm", proc_entry->d_name); in procfs_is_workload_pid()
304 memset(buffer, 0, MAX_PATH); in procfs_is_workload_pid()
305 retval = read(comm_fd, buffer, MAX_PATH); in procfs_is_workload_pid()
336 if (strlen(comm_prefix) >= MAX_PATH) { in set_comm_sched_attr()
338 MAX_PATH, comm_prefix); in set_comm_sched_attr()
Dutils.h9 #define MAX_PATH 1024 macro
/Linux-v6.1/tools/perf/arch/x86/util/
Diostat.c30 #ifndef MAX_PATH
31 #define MAX_PATH 1024 macro
147 char path[MAX_PATH]; in iio_mapping()
155 scnprintf(path, MAX_PATH, PLATFORM_MAPPING_PATH, pmu_idx, die); in iio_mapping()
182 char path[MAX_PATH]; in iio_pmu_count()
/Linux-v6.1/tools/vm/
Dpage-types.c35 #ifndef MAX_PATH
36 # define MAX_PATH 256 macro
535 char buf[MAX_PATH + 1]; in prepare_hwpoison_fd()
544 snprintf(buf, MAX_PATH, "%s/hwpoison/corrupt-pfn", in prepare_hwpoison_fd()
550 snprintf(buf, MAX_PATH, "%s/hwpoison/unpoison-pfn", in prepare_hwpoison_fd()
/Linux-v6.1/tools/testing/selftests/bpf/
DREADME.rst85 if (filepart_length <= MAX_PATH) {
/Linux-v6.1/Documentation/trace/
Dftrace.rst2377 #define MAX_PATH 256
2381 static char tracefs[MAX_PATH+1];
2395 STR(MAX_PATH)
2416 static char trace_file[MAX_PATH+1];
2417 snprintf(trace_file, MAX_PATH, "%s/%s", find_tracefs(), file_name);