Home
last modified time | relevance | path

Searched refs:getrusage (Results 1 – 25 of 101) sorted by relevance

12345

/third_party/ltp/testcases/kernel/syscalls/getrusage/
Dgetrusage02.c26 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()
Dgetrusage01.c29 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/
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()
Dtest_src_functionalext_supplement_misc.gni50 "getrusage",
/third_party/python/Lib/test/
Dtest_resource.py102 self.assertRaises(TypeError, resource.getrusage)
103 self.assertRaises(TypeError, resource.getrusage, 42, 42)
104 usageself = resource.getrusage(resource.RUSAGE_SELF)
105 usagechildren = resource.getrusage(resource.RUSAGE_CHILDREN)
108 usageboth = resource.getrusage(resource.RUSAGE_BOTH)
112 usage_thread = resource.getrusage(resource.RUSAGE_THREAD)
/third_party/node/test/wasi/c/
Dgetrusage.c14 r = getrusage(RUSAGE_SELF, &ru1); in main()
20 r = getrusage(RUSAGE_SELF, &ru2); in main()
/third_party/rust/crates/nix/src/sys/
Dresource.rs412 pub fn getrusage(who: UsageWho) -> Result<Usage> { in getrusage() function
415 let res = libc::getrusage(who as c_int, rusage.as_mut_ptr()); in getrusage()
422 use super::{getrusage, UsageWho};
434 let usage = getrusage(UsageWho::RUSAGE_SELF) in test_self_cpu_time()
/third_party/musl/porting/liteos_a/kernel/include/sys/
Dresource.h51 int getrusage (int, struct rusage *);
109 __REDIR(getrusage, __getrusage_time64);
/third_party/musl/porting/uniproton/kernel/include/sys/
Dresource.h51 int getrusage (int, struct rusage *);
109 __REDIR(getrusage, __getrusage_time64);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
Dresource.h51 int getrusage (int, struct rusage *);
109 __REDIR(getrusage, __getrusage_time64);
/third_party/musl/porting/liteos_m/kernel/include/sys/
Dresource.h51 int getrusage (int, struct rusage *);
109 __REDIR(getrusage, __getrusage_time64);
/third_party/musl/ndk_musl_include/sys/
Dresource.h51 int getrusage (int, struct rusage *);
109 __REDIR(getrusage, __getrusage_time64);
/third_party/musl/include/sys/
Dresource.h51 int getrusage (int, struct rusage *);
109 __REDIR(getrusage, __getrusage_time64);
/third_party/spirv-tools/source/util/
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/spirv-tools/source/util/
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/
Dtimer.cpp45 if (getrusage(RUSAGE_SELF, &usage_before_) == -1) in Start()
62 if (getrusage(RUSAGE_SELF, &usage_after_) == -1) in Stop()
/third_party/gstreamer/gstreamer/plugins/tracers/
Dgstrusage.c178 getrusage (RUSAGE_SELF, &ru); in do_stats()
191 getrusage (RUSAGE_THREAD, &ru); in do_stats()
198 getrusage (RUSAGE_SELF, &ru); in do_stats()
201 getrusage (RUSAGE_THREAD, &ru); in do_stats()
/third_party/python/Doc/library/
Dresource.rst274 .. function:: getrusage(who)
288 print(getrusage(RUSAGE_SELF))
293 print(getrusage(RUSAGE_SELF))
306 remaining values are integers. Consult the :manpage:`getrusage(2)` man page for
354 The following :const:`RUSAGE_\*` symbols are passed to the :func:`getrusage`
360 Pass to :func:`getrusage` to request resources consumed by the calling
366 Pass to :func:`getrusage` to request resources consumed by child processes
372 Pass to :func:`getrusage` to request resources consumed by both the current
378 Pass to :func:`getrusage` to request resources consumed by the current
/third_party/gstreamer/gstplugins_bad/gst/transcode/
Dgst-cpu-throttling-clock.c95 getrusage (RUSAGE_SELF, &ru); in gst_transcoder_adjust_wait_time()
211 getrusage (RUSAGE_SELF, &self->priv->last_usage); in gst_cpu_throttling_clock_init()
/third_party/benchmark/src/
Dtimers.cc137 if (getrusage(RUSAGE_SELF, &ru) == 0) return MakeTime(ru); in ProcessCPUUsage()
173 if (getrusage(RUSAGE_LWP, &ru) == 0) return MakeTime(ru); in ThreadCPUUsage()
/third_party/musl/compat/time32/
Dgetrusage_time32.c28 int r = getrusage(who, &ru); in __getrusage_time32()
/third_party/musl/src/misc/
Dgetrusage.c6 int getrusage(int who, struct rusage *ru) in getrusage() function
/third_party/musl/libc-test/src/api/
Dsys_resource.c37 {int(*p)(int,struct rusage*) = getrusage;} in f()
/third_party/glslang/glslang/OSDependent/Unix/
Dossource.cpp200 if (getrusage(RUSAGE_SELF, &usage) == 0) in OS_DumpMemoryCounters()
/third_party/ltp/utils/benchmark/ebizzy-0.3/
Debizzy.c474 getrusage(RUSAGE_SELF, &start_ru); in start_threads()
480 getrusage(RUSAGE_SELF, &end_ru); in start_threads()

12345