aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNaoya Horiguchi <[email protected]>2016-03-17 14:17:41 -0700
committerLinus Torvalds <[email protected]>2016-03-17 15:09:34 -0700
commit832fc1de01aea28255cb11d270679b7f1273f0d7 (patch)
treeef020cb2a44d1fee4df1359fbb3fc11a08de733b /tools/perf/scripts/python
parent12580e4b54ba8a1b22ec977c200be0174ca42348 (diff)
/proc/kpageflags: return KPF_BUDDY for "tail" buddy pages
Currently /proc/kpageflags returns nothing for "tail" buddy pages, which is inconvenient when grasping how free pages are distributed. This patch sets KPF_BUDDY for such pages. With this patch: $ grep MemFree /proc/meminfo ; tools/vm/page-types -b buddy MemFree: 3134992 kB flags page-count MB symbolic-flags long-symbolic-flags 0x0000000000000400 779272 3044 __________B_______________________________ buddy 0x0000000000000c00 4385 17 __________BM______________________________ buddy,mmap total 783657 3061 783657 pages is 3134628 kB (roughly consistent with the global counter,) so it's OK. [[email protected]: update comment, per Naoya] Signed-off-by: Naoya Horiguchi <[email protected]> Reviewed-by: Vladimir Davydov <[email protected]>> Cc: Konstantin Khlebnikov <[email protected]> Cc: Naoya Horiguchi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions