Home
last modified time | relevance | path

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

/external/ltp/lib/
Dtst_process_state.c35 char proc_path[128], cur_state; in tst_process_state_wait() local
37 snprintf(proc_path, sizeof(proc_path), "/proc/%i/stat", pid); in tst_process_state_wait()
40 safe_file_scanf(file, lineno, cleanup_fn, proc_path, in tst_process_state_wait()
52 char proc_path[128], cur_state; in tst_process_state_wait2() local
54 snprintf(proc_path, sizeof(proc_path), "/proc/%i/stat", pid); in tst_process_state_wait2()
57 FILE *f = fopen(proc_path, "r"); in tst_process_state_wait2()
60 proc_path, strerror(errno)); in tst_process_state_wait2()
67 proc_path, strerror(errno)); in tst_process_state_wait2()
/external/chromium-trace/catapult/systrace/atrace_helper/jni/
Dfile_utils.cc31 void ForEachPidInProcPath(const char* proc_path, in ForEachPidInProcPath() argument
33 DIR* root_dir = opendir(proc_path); in ForEachPidInProcPath()
80 char proc_path[128]; in ReadProcFile() local
81 snprintf(proc_path, sizeof(proc_path), "/proc/%d/%s", pid, proc_file); in ReadProcFile()
82 return ReadFile(proc_path, buf, length); in ReadProcFile()
91 char proc_path[128]; in ReadProcFileTrimmed() local
92 snprintf(proc_path, sizeof(proc_path), "/proc/%d/%s", pid, proc_file); in ReadProcFileTrimmed()
93 return ReadFileTrimmed(proc_path, buf, length); in ReadProcFileTrimmed()
Dfile_utils.h33 void ForEachPidInProcPath(const char* proc_path,
/external/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()
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_procmaps_solaris.cpp54 char proc_path[PATH_MAX + 1]; in Next() local
56 internal_snprintf(proc_path, sizeof(proc_path), "/proc/self/path/%s", in Next()
58 internal_readlink(proc_path, segment->filename, segment->filename_size); in Next()
/external/linux-kselftest/tools/testing/selftests/clone3/
Dclone3_set_tid.c155 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()
/external/rust/crates/num_cpus/src/
Dlinux.rs228 fn load_cpu<P: AsRef<Path>>(proc_path: P) -> Option<MountInfo> { in load_cpu()
229 let file = some!(File::open(proc_path).ok()); in load_cpu()
263 fn load_cpu<P: AsRef<Path>>(proc_path: P) -> Option<Subsys> { in load_cpu()
264 let file = some!(File::open(proc_path).ok()); in load_cpu()
/external/ppp/pppd/
Dsys-linux.c1416 static char proc_path[MAXPATHLEN]; variable
1426 strlcpy (proc_path, "/proc", sizeof(proc_path)); in path_to_procfs()
1434 strlcpy(proc_path, mntent->mnt_dir, sizeof(proc_path)); in path_to_procfs()
1435 proc_path_len = strlen(proc_path); in path_to_procfs()
1443 strlcpy(proc_path + proc_path_len, tail, in path_to_procfs()
1444 sizeof(proc_path) - proc_path_len); in path_to_procfs()
1445 return proc_path; in path_to_procfs()
/external/igt-gpu-tools/lib/
Digt_aux.c1418 __igt_lsof_fds(proc_t *proc_info, int *state, char *proc_path, const char *dir) in __igt_lsof_fds() argument
1428 DIR *dp = opendir(proc_path); in __igt_lsof_fds()
1442 snprintf(path, sizeof(path), "%s/%s", proc_path, d->d_name); in __igt_lsof_fds()
/external/libusb/libusb/os/
Dlinux_usbfs.c599 char proc_path[32]; in linux_get_device_address() local
602 sprintf(proc_path, "/proc/self/fd/%d", fd); in linux_get_device_address()
603 r = readlink(proc_path, fd_path, PATH_MAX - 1); in linux_get_device_address()
/external/crosvm/src/
Dlinux.rs987 let proc_path = Path::new("/proc"); in create_gpu_device() localVariable
989 proc_path, in create_gpu_device()
990 proc_path, in create_gpu_device()