Re: [PATCH glibc] Use proc_getchildren_rusage when available in getrusage and times.

2024-02-16 Thread Samuel Thibault
Flavio Cruz, le ven. 16 févr. 2024 13:26:30 -0500, a ecrit: > diff --git a/sysdeps/mach/configure.ac b/sysdeps/mach/configure.ac > index 730fb25d..db1e453f 100644 > --- a/sysdeps/mach/configure.ac > +++ b/sysdeps/mach/configure.ac Mach is not necessarily about hurd :) Better put it in sysdeps/mac

Re: [PATCH hurd] Add proc_getchildren_rusage RPC and track rusage for children and descendants

2024-02-16 Thread Samuel Thibault
Applied, thanks! Flavio Cruz, le ven. 16 févr. 2024 13:26:29 -0500, a ecrit: > --- > hurd/process.defs | 6 ++ > proc/info.c | 8 > proc/proc.h | 4 +++- > proc/wait.c | 2 ++ > 4 files changed, 19 insertions(+), 1 deletion(-) > > diff --git a/hurd/process.defs b/h

Patch series for children process resource accounting

2024-02-16 Thread Flavio Cruz
These patches implement getrusage(RUSAGE_CHILDREN, _) and populate child related data in times(_). This should fix the problem we have with building the latest grep which uses times(_) to get the cpu cycles in the test suite: https://buildd.debian.org/status/fetch.php?pkg=grep&arch=hurd-i386&ver=

[PATCH glibc] Use proc_getchildren_rusage when available in getrusage and times.

2024-02-16 Thread Flavio Cruz
--- config.h.in | 3 +++ sysdeps/mach/configure| 28 sysdeps/mach/configure.ac | 9 + sysdeps/mach/hurd/getrusage.c | 8 ++-- sysdeps/mach/hurd/times.c | 18 +- 5 files changed, 63 insertions(+), 3 deleti

[PATCH hurd] Add proc_getchildren_rusage RPC and track rusage for children and descendants

2024-02-16 Thread Flavio Cruz
--- hurd/process.defs | 6 ++ proc/info.c | 8 proc/proc.h | 4 +++- proc/wait.c | 2 ++ 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/hurd/process.defs b/hurd/process.defs index 9a8b3a1..007aa2b 100644 --- a/hurd/process.defs +++ b/hurd/process.defs