1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/debugfs.h>
3 #include <linux/memory_hotplug.h>
4 #include <linux/seq_file.h>
6 #include <asm/ptdump.h>
8 static int ptdump_show(struct seq_file
*m
, void *v
)
10 struct ptdump_info
*info
= m
->private;
17 DEFINE_SHOW_ATTRIBUTE(ptdump
);
19 void ptdump_debugfs_register(struct ptdump_info
*info
, const char *name
)
21 debugfs_create_file(name
, 0400, NULL
, info
, &ptdump_fops
);