procps/proc
Jim Warner 12b6452135 library: allow negative system DELTA stats, <STAT> api
All TIC delta fields are checked for possible negative
results and set to zero when found. This is done so as
to protect against potential anomalies which depend on
kernel version and/or toggling cpus offline or online.

[ it's probably unnecessary with the latest kernels, ]
[ except for iowait. documentation suggests it might ]
[ decrease which would then create a negative delta. ]

The same approach is employed for most of the 'system'
deltas (ctxt, intr & procs_created). However, with two
of the fields (procs_blocked & procs_running) negative
results were allowed. But it now seems such a division
is unwise so this patch will allow all to go negative.

[ rather than force any 'system' delta value to show ]
[ what's logical, we'll now let all reflect reality. ]

Signed-off-by: Jim Warner <james.warner@comcast.net>
2020-01-06 09:11:20 +11:00
..
.gitignore
COPYING
devname.c
devname.h
diskstats.c library: strictly cosmetic change involving whitespace 2020-01-06 09:11:20 +11:00
diskstats.h library: refactored some header file items and origins 2019-03-26 19:55:30 +11:00
escape.c
escape.h
libprocps.pc.in
libprocps.sym
meminfo.c library: strictly cosmetic change involving whitespace 2020-01-06 09:11:20 +11:00
meminfo.h library: refactored some header file items and origins 2019-03-26 19:55:30 +11:00
namespace.c
namespace.h
numa.c
numa.h
pids.c library: correct one reference typo in that <PIDS> api 2019-10-27 22:27:49 +11:00
pids.h library: correct 'vectorized' string logic, <PIDS> api 2019-05-16 21:23:06 +10:00
procps-private.h
procps.h library: refactor the XTRA_PROCPS_DEBUG implementation 2018-09-12 21:12:06 +10:00
pwcache.c
pwcache.h
readproc.c library: removed that 'calloc/free' cruft where doable 2019-10-27 22:27:49 +11:00
readproc.h library: removed that 'simple_readtask' unused pointer 2019-10-27 22:27:49 +11:00
slabinfo.c library: strictly cosmetic change involving whitespace 2020-01-06 09:11:20 +11:00
slabinfo.h library: refactored some header file items and origins 2019-03-26 19:55:30 +11:00
stat.c library: allow negative system DELTA stats, <STAT> api 2020-01-06 09:11:20 +11:00
stat.h library: refactored some header file items and origins 2019-03-26 19:55:30 +11:00
sysinfo.c
sysinfo.h
test_namespace.c
test_pids.c
test_sysinfo.c
test_uptime.c
test_version.c
uptime.c
uptime.h
version.c
version.h
vmstat.c library: strictly cosmetic change involving whitespace 2020-01-06 09:11:20 +11:00
vmstat.h library: refactored some header file items and origins 2019-03-26 19:55:30 +11:00
wchan.c
wchan.h
xtra-procps-debug.h library: refactor the XTRA_PROCPS_DEBUG implementation 2018-09-12 21:12:06 +10:00