Home
last modified time | relevance | path

Searched refs:rusage (Results 1 – 25 of 134) sorted by relevance

123456

/external/strace/tests-m32/
Dwait4.c40 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 …]
Dwaitid.c42 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 …]
Dgetrusage.c45 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/
Dwait4.c40 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 …]
Dwaitid.c42 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 …]
Dgetrusage.c45 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/
Dwait4.c40 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 …]
Dwaitid.c42 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 …]
Dgetrusage.c45 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/
Dutil.c162 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 …]
Dffsb.h43 struct rusage before;
44 struct rusage after;
Dutil.h44 void ffsb_getrusage(struct rusage *ru_self, struct rusage *ru_children);
/external/ltp/testcases/kernel/syscalls/wait4/
Dwait401.c37 struct rusage rusage; in run() local
45 TEST(wait4(pid, &status, 0, &rusage)); in run()
Dwait402.c56 struct rusage rusage; in main() local
65 TEST(wait4(epid, &status, 0, &rusage)); in main()
/external/ltp/testcases/kernel/syscalls/getrusage/
Dgetrusage02.c84 static struct rusage usage;
88 struct rusage *usage;
95 RUSAGE_SELF, (struct rusage *)-1, EFAULT}
/external/compiler-rt/test/asan/TestCases/Posix/
Dwait3.cc22 struct rusage *ru = (struct rusage*)(x + argc * 3); in main()
Dwait4.cc29 struct rusage *ru = (struct rusage*)(x + argc * 3); in main()
/external/e2fsprogs/resize/
Dresource_track.c25 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/
Dtest_wait3.py25 spid, status, rusage = os.wait3(os.WNOHANG)
32 self.assertTrue(rusage)
Dtest_wait4.py27 spid, status, rusage = os.wait4(cpid, option)
33 self.assertTrue(rusage)
/external/python/cpython2/Lib/test/
Dtest_wait4.py25 spid, status, rusage = os.wait4(cpid, option)
31 self.assertTrue(rusage)
Dtest_wait3.py25 spid, status, rusage = os.wait3(os.WNOHANG)
32 self.assertTrue(rusage)
/external/libcxx/utils/google-benchmark/src/
Dtimers.cc81 double MakeTime(struct rusage const& ru) {
134 struct rusage ru; in ProcessCPUUsage()
169 struct rusage ru; in ThreadCPUUsage()
/external/google-benchmark/src/
Dtimers.cc81 double MakeTime(struct rusage const& ru) {
134 struct rusage ru; in ProcessCPUUsage()
169 struct rusage ru; in ThreadCPUUsage()
/external/e2fsprogs/e2fsck/
Dscantest.c55 struct rusage r; in init_resource_track()
73 struct rusage r; in print_resource_track()

123456