Define a new PageTable bit in the page_type and use it to mark pages in use as page tables. This can be helpful when debugging crashdumps or analysing memory fragmentation. Add a KPF flag to report these pages to userspace and update page-types.c to interpret that flag. Note that only pages currently accounted as NR_PAGETABLES are tracked as PageTable; this does not include pgd/p4d/pud/pmd pages. Those will be the subject of a later patch.
Showing the changes to include/uapi/linux (1 of 5 files). Show all
Unified · Split
| @@ -35,6 +35,6 @@ · 34 unmodified lines | |||
| 35 | #define KPF_BALLOON 23 | 35 | #define KPF_BALLOON 23 |
| 36 | #define KPF_ZERO_PAGE 24 | 36 | #define KPF_ZERO_PAGE 24 |
| 37 | #define KPF_IDLE 25 | 37 | #define KPF_IDLE 25 |
| 38 | 38 | #define KPF_PGTABLE 26 | |
| 39 | 39 | ||
| 40 | #endif /* _UAPILINUX_KERNEL_PAGE_FLAGS_H */ | 40 | #endif /* _UAPILINUX_KERNEL_PAGE_FLAGS_H */ |