Searched refs:proc_path (Results 1 – 5 of 5) sorted by relevance
/third_party/ltp/lib/ |
D | tst_process_state.c | 18 char proc_path[128], cur_state; in tst_process_state_wait() local 21 snprintf(proc_path, sizeof(proc_path), "/proc/%i/stat", pid); in tst_process_state_wait() 24 safe_file_scanf(file, lineno, cleanup_fn, proc_path, in tst_process_state_wait() 44 char proc_path[128], cur_state; in tst_process_state_wait2() local 46 snprintf(proc_path, sizeof(proc_path), "/proc/%i/stat", pid); in tst_process_state_wait2() 49 FILE *f = fopen(proc_path, "r"); in tst_process_state_wait2() 53 proc_path, strerror(errno)); in tst_process_state_wait2() 60 proc_path, strerror(errno)); in tst_process_state_wait2()
|
D | tst_safe_file_at.c | 19 char proc_path[32]; in tst_decode_fd() local 24 sprintf(proc_path, "/proc/self/fd/%d", fd); in tst_decode_fd() 25 ret = readlink(proc_path, fd_path, sizeof(fd_path)); in tst_decode_fd()
|
/third_party/ltp/testcases/open_posix_testsuite/include/ |
D | proc.h | 25 char proc_path[128], cur_state; in tst_process_state_wait3() local 33 snprintf(proc_path, sizeof(proc_path), "/proc/%i/stat", pid); in tst_process_state_wait3() 36 FILE *f = fopen(proc_path, "r"); in tst_process_state_wait3() 40 proc_path, strerror(errno)); in tst_process_state_wait3() 47 proc_path, strerror(errno)); in tst_process_state_wait3()
|
/third_party/ltp/testcases/kernel/containers/userns/ |
D | userns08.c | 44 char proc_path[PATH_MAX]; in write_mapping() local 47 sprintf(proc_path, "/proc/%d", (int)proc_in_ns); in write_mapping() 48 proc_dir = SAFE_OPEN(proc_path, O_DIRECTORY); in write_mapping()
|
/third_party/mesa3d/.gitlab-ci/common/ |
D | intel-gpu-freq.sh | 347 local proc_path=/proc/${pid:-invalid}/cmdline 348 [ -r ${proc_path} ] && grep -qs "${0##*/}" ${proc_path} && {
|