From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
To: libc-alpha@sourceware.org
Subject: [PATCH 0/2] Use procutils on getsysstats and malloc-hugepages
Date: Tue, 12 Sep 2023 10:15:04 -0300 [thread overview]
Message-ID: <20230912131506.2571612-1-adhemerval.zanella@linaro.org> (raw)
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(-)
--
2.34.1
next reply other threads:[~2023-09-12 13:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-12 13:15 Adhemerval Zanella [this message]
2023-09-12 13:15 ` [PATCH 1/2] linux: Use procutils_read_file on getsysstats Adhemerval Zanella
2023-09-12 13:15 ` [PATCH 2/2] linux: Use procutils_read_file on malloc-hugepages Adhemerval Zanella
2023-09-12 13:35 ` Andreas Schwab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230912131506.2571612-1-adhemerval.zanella@linaro.org \
--to=adhemerval.zanella@linaro.org \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).