Home
last modified time | relevance | path

Searched refs:getrusage (Results 1 - 25 of 55) sorted by relevance

123

/third_party/ltp/testcases/kernel/syscalls/getrusage/
H A Dgetrusage02.c10 * 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 Dgetrusage01.c11 * 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 Dgetrusage.c29 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 Dtest_resource.py101 @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 Dgetrusage.c14 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 Dresource.h51 int getrusage (int, struct rusage *);
109 __REDIR(getrusage, __getrusage_time64);
/third_party/musl/porting/uniproton/kernel/include/sys/
H A Dresource.h51 int getrusage (int, struct rusage *);
109 __REDIR(getrusage, __getrusage_time64);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
H A Dresource.h51 int getrusage (int, struct rusage *);
109 __REDIR(getrusage, __getrusage_time64);
/third_party/musl/porting/liteos_a/kernel/include/sys/
H A Dresource.h51 int getrusage (int, struct rusage *);
109 __REDIR(getrusage, __getrusage_time64);
/third_party/musl/include/sys/
H A Dresource.h51 int getrusage (int, struct rusage *);
109 __REDIR(getrusage, __getrusage_time64);
/third_party/skia/third_party/externals/spirv-tools/source/util/
H A Dtimer.cpp45 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 Dtimer.cpp45 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 Dtimer.cpp45 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 Dresource.rs269 /// 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 Dossource.cpp55 if (getrusage(RUSAGE_SELF, &usage) == 0) in OS_DumpMemoryCounters()
/third_party/benchmark/src/
H A Dtimers.cc146 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 Dgetrusage.c6 int getrusage(int who, struct rusage *ru) in getrusage() function
/third_party/musl/compat/time32/
H A Dgetrusage_time32.c28 int r = getrusage(who, &ru); in __getrusage_time32()
/third_party/musl/libc-test/src/api/
H A Dsys_resource.c37 {int(*p)(int,struct rusage*) = getrusage;} in f()
/third_party/json/tests/thirdparty/Fuzzer/
H A DFuzzerUtilPosix.cpp93 if (getrusage(RUSAGE_SELF, &usage)) in GetPeakRSSMb()
/third_party/skia/tools/
H A DProcStats.cpp31 getrusage(RUSAGE_SELF, &ru); in getMaxResidentSetSizeBytes()
/third_party/ltp/utils/benchmark/ebizzy-0.3/
H A Debizzy.c477 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 Dtest.h63 #define __getrusage_time64 getrusage
/third_party/json/tests/thirdparty/Fuzzer/afl/
H A Dafl_driver.cpp115 if (getrusage(RUSAGE_SELF, &usage)) in GetPeakRSSMb()
/third_party/ltp/testcases/kernel/controllers/cpuctl/
H A Dcpuctl_def_task01.c193 getrusage(0, &cpu_usage); in main()

Completed in 9 milliseconds

123