]> granicus.if.org Git - procps-ng/commit
top: exploit new linux-4.5 resident memory enhancement
authorJim Warner <james.warner@comcast.net>
Wed, 13 Apr 2016 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Thu, 14 Apr 2016 11:03:03 +0000 (21:03 +1000)
commit46458ab6b70a0eb85ba0e519d39f49418ebf3ba3
tree97c6cd65c706a70c31be9af92cbfc3f3260dca9a
parent8dc378f6a86f0a0e77d1cda11506c7a6b957743c
top: exploit new linux-4.5 resident memory enhancement

Beginning with linux-4.5, the following new fields are
being added under that /proc/<pid>/status pseudo file:
 . RssAnon - size of resident anonymous memory
 . RssFile - size of resident file mappings
 . RssShmem - size of resident shared memory

This patch just represents the initial library and top
support, sharing a commit message with 2 more patches.

p.s. locked resident memory support was also added but
isn't directly related to the kernel 4.5 enhancements.

Reference(s):
commit 1f8e41d01966ef337bc252bffb181d0acc0c8751

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