]> granicus.if.org Git - procps-ng/commit
top: implement a new approach to forest view mode
authorJim Warner <james.warner@comcast.net>
Sun, 26 Aug 2012 04:59:59 +0000 (23:59 -0500)
committerCraig Small <csmall@enc.com.au>
Thu, 30 Aug 2012 21:22:31 +0000 (07:22 +1000)
commitbeb0982b28f948b2e77fa1e5c4bfca595325fe9f
tree9c74ac69204a00582a4f7145ae27e47d6382087b
parentd9890fb5acf4a2e8e93c0bc61d20e837ae5db28f
top: implement a new approach to forest view mode

The TREE_RESCANS #define (formerly TREE_ONEPASS) has
been eliminated and the approach to forest view mode
redesigned.  The chance of dangling children has been
eliminated and overhead reduced.

We now order processes on start_time (non-display)
and are therefore immune to any pid, ppid or tgid
anomalies when pid values wrap.

The new algorithm also accommodates any distortions
caused by the 3.3 kernel 'hidepid' provisions --
something guaranteed to produce dangling children
under the former approach.

Related References:
commit a2086dfdf698f93de431349cf9a990fc5b95a768
commit cd608f462e587ee648f4bd0b798e77a52dd66c13
commit 41ed28aa5d2344e4838504a878a4db0afff8a6d8

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c
top/top.h