diff options
| author | Changhee Han <[email protected]> | 2020-06-03 16:03:22 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2020-06-03 20:09:49 -0700 |
| commit | 5b94ce2fcae2542c4d5d49176fa23eea638dc7b6 (patch) | |
| tree | 5a2aa1c9802e1e1eb8cd49fb8f5a2babb53ac75c /Documentation/vm | |
| parent | 21e330fc632d6a288f73de48045b782cc51d501a (diff) | |
tools/vm/page_owner_sort.c: filter out unneeded line
To see a sorted result from page_owner, there must be a tiresome
preprocessing step before running page_owner_sort. This patch simply
filters out lines which start with "PFN" while reading the page owner
report.
Signed-off-by: Changhee Han <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'Documentation/vm')
| -rw-r--r-- | Documentation/vm/page_owner.rst | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Documentation/vm/page_owner.rst b/Documentation/vm/page_owner.rst index 0ed5ab8c7ab4..079f3f8c4784 100644 --- a/Documentation/vm/page_owner.rst +++ b/Documentation/vm/page_owner.rst @@ -83,8 +83,7 @@ Usage 4) Analyze information from page owner:: cat /sys/kernel/debug/page_owner > page_owner_full.txt - grep -v ^PFN page_owner_full.txt > page_owner.txt - ./page_owner_sort page_owner.txt sorted_page_owner.txt + ./page_owner_sort page_owner_full.txt sorted_page_owner.txt See the result about who allocated each page in the ``sorted_page_owner.txt``. |
