.. | .. |
---|
4 | 4 | * |
---|
5 | 5 | * Example use: |
---|
6 | 6 | * cat /sys/kernel/debug/page_owner > page_owner_full.txt |
---|
7 | | - * grep -v ^PFN page_owner_full.txt > page_owner.txt |
---|
8 | | - * ./sort page_owner.txt sorted_page_owner.txt |
---|
| 7 | + * ./page_owner_sort page_owner_full.txt sorted_page_owner.txt |
---|
| 8 | + * |
---|
| 9 | + * See Documentation/vm/page_owner.rst |
---|
9 | 10 | */ |
---|
10 | 11 | |
---|
11 | 12 | #include <stdio.h> |
---|
.. | .. |
---|
36 | 37 | while (buf_end - curr > 1 && fgets(curr, buf_end - curr, fin)) { |
---|
37 | 38 | if (*curr == '\n') /* empty line */ |
---|
38 | 39 | return curr - buf; |
---|
| 40 | + if (!strncmp(curr, "PFN", 3)) |
---|
| 41 | + continue; |
---|
39 | 42 | curr += strlen(curr); |
---|
40 | 43 | } |
---|
41 | 44 | |
---|