| * Architecture specific debugfs files |
| * Copyright (C) 2007, Intel Corp. |
| * Huang Ying <ying.huang@intel.com> |
| * This file is released under the GPLv2. |
| #include <linux/debugfs.h> |
| #ifdef CONFIG_DEBUG_BOOT_PARAMS |
| static struct debugfs_blob_wrapper boot_params_blob = { |
| .size = sizeof(boot_params), |
| static int __init boot_params_kdebugfs_init(void) |
| struct dentry *dbp, *version, *data; |
| dbp = debugfs_create_dir("boot_params", NULL); |
| version = debugfs_create_x16("version", S_IRUGO, dbp, |
| &boot_params.hdr.version); |
| data = debugfs_create_blob("data", S_IRUGO, dbp, |
| static int __init arch_kdebugfs_init(void) |
| #ifdef CONFIG_DEBUG_BOOT_PARAMS |
| error = boot_params_kdebugfs_init(); |
| arch_initcall(arch_kdebugfs_init); |