/external/strace/tests-m32/ |
D | wait4.c | 40 sprint_rusage(const struct rusage *const ru) in sprint_rusage() 89 do_wait4(pid_t pid, int *wstatus, int options, struct rusage *ru) in do_wait4() 128 TAIL_ALLOC_OBJECT_CONST_PTR(struct rusage, rusage); in main() 129 if (wait4(pid, s, WNOHANG|__WALL, rusage)) in main() 131 tprintf("wait4(%d, %p, WNOHANG|__WALL, %p) = 0\n", pid, s, rusage); in main() 136 assert(do_wait4(pid, s, 0, rusage) == pid); in main() 139 " = %d\n", pid, sprint_rusage(rusage), pid); in main() 150 assert(do_wait4(pid, s, __WALL, rusage) == pid); in main() 153 ", __WALL, %s) = %d\n", pid, sprint_rusage(rusage), pid); in main() 171 assert(do_wait4(pid, s, WSTOPPED, rusage) == pid); in main() [all …]
|
D | waitid.c | 42 sprint_rusage(const struct rusage *const ru) in sprint_rusage() 151 const struct rusage *const rusage) in do_waitid() argument 158 infop, poison(options), rusage); in do_waitid() 192 TAIL_ALLOC_OBJECT_CONST_PTR(struct rusage, rusage); in main() 193 if (do_waitid(P_PID, pid, sinfo, WNOHANG|WEXITED|WSTOPPED, rusage)) in main() 196 pid, sprint_rusage(rusage)); in main() 201 if (do_waitid(P_PID, pid, sinfo, WEXITED, rusage)) in main() 204 pid, sprint_siginfo(sinfo, "42"), sprint_rusage(rusage)); in main() 215 if (do_waitid(P_PID, pid, sinfo, WEXITED, rusage)) in main() 218 pid, sprint_siginfo(sinfo, "SIGUSR1"), sprint_rusage(rusage)); in main() [all …]
|
D | getrusage.c | 45 invoke_print(int who, const char *who_str, struct rusage *usage) in invoke_print() 72 TAIL_ALLOC_OBJECT_CONST_PTR(struct rusage, usage); in main()
|
/external/strace/tests-mx32/ |
D | wait4.c | 40 sprint_rusage(const struct rusage *const ru) in sprint_rusage() 89 do_wait4(pid_t pid, int *wstatus, int options, struct rusage *ru) in do_wait4() 128 TAIL_ALLOC_OBJECT_CONST_PTR(struct rusage, rusage); in main() 129 if (wait4(pid, s, WNOHANG|__WALL, rusage)) in main() 131 tprintf("wait4(%d, %p, WNOHANG|__WALL, %p) = 0\n", pid, s, rusage); in main() 136 assert(do_wait4(pid, s, 0, rusage) == pid); in main() 139 " = %d\n", pid, sprint_rusage(rusage), pid); in main() 150 assert(do_wait4(pid, s, __WALL, rusage) == pid); in main() 153 ", __WALL, %s) = %d\n", pid, sprint_rusage(rusage), pid); in main() 171 assert(do_wait4(pid, s, WSTOPPED, rusage) == pid); in main() [all …]
|
D | waitid.c | 42 sprint_rusage(const struct rusage *const ru) in sprint_rusage() 151 const struct rusage *const rusage) in do_waitid() argument 158 infop, poison(options), rusage); in do_waitid() 192 TAIL_ALLOC_OBJECT_CONST_PTR(struct rusage, rusage); in main() 193 if (do_waitid(P_PID, pid, sinfo, WNOHANG|WEXITED|WSTOPPED, rusage)) in main() 196 pid, sprint_rusage(rusage)); in main() 201 if (do_waitid(P_PID, pid, sinfo, WEXITED, rusage)) in main() 204 pid, sprint_siginfo(sinfo, "42"), sprint_rusage(rusage)); in main() 215 if (do_waitid(P_PID, pid, sinfo, WEXITED, rusage)) in main() 218 pid, sprint_siginfo(sinfo, "SIGUSR1"), sprint_rusage(rusage)); in main() [all …]
|
D | getrusage.c | 45 invoke_print(int who, const char *who_str, struct rusage *usage) in invoke_print() 72 TAIL_ALLOC_OBJECT_CONST_PTR(struct rusage, usage); in main()
|
/external/strace/tests/ |
D | wait4.c | 40 sprint_rusage(const struct rusage *const ru) in sprint_rusage() 89 do_wait4(pid_t pid, int *wstatus, int options, struct rusage *ru) in do_wait4() 128 TAIL_ALLOC_OBJECT_CONST_PTR(struct rusage, rusage); in main() 129 if (wait4(pid, s, WNOHANG|__WALL, rusage)) in main() 131 tprintf("wait4(%d, %p, WNOHANG|__WALL, %p) = 0\n", pid, s, rusage); in main() 136 assert(do_wait4(pid, s, 0, rusage) == pid); in main() 139 " = %d\n", pid, sprint_rusage(rusage), pid); in main() 150 assert(do_wait4(pid, s, __WALL, rusage) == pid); in main() 153 ", __WALL, %s) = %d\n", pid, sprint_rusage(rusage), pid); in main() 171 assert(do_wait4(pid, s, WSTOPPED, rusage) == pid); in main() [all …]
|
D | waitid.c | 42 sprint_rusage(const struct rusage *const ru) in sprint_rusage() 151 const struct rusage *const rusage) in do_waitid() argument 158 infop, poison(options), rusage); in do_waitid() 192 TAIL_ALLOC_OBJECT_CONST_PTR(struct rusage, rusage); in main() 193 if (do_waitid(P_PID, pid, sinfo, WNOHANG|WEXITED|WSTOPPED, rusage)) in main() 196 pid, sprint_rusage(rusage)); in main() 201 if (do_waitid(P_PID, pid, sinfo, WEXITED, rusage)) in main() 204 pid, sprint_siginfo(sinfo, "42"), sprint_rusage(rusage)); in main() 215 if (do_waitid(P_PID, pid, sinfo, WEXITED, rusage)) in main() 218 pid, sprint_siginfo(sinfo, "SIGUSR1"), sprint_rusage(rusage)); in main() [all …]
|
D | getrusage.c | 45 invoke_print(int who, const char *who_str, struct rusage *usage) in invoke_print() 72 TAIL_ALLOC_OBJECT_CONST_PTR(struct rusage, usage); in main()
|
/external/ltp/utils/ffsb-6.0-rc2/ |
D | util.c | 162 struct rusage rusage; in cpu_so_far() local 164 getrusage(RUSAGE_SELF, &rusage); in cpu_so_far() 167 ((double)rusage.ru_utime.tv_sec) + in cpu_so_far() 168 (((double)rusage.ru_utime.tv_usec) / 1000000.0) + in cpu_so_far() 169 ((double)rusage.ru_stime.tv_sec) + in cpu_so_far() 170 (((double)rusage.ru_stime.tv_usec) / 1000000.0); in cpu_so_far() 175 struct rusage rusage; in cpu_so_far_children() local 177 getrusage(RUSAGE_CHILDREN, &rusage); in cpu_so_far_children() 180 ((double)rusage.ru_utime.tv_sec) + in cpu_so_far_children() 181 (((double)rusage.ru_utime.tv_usec) / 1000000.0) + in cpu_so_far_children() [all …]
|
D | ffsb.h | 43 struct rusage before; 44 struct rusage after;
|
D | util.h | 44 void ffsb_getrusage(struct rusage *ru_self, struct rusage *ru_children);
|
/external/ltp/testcases/kernel/syscalls/wait4/ |
D | wait401.c | 37 struct rusage rusage; in run() local 45 TEST(wait4(pid, &status, 0, &rusage)); in run()
|
D | wait402.c | 56 struct rusage rusage; in main() local 65 TEST(wait4(epid, &status, 0, &rusage)); in main()
|
/external/ltp/testcases/kernel/syscalls/getrusage/ |
D | getrusage02.c | 84 static struct rusage usage; 88 struct rusage *usage; 95 RUSAGE_SELF, (struct rusage *)-1, EFAULT}
|
/external/compiler-rt/test/asan/TestCases/Posix/ |
D | wait3.cc | 22 struct rusage *ru = (struct rusage*)(x + argc * 3); in main()
|
D | wait4.cc | 29 struct rusage *ru = (struct rusage*)(x + argc * 3); in main()
|
/external/e2fsprogs/resize/ |
D | resource_track.c | 25 struct rusage r; in init_resource_track() 34 memset(&r, 0, sizeof(struct rusage)); in init_resource_track() 64 struct rusage r; in print_resource_track()
|
/external/python/cpython3/Lib/test/ |
D | test_wait3.py | 25 spid, status, rusage = os.wait3(os.WNOHANG) 32 self.assertTrue(rusage)
|
D | test_wait4.py | 27 spid, status, rusage = os.wait4(cpid, option) 33 self.assertTrue(rusage)
|
/external/python/cpython2/Lib/test/ |
D | test_wait4.py | 25 spid, status, rusage = os.wait4(cpid, option) 31 self.assertTrue(rusage)
|
D | test_wait3.py | 25 spid, status, rusage = os.wait3(os.WNOHANG) 32 self.assertTrue(rusage)
|
/external/libcxx/utils/google-benchmark/src/ |
D | timers.cc | 81 double MakeTime(struct rusage const& ru) { 134 struct rusage ru; in ProcessCPUUsage() 169 struct rusage ru; in ThreadCPUUsage()
|
/external/google-benchmark/src/ |
D | timers.cc | 81 double MakeTime(struct rusage const& ru) { 134 struct rusage ru; in ProcessCPUUsage() 169 struct rusage ru; in ThreadCPUUsage()
|
/external/e2fsprogs/e2fsck/ |
D | scantest.c | 55 struct rusage r; in init_resource_track() 73 struct rusage r; in print_resource_track()
|