]> granicus.if.org Git - procps-ng/commitdiff
top: adapt for loss of fields obsoleted with linux 2.6
authorJim Warner <james.warner@comcast.net>
Wed, 28 Sep 2016 18:13:13 +0000 (13:13 -0500)
committerCraig Small <csmall@enc.com.au>
Sun, 9 Oct 2016 10:31:29 +0000 (21:31 +1100)
It would have been nice to remove this 'nDRT' guy from
the fields management screen and man document as well.
But, while this version of top could be made to handle
an older rcfile, the reverse would not have been true.

Besides, it's been zero for so long already we'll just
include a 'deprecated' note in top's man page for now.

[ the 'nTH ' field number was corrected in there too ]

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

index 2408fcea91fa1153e69b37275b137ed66f06a16d..7513088877e1f37d87fde3d7235f64e81a2ccb40 100644 (file)
--- a/top/top.1
+++ b/top/top.1
@@ -984,6 +984,8 @@ written to \*(AS.
 Dirty pages must be written to \*(AS before the corresponding physical
 memory location can be used for some other virtual page.
 
+This field was deprecated with linux 2.6 and is always zero.
+
 .TP 4
 47.\fB nMaj \*(Em Major Page Fault Count \fR
 The number of\fB major\fR page faults that have occurred for a task.
@@ -1001,7 +1003,7 @@ A minor page fault does not involve \*(AS access in making that
 page available.
 
 .TP 4
-48.\fB nTH \*(Em Number of Threads \fR
+49.\fB nTH \*(Em Number of Threads \fR
 The number of threads associated with a process.
 
 .TP 4
index 7a575380786e408034c6c90a24d8cd773e654e55..bf76b080f958a2cb12a7cd66552faac42c87aab9 100644 (file)
--- a/top/top.c
+++ b/top/top.c
@@ -1540,7 +1540,7 @@ static struct {
 #endif
    {     4,     -1,  A_right,    -1,  PIDS_FLT_MAJ        },  // ul_int   EU_FL1
    {     4,     -1,  A_right,    -1,  PIDS_FLT_MIN        },  // ul_int   EU_FL2
-   {     4,     -1,  A_right,    -1,  PIDS_MEM_DT_PGS     },  // ul_int   EU_DRT ( always 0 w/ since 2.6 )
+   {     4,     -1,  A_right,    -1,  PIDS_noop           },  // ul_int   EU_DRT ( always 0 w/ since 2.6 )
    {     1,     -1,  A_right,    -1,  PIDS_STATE          },  // s_ch     EU_STA
    {    -1,     -1,  A_left,     -1,  PIDS_CMD            },  // str      EU_CMD
    {    10,     -1,  A_left,     -1,  PIDS_WCHAN_NAME     },  // str      EU_WCH