Searched refs:proc_path (Results 1 – 3 of 3) sorted by relevance
/tools/testing/selftests/clone3/ |
D | clone3_set_tid.c | 155 char proc_path[100] = {0}; in main() local 342 snprintf(proc_path, sizeof(proc_path), "/proc/%d/status", pid); in main() 343 f = fopen(proc_path, "r"); in main() 347 strerror(errno), proc_path); in main()
|
/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 4445 char proc_path[100] = {0}; in get_proc_stat() local 4449 snprintf(proc_path, sizeof(proc_path), "/proc/%d/stat", pid); in get_proc_stat() 4450 ASSERT_EQ(get_nth(_metadata, proc_path, 3, &line), 1); in get_proc_stat() 4544 char proc_path[100] = {0}; in get_proc_syscall() local 4549 snprintf(proc_path, sizeof(proc_path), "/proc/%d/syscall", pid); in get_proc_syscall() 4550 nread = get_nth(_metadata, proc_path, 1, &line); in get_proc_syscall()
|
/tools/perf/util/ |
D | synthetic-events.c | 1010 char proc_path[PATH_MAX]; in perf_event__synthesize_threads() local 1022 snprintf(proc_path, sizeof(proc_path), "%s/proc", machine->root_dir); in perf_event__synthesize_threads() 1023 n = scandir(proc_path, &dirent, filter_task, NULL); in perf_event__synthesize_threads()
|