]> granicus.if.org Git - procps-ng/commit
library: refactor and rely on modern kernels for wchan
authorJim Warner <james.warner@comcast.net>
Thu, 18 Jun 2015 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Fri, 19 Jun 2015 09:09:20 +0000 (19:09 +1000)
commit6b8dc5511fb9780806c3e8b97e5514ec30c2f514
tree85ba83f1775d8c1ae80207732127d0cf20921cc1
parent932f54b19d6b53d2dc804b291293052e7876fbda
library: refactor and rely on modern kernels for wchan

Several Debian based distributions were recently found
to have omitted a kernel configuration option that had
the effect of rendering /proc/#/stat and /proc/#/wchan
useless for providing any 'sleeping in function' info.

That problem also prompted a reevaluation of the whole
approach to wchan matters which had grown increasingly
complex as our library evolved over the last 13 years.

The net result was a decision to rely on /proc/#/wchan
which arrived along with the 2.5 kernel. This then let
us vastly simplify the internal code plus the external
interface which will benefit both the top and ps pgms.

Reference(s):
http://www.freelists.org/post/procps/WCHAN,11
https://lkml.org/lkml/2008/11/6/12
https://bugs.debian.org/711592

Signed-off-by: Jim Warner <james.warner@comcast.net>
Makefile.am
proc/ksym.c [deleted file]
proc/libprocps.sym
proc/readproc.h
proc/wchan.c [new file with mode: 0644]
proc/wchan.h