diff options
author | Michael Holzheu <holzheu@de.ibm.com> | 2008-04-17 01:46:18 -0400 |
---|---|---|
committer | Heiko Carstens <heiko.carstens@de.ibm.com> | 2008-04-17 01:47:03 -0400 |
commit | 9637c3f318374e2fcc37e354f9782a705b517387 (patch) | |
tree | b030280d2f0101e4cdbcf5bbd6518213eacd65aa /include/asm-s390/debug.h | |
parent | 9f7819c1e51d5310d012426599a5f49d8678119d (diff) |
[S390] Add debug_register_mode() function to debug feature API
The new function supports setting of permissions for the debugfs files
created by the debug feature. In addition to that, the function provides
uid and gid as parameters for future use. Currently only root is allowed
for uid and gid.
Signed-off-by: Michael Holzheu <holzheu@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'include/asm-s390/debug.h')
-rw-r--r-- | include/asm-s390/debug.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-s390/debug.h b/include/asm-s390/debug.h index c00dd2b3dc50..335baf4fc64f 100644 --- a/include/asm-s390/debug.h +++ b/include/asm-s390/debug.h | |||
@@ -73,6 +73,7 @@ typedef struct debug_info { | |||
73 | struct dentry* debugfs_entries[DEBUG_MAX_VIEWS]; | 73 | struct dentry* debugfs_entries[DEBUG_MAX_VIEWS]; |
74 | struct debug_view* views[DEBUG_MAX_VIEWS]; | 74 | struct debug_view* views[DEBUG_MAX_VIEWS]; |
75 | char name[DEBUG_MAX_NAME_LEN]; | 75 | char name[DEBUG_MAX_NAME_LEN]; |
76 | mode_t mode; | ||
76 | } debug_info_t; | 77 | } debug_info_t; |
77 | 78 | ||
78 | typedef int (debug_header_proc_t) (debug_info_t* id, | 79 | typedef int (debug_header_proc_t) (debug_info_t* id, |
@@ -122,6 +123,10 @@ debug_entry_t* debug_exception_common(debug_info_t* id, int level, | |||
122 | debug_info_t* debug_register(char* name, int pages, int nr_areas, | 123 | debug_info_t* debug_register(char* name, int pages, int nr_areas, |
123 | int buf_size); | 124 | int buf_size); |
124 | 125 | ||
126 | debug_info_t *debug_register_mode(char *name, int pages, int nr_areas, | ||
127 | int buf_size, mode_t mode, uid_t uid, | ||
128 | gid_t gid); | ||
129 | |||
125 | void debug_unregister(debug_info_t* id); | 130 | void debug_unregister(debug_info_t* id); |
126 | 131 | ||
127 | void debug_set_level(debug_info_t* id, int new_level); | 132 | void debug_set_level(debug_info_t* id, int new_level); |