912075605b
Removing the Item_table 'stat' oldflags for WCHAN_ADDR was wrong since that 'stat' field is not a constant 0. Rather, it could assume these 3 values: -1, 0, and +1. I have not been able to pin down a '-1' result, but it probably means some sort of permission error (-EPERM). The '1' or '0' values were supposed to distinguish the tasks that were or were not blocked (whether there was a wchan address). However, in practice there is little correlation between those values and availability of a kernel symbol in /proc/$$/wchan (perhaps due to race). Anyway, the real point is that a 'stat' wchan does not now intentionally contain an address. Thus, outputting 'ffffff', '-' or '1' in programs like ps is senseless. So this patch just eliminates PIDS_WCHAN_ADDR from our item enumerators leaving only the PIDS_WCHAN_NAME guy. Now the new library can't be blamed for bad addresses! Reference(s): . removed Item_table 'oldflags' commit c4aa6c0ab4263976b2abbc5df0068d5a1612d731 . linux removal of wchan addresses commit b2f73922d119686323f14fbbe46587f863852328 Signed-off-by: Jim Warner <james.warner@comcast.net>