On 11/26/2017 03:14 PM, Thomas Gleixner wrote:
> -void ptdump_walk_pgd_level_debugfs(struct seq_file *m, pgd_t *pgd)
> +void ptdump_walk_pgd_level_debugfs(struct seq_file *m, pgd_t *pgd, bool
> shadow)
> {
> + if (shadow)
> + pgd += PTRS_PER_PGD;
> ptdump_walk_pgd_level_core
On Mon, Nov 27, 2017 at 12:14:07AM +0100, Thomas Gleixner wrote:
> static int __init pt_dump_debug_init(void)
> {
> + pe_knl = debugfs_create_file("kernel_page_tables", S_IRUSR, NULL, NULL,
> + &ptdump_fops);
> + if (!pe_knl)
> return -ENOMEM
Add two debugfs files which allow to dump the pagetable of the current task.
current_page_tables_knl dumps the regular page table. This is the page
table which is normally shared between kernel and user space. If KAISER is
enabled this is the kernel space mapping.
If KAISER is enabled the second
3 matches
Mail list logo