/third_party/ltp/testcases/kernel/syscalls/getrusage/ |
H A D | getrusage02.c | 10 * Verify that getrusage() fails with: 26 return getrusage(who, usage); in libc_getrusage() 45 int (*getrusage)(int who, void *usage); member 48 { .getrusage = libc_getrusage, .desc = "libc getrusage()"}, 50 { .getrusage = sys_getrusage, .desc = "__NR_getrusage syscall"}, 59 tv->getrusage == libc_getrusage) { in verify_getrusage() 64 TST_EXP_FAIL(tv->getrusage(tc[i].who, tc[i].usage), tc[i].exp_errno, in verify_getrusage() 65 "getrusage(%i, %p)", tc[i].who, tc[i].usage); in verify_getrusage()
|
H A D | getrusage01.c | 11 * Test that getrusage() with RUSAGE_SELF and RUSAGE_CHILDREN succeeds. 29 TST_EXP_PASS(getrusage(tc[i].who, usage), "getrusage(%s, %p)", tc[i].desc, usage); in run()
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
H A D | getrusage.c | 29 int result = getrusage(RUSAGE_SELF, &usage); in getrusage_0100() 41 int result = getrusage(RUSAGE_CHILDREN, &usage); in getrusage_0200() 53 int result = getrusage(RUSAGE_THREAD, &usage); in getrusage_0300() 65 int result = getrusage(100, &usage); in getrusage_0400() 77 int result = getrusage(RUSAGE_SELF, NULL); in getrusage_0500()
|
/third_party/python/Lib/test/ |
H A D | test_resource.py | 101 @unittest.skipUnless(hasattr(resource, "getrusage"), "needs getrusage") 103 self.assertRaises(TypeError, resource.getrusage) 104 self.assertRaises(TypeError, resource.getrusage, 42, 42) 105 usageself = resource.getrusage(resource.RUSAGE_SELF) 106 usagechildren = resource.getrusage(resource.RUSAGE_CHILDREN) 109 usageboth = resource.getrusage(resource.RUSAGE_BOTH) 113 usage_thread = resource.getrusage(resource.RUSAGE_THREAD)
|
/third_party/node/test/wasi/c/ |
H A D | getrusage.c | 14 r = getrusage(RUSAGE_SELF, &ru1); in main() 20 r = getrusage(RUSAGE_SELF, &ru2); in main()
|
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
H A D | resource.h | 51 int getrusage (int, struct rusage *); 109 __REDIR(getrusage, __getrusage_time64);
|
/third_party/musl/porting/uniproton/kernel/include/sys/ |
H A D | resource.h | 51 int getrusage (int, struct rusage *); 109 __REDIR(getrusage, __getrusage_time64);
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
H A D | resource.h | 51 int getrusage (int, struct rusage *); 109 __REDIR(getrusage, __getrusage_time64);
|
/third_party/musl/porting/liteos_a/kernel/include/sys/ |
H A D | resource.h | 51 int getrusage (int, struct rusage *); 109 __REDIR(getrusage, __getrusage_time64);
|
/third_party/musl/include/sys/ |
H A D | resource.h | 51 int getrusage (int, struct rusage *); 109 __REDIR(getrusage, __getrusage_time64);
|
/third_party/skia/third_party/externals/spirv-tools/source/util/ |
H A D | timer.cpp | 45 if (getrusage(RUSAGE_SELF, &usage_before_) == -1) in Start() 62 if (getrusage(RUSAGE_SELF, &usage_after_) == -1) in Stop()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/util/ |
H A D | timer.cpp | 45 if (getrusage(RUSAGE_SELF, &usage_before_) == -1) in Start() 62 if (getrusage(RUSAGE_SELF, &usage_after_) == -1) in Stop()
|
/third_party/spirv-tools/source/util/ |
H A D | timer.cpp | 45 if (getrusage(RUSAGE_SELF, &usage_before_) == -1) in Start() 62 if (getrusage(RUSAGE_SELF, &usage_after_) == -1) in Stop()
|
/third_party/rust/crates/nix/src/sys/ |
H A D | resource.rs | 269 /// Whose resource usage should be returned by [`getrusage`]. 286 /// Output of `getrusage` with information about resource usage. Some of the fields 403 /// * [getrusage(2)](https://pubs.opengroup.org/onlinepubs/009696699/functions/getrusage.html) 404 /// * [Linux](https://man7.org/linux/man-pages/man2/getrusage.2.html) 405 /// * [FreeBSD](https://www.freebsd.org/cgi/man.cgi?query=getrusage) 406 /// * [NetBSD](https://man.netbsd.org/getrusage.2) 407 /// * [MacOS](https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getrusage.2.html) 411 /// Note: `getrusage` provides a safe wrapper to libc's [`libc::getrusage`] 412 pub fn getrusage(who: UsageWho) -> Result<Usage> { getrusage() functions [all...] |
/third_party/glslang/glslang/OSDependent/Unix/ |
H A D | ossource.cpp | 55 if (getrusage(RUSAGE_SELF, &usage) == 0) in OS_DumpMemoryCounters()
|
/third_party/benchmark/src/ |
H A D | timers.cc | 146 if (getrusage(RUSAGE_SELF, &ru) == 0) return MakeTime(ru); in ProcessCPUUsage() 147 DiagnoseAndExit("getrusage(RUSAGE_SELF, ...) failed"); in ProcessCPUUsage() 186 if (getrusage(RUSAGE_LWP, &ru) == 0) return MakeTime(ru); in ThreadCPUUsage() 187 DiagnoseAndExit("getrusage(RUSAGE_LWP, ...) failed"); in ThreadCPUUsage()
|
/third_party/musl/src/misc/ |
H A D | getrusage.c | 6 int getrusage(int who, struct rusage *ru) in getrusage() function
|
/third_party/musl/compat/time32/ |
H A D | getrusage_time32.c | 28 int r = getrusage(who, &ru); in __getrusage_time32()
|
/third_party/musl/libc-test/src/api/ |
H A D | sys_resource.c | 37 {int(*p)(int,struct rusage*) = getrusage;} in f()
|
/third_party/json/tests/thirdparty/Fuzzer/ |
H A D | FuzzerUtilPosix.cpp | 93 if (getrusage(RUSAGE_SELF, &usage)) in GetPeakRSSMb()
|
/third_party/skia/tools/ |
H A D | ProcStats.cpp | 31 getrusage(RUSAGE_SELF, &ru); in getMaxResidentSetSizeBytes()
|
/third_party/ltp/utils/benchmark/ebizzy-0.3/ |
H A D | ebizzy.c | 477 getrusage(RUSAGE_SELF, &start_ru); in start_threads() 483 getrusage(RUSAGE_SELF, &end_ru); in start_threads()
|
/third_party/musl/libc-test/src/common/ |
H A D | test.h | 63 #define __getrusage_time64 getrusage
|
/third_party/json/tests/thirdparty/Fuzzer/afl/ |
H A D | afl_driver.cpp | 115 if (getrusage(RUSAGE_SELF, &usage)) in GetPeakRSSMb()
|
/third_party/ltp/testcases/kernel/controllers/cpuctl/ |
H A D | cpuctl_def_task01.c | 193 getrusage(0, &cpu_usage); in main()
|