133a833942
In the issue referenced below, it is now apparent that not all architectures follow a logical/expected format for the /proc/cpuinfo file. Specifically, the expected empty line after each processor entry might be missing under some architectures for the last processor shown. [ and a belated review of kernel source confirms it. ] So this commit makes our stat module a little bit more tolerant of some potential missing newline characters. [ along the way, it's also now tolerant of a missing ] [ cpuinfo file plus more efficient whenever a cpu is ] [ is not linked to a core or toggled offline/online. ] Reference(s): https://gitlab.com/procps-ng/procps/-/issues/272 procps-ng/procps#272 Signed-off-by: Jim Warner <james.warner@comcast.net> |
||
---|---|---|
.. | ||
include | ||
tests | ||
.gitignore | ||
COPYING | ||
devname.c | ||
diskstats.c | ||
escape.c | ||
libproc2.pc.in | ||
libproc2.sym | ||
meminfo.c | ||
namespace.c | ||
numa.c | ||
pids.c | ||
pwcache.c | ||
readproc.c | ||
slabinfo.c | ||
stat.c | ||
sysinfo.c | ||
uptime.c | ||
version.c | ||
vmstat.c | ||
wchan.c |