Re: [PATCH 1/3] ARM: Create an ARM debugfs root.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Hiroshi DOYU <Hiroshi.DOYU@xxxxxxxxx> [080422 00:17]:
> Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@xxxxxxxxx>
> ---
>  arch/arm/kernel/setup.c  |   14 ++++++++++++++
>  include/asm-arm/system.h |    2 ++
>  2 files changed, 16 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
> index b7b0720..1b1e6e4 100644
> --- a/arch/arm/kernel/setup.c
> +++ b/arch/arm/kernel/setup.c
> @@ -24,6 +24,7 @@
>  #include <linux/interrupt.h>
>  #include <linux/smp.h>
>  #include <linux/fs.h>
> +#include <linux/debugfs.h>
>  
>  #include <asm/cpu.h>
>  #include <asm/elf.h>
> @@ -1007,3 +1008,16 @@ const struct seq_operations cpuinfo_op = {
>  	.stop	= c_stop,
>  	.show	= c_show
>  };
> +
> +#ifdef CONFIG_DEBUG_FS
> +struct dentry *arm_debugfs_root;
> +static int __init arm_debugfs_init(void)
> +{
> +	arm_debugfs_root = debugfs_create_dir("arm", NULL);
> +	if (IS_ERR(arm_debugfs_root))
> +		return PTR_ERR(arm_debugfs_root);
> +
> +	return 0;
> +}
> +arch_initcall(arm_debugfs_init);
> +#endif
> diff --git a/include/asm-arm/system.h b/include/asm-arm/system.h
> index 6335de9..a6be185 100644
> --- a/include/asm-arm/system.h
> +++ b/include/asm-arm/system.h
> @@ -378,6 +378,8 @@ extern void enable_hlt(void);
>  #include <asm-generic/cmpxchg.h>
>  #endif
>  
> +extern struct dentry *arm_debugfs_root;
> +
>  #endif /* __ASSEMBLY__ */
>  
>  #define arch_align_stack(x) (x)
> -- 
> 1.5.5.rc2.6.gf58d

This one should be discussed first on the linux-arm-kernel list.

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux