Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
b9e393c2
Commit
b9e393c2
authored
Mar 07, 2008
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: Create an sh debugfs root.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
b420b1a7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
3 deletions
+19
-3
arch/sh/kernel/setup.c
arch/sh/kernel/setup.c
+14
-0
arch/sh/mm/cache-debugfs.c
arch/sh/mm/cache-debugfs.c
+2
-2
arch/sh/mm/pmb.c
arch/sh/mm/pmb.c
+1
-1
include/asm-sh/system.h
include/asm-sh/system.h
+2
-0
No files found.
arch/sh/kernel/setup.c
View file @
b9e393c2
...
...
@@ -23,6 +23,8 @@
#include <linux/kexec.h>
#include <linux/module.h>
#include <linux/smp.h>
#include <linux/err.h>
#include <linux/debugfs.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <asm/page.h>
...
...
@@ -443,3 +445,15 @@ const struct seq_operations cpuinfo_op = {
.
show
=
show_cpuinfo
,
};
#endif
/* CONFIG_PROC_FS */
struct
dentry
*
sh_debugfs_root
;
static
int
__init
sh_debugfs_init
(
void
)
{
sh_debugfs_root
=
debugfs_create_dir
(
"sh"
,
NULL
);
if
(
IS_ERR
(
sh_debugfs_root
))
return
PTR_ERR
(
sh_debugfs_root
);
return
0
;
}
arch_initcall
(
sh_debugfs_init
);
arch/sh/mm/cache-debugfs.c
View file @
b9e393c2
...
...
@@ -127,13 +127,13 @@ static int __init cache_debugfs_init(void)
{
struct
dentry
*
dcache_dentry
,
*
icache_dentry
;
dcache_dentry
=
debugfs_create_file
(
"dcache"
,
S_IRUSR
,
NULL
,
dcache_dentry
=
debugfs_create_file
(
"dcache"
,
S_IRUSR
,
sh_debugfs_root
,
(
unsigned
int
*
)
CACHE_TYPE_DCACHE
,
&
cache_debugfs_fops
);
if
(
IS_ERR
(
dcache_dentry
))
return
PTR_ERR
(
dcache_dentry
);
icache_dentry
=
debugfs_create_file
(
"icache"
,
S_IRUSR
,
NULL
,
icache_dentry
=
debugfs_create_file
(
"icache"
,
S_IRUSR
,
sh_debugfs_root
,
(
unsigned
int
*
)
CACHE_TYPE_ICACHE
,
&
cache_debugfs_fops
);
if
(
IS_ERR
(
icache_dentry
))
{
...
...
arch/sh/mm/pmb.c
View file @
b9e393c2
...
...
@@ -393,7 +393,7 @@ static int __init pmb_debugfs_init(void)
struct
dentry
*
dentry
;
dentry
=
debugfs_create_file
(
"pmb"
,
S_IFREG
|
S_IRUGO
,
NULL
,
NULL
,
&
pmb_debugfs_fops
);
sh_debugfs_root
,
NULL
,
&
pmb_debugfs_fops
);
if
(
IS_ERR
(
dentry
))
return
PTR_ERR
(
dentry
);
...
...
include/asm-sh/system.h
View file @
b9e393c2
...
...
@@ -146,6 +146,8 @@ extern unsigned int instruction_size(unsigned int insn);
extern
unsigned
long
cached_to_uncached
;
extern
struct
dentry
*
sh_debugfs_root
;
/* XXX
* disable hlt during certain critical i/o operations
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment