Home
last modified time | relevance | path

Searched refs:proc_path (Results 1 – 5 of 5) sorted by relevance

/third_party/ltp/lib/
Dtst_process_state.c18 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()
Dtst_safe_file_at.c19 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/
Dproc.h25 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/
Duserns08.c44 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/
Dintel-gpu-freq.sh347 local proc_path=/proc/${pid:-invalid}/cmdline
348 [ -r ${proc_path} ] && grep -qs "${0##*/}" ${proc_path} && {