mbox series

[0/2] Use procutils on getsysstats and malloc-hugepages

Message ID 20230912131506.2571612-1-adhemerval.zanella@linaro.org
Headers show
Series Use procutils on getsysstats and malloc-hugepages | expand

Message

Adhemerval Zanella Sept. 12, 2023, 1:15 p.m. UTC
It allows consolidate the Linux code that parses procfs/sysfs.

Adhemerval Zanella (2):
  linux: Use procutils_read_file on getsysstats
  linux: Use procutils_read_file on malloc-hugepages

 sysdeps/aarch64/Makefile                   |   5 +-
 sysdeps/unix/sysv/linux/Makefile           |   6 +
 sysdeps/unix/sysv/linux/getsysstats.c      | 177 ++++++---------------
 sysdeps/unix/sysv/linux/malloc-hugepages.c |  68 ++++----
 sysdeps/unix/sysv/linux/pidfd_getpid.c     |   2 +-
 sysdeps/unix/sysv/linux/procutils.c        |   4 +-
 sysdeps/unix/sysv/linux/procutils.h        |   4 +-
 7 files changed, 95 insertions(+), 171 deletions(-)