procps/proc
Craig Small a7afe06e6f library: adding IO accounting
This is a modification of MR !122 by @renit1609 to fit the new
library.

Problem statement:
The procps library has no PROC_FILLIO flag to
fetch the proc field "/proc/[pid]/io" data
process-wise.
IO Accounting is not included as part of procps.

Requirement:
We have a requirement to fetch process wise
IO utilization which can be used for monitoring.

When looking through the procps library, I see
that IO Accounting (/proc/[pid]/io) is not being
included as part of procps. There is no such
flag like PROC_FILLIO being included in readproc.h .

Solution:
While looking at the implementation done for
other proc fields, I used the spare bits in app code.
I renamed PROC_SPARE_1 as PROC_FILLIO, the spare bit from
PROC_SPARE_* and used it for fetching /proc/[pid]/io
data as part of the procps library similar to other
fields. I moved the PROC_SPARE_* bits each by 1 bit
to retain the spare bits. Meanwhile added the IO fields
in proc_t structure.

References:
 procps-ng/procps!122
 procps-ng/procps#184
2021-04-24 22:38:48 +10:00
..
.gitignore build-sys: added a 'test_Itemtables' to testing scheme 2020-08-17 21:49:14 +10:00
COPYING miscellaneous: clean up trailing whitespace once again 2013-04-07 18:05:01 +10:00
devname.c all: make buildable again for new 'misc.h' header file 2021-01-21 17:30:25 +11:00
devname.h library: eliminate inappropriate '__BEGIN_DECLS' macro 2018-05-06 07:19:38 +10:00
diskstats.c library: normalized 'extents_free_all' use across APIs 2021-02-18 18:35:32 +11:00
diskstats.h library: update those source files for copyright dates 2021-02-09 16:40:52 +11:00
escape.c escape.c: Fix missing nl_langinfo on certain configs 2021-04-24 11:46:48 +10:00
escape.h library: refactor 'escape' logic for newlib essentials 2020-12-29 08:48:23 +11:00
libproc-2.pc.in library: Rename to libproc-2 2021-02-20 22:30:31 +11:00
libproc-2.sym library: Rename to libproc-2 2021-02-20 22:30:31 +11:00
meminfo.c library: tweaked key used in hash table, <meminfo> api 2021-02-28 21:18:26 +11:00
meminfo.h library: update those source files for copyright dates 2021-02-09 16:40:52 +11:00
misc.h misc: Update Craig's email 2021-01-21 17:37:48 +11:00
namespace.c all: make buildable again for new 'misc.h' header file 2021-01-21 17:30:25 +11:00
numa.c library: set stage for NUMA node field display support 2017-05-22 21:38:10 +10:00
numa.h library: eliminate inappropriate '__BEGIN_DECLS' macro 2018-05-06 07:19:38 +10:00
pids.c library: adding IO accounting 2021-04-24 22:38:48 +10:00
pids.h library: adding IO accounting 2021-04-24 22:38:48 +10:00
procps-private.h library: eliminate unused 'FUNCTION' in private header 2020-09-13 10:00:49 +10:00
pwcache.c library: eliminate all dependencies on alloc.h/alloc.c 2017-12-20 21:18:53 +11:00
pwcache.h library: eliminate inappropriate '__BEGIN_DECLS' macro 2018-05-06 07:19:38 +10:00
readproc.c library: adding IO accounting 2021-04-24 22:38:48 +10:00
readproc.h library: adding IO accounting 2021-04-24 22:38:48 +10:00
slabinfo.c library: normalized 'extents_free_all' use across APIs 2021-02-18 18:35:32 +11:00
slabinfo.h library: update those source files for copyright dates 2021-02-09 16:40:52 +11:00
stat.c library: update those source files for copyright dates 2021-02-09 16:40:52 +11:00
stat.h library: update those source files for copyright dates 2021-02-09 16:40:52 +11:00
sysinfo.c all: make buildable again for new 'misc.h' header file 2021-01-21 17:30:25 +11:00
test_Itemtables.c build-sys: proper fix for the 'test_Itemtables' module 2020-08-18 10:19:53 +10:00
test_namespace.c all: make buildable again for new 'misc.h' header file 2021-01-21 17:30:25 +11:00
test_pids.c testsuite: Correct include 2020-07-05 21:18:36 +10:00
test_sysinfo.c all: make buildable again for new 'misc.h' header file 2021-01-21 17:30:25 +11:00
test_uptime.c misc: Update Craig's email 2021-01-21 17:37:48 +11:00
test_version.c misc: Update Craig's email 2021-01-21 17:37:48 +11:00
uptime.c misc: Update Craig's email 2021-01-21 17:37:48 +11:00
version.c misc: Update Craig's email 2021-01-21 17:37:48 +11:00
vmstat.c library: normalized the 'read_failed' guys across APIs 2021-02-28 21:18:26 +11:00
vmstat.h library: update those source files for copyright dates 2021-02-09 16:40:52 +11:00
wchan.c library: don't strip off prefixes from the wchan names 2016-12-07 22:07:00 +11:00
wchan.h library: eliminate inappropriate '__BEGIN_DECLS' macro 2018-05-06 07:19:38 +10:00
xtra-procps-debug.h library: ensure 'XTRA_PROCPS_DEBUG' works in real life 2020-07-29 19:01:50 +10:00