Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / arch / arm64 / mm / ptdump_debugfs.c
blob68bf1a125502dab30fb60903a33d65bb20eb93e6
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;
12 get_online_mems();
13 ptdump_walk(m, info);
14 put_online_mems();
15 return 0;
17 DEFINE_SHOW_ATTRIBUTE(ptdump);
19 void __init ptdump_debugfs_register(struct ptdump_info *info, const char *name)
21 debugfs_create_file(name, 0400, NULL, info, &ptdump_fops);