6b8dc5511f
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>
13 lines
160 B
C
13 lines
160 B
C
#ifndef PROCPS_PROC_WCHAN_H
|
|
#define PROCPS_PROC_WCHAN_H
|
|
|
|
#include "procps.h"
|
|
|
|
EXTERN_C_BEGIN
|
|
|
|
extern const char * lookup_wchan (int pid);
|
|
|
|
EXTERN_C_END
|
|
|
|
#endif
|