Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 #include <linux/debugfs.h>
0003 #include <linux/seq_file.h>
0004 
0005 #include <asm/ptdump.h>
0006 
0007 static int ptdump_show(struct seq_file *m, void *v)
0008 {
0009     struct ptdump_info *info = m->private;
0010 
0011     ptdump_walk_pgd(m, info);
0012     return 0;
0013 }
0014 DEFINE_SHOW_ATTRIBUTE(ptdump);
0015 
0016 void __init ptdump_debugfs_register(struct ptdump_info *info, const char *name)
0017 {
0018     debugfs_create_file(name, 0400, NULL, info, &ptdump_fops);
0019 }