Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-block.git] / arch / arm64 / mm / ptdump_debugfs.c
CommitLineData
b2441318 1// SPDX-License-Identifier: GPL-2.0
4ddb9bf8
LA
2#include <linux/debugfs.h>
3#include <linux/seq_file.h>
4
5#include <asm/ptdump.h>
6
7static int ptdump_show(struct seq_file *m, void *v)
8{
9 struct ptdump_info *info = m->private;
10 ptdump_walk_pgd(m, info);
11 return 0;
12}
90aff8d0 13DEFINE_SHOW_ATTRIBUTE(ptdump);
4ddb9bf8 14
e2a2e56e 15void ptdump_debugfs_register(struct ptdump_info *info, const char *name)
4ddb9bf8 16{
e2a2e56e 17 debugfs_create_file(name, 0400, NULL, info, &ptdump_fops);
4ddb9bf8 18}