This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / Documentation / s390 / s390dbf.txt
index 2d1cd93..692cc26 100644 (file)
@@ -78,23 +78,6 @@ Example:
 
 > echo "-" > /proc/s390dbf/dasd/level
 
-It is also possible to deactivate the debug feature globally for every
-debug log. You can change the behavior using  2 sysctl parameters in
-/proc/sys/s390dbf:
-There are currently 2 possible triggers, which stop the  debug feature
-globally. The first possbility is to use the "debug_active" sysctl. If
-set to 1 the debug feature is running. If "debug_active" is set to 0 the
-debug feature is turned off.
-The second trigger which stops the debug feature is an kernel oops.
-That prevents the debug feature from overwriting debug information that
-happened before the oops. After an oops you can reactivate the debug feature
-by piping 1 to /proc/sys/s390dbf/debug_active. Nevertheless, its not
-suggested to use an oopsed kernel in an production environment.
-If you want to disallow the deactivation of the debug feature, you can use
-the "debug_stoppable" sysctl. If you set "debug_stoppable" to 0 the debug
-feature cannot be stopped. If the debug feature is already stopped, it
-will stay deactivated.
-
 Kernel Interfaces:
 ------------------
 
@@ -132,17 +115,6 @@ Parameter:     id:        handle for debug log
 Return Value:  none 
 
 Description:   Sets new actual debug level if new_level is valid. 
-
----------------------------------------------------------------------------
-+void debug_stop_all(void);
-
-Parameter:     none
-
-Return Value:  none
-
-Description:   stops the debug feature if stopping is allowed. Currently
-               used in case of a kernel oops.
-
 ---------------------------------------------------------------------------
 debug_entry_t* debug_event (debug_info_t* id, int level, void* data, 
                             int length);
@@ -299,12 +271,12 @@ Examples
  * hex_ascii- + raw-view Example
  */
 
-#include <linux/init.h>
+#include <linux/module.h>
 #include <asm/debug.h>
 
 static debug_info_t* debug_info;
 
-static int init(void)
+int init_module(void)
 {
     /* register 4 debug areas with one page each and 4 byte data field */
 
@@ -319,26 +291,23 @@ static int init(void)
     return 0;
 }
 
-static void cleanup(void)
+void cleanup_module(void)
 {
     debug_unregister (debug_info);
 }
 
-module_init(init);
-module_exit(cleanup);
-
 ---------------------------------------------------------------------------
 
 /*
  * sprintf-view Example
  */
 
-#include <linux/init.h>
+#include <linux/module.h>
 #include <asm/debug.h>
 
 static debug_info_t* debug_info;
 
-static int init(void)
+int init_module(void)
 {
     /* register 4 debug areas with one page each and data field for */
     /* format string pointer + 2 varargs (= 3 * sizeof(long))       */
@@ -352,14 +321,11 @@ static int init(void)
     return 0;
 }
 
-static void cleanup(void)
+void cleanup_module(void)
 {
     debug_unregister (debug_info);
 }
 
-module_init(init);
-module_exit(cleanup);
-
 
 
 ProcFS Interface
@@ -411,15 +377,6 @@ Examples:
 2. Flush all debug areas:
 > echo "-" > /proc/s390dbf/dasd/flush
 
-Stooping the debug feature
---------------------------
-Example:
-
-1. Check if stopping is allowed
-> cat /proc/sys/s390dbf/debug_stoppable
-2. Stop debug feature
-> echo 0 > /proc/sys/s390dbf/debug_active
-
 lcrash Interface
 ----------------
 It is planned that the dump analysis tool lcrash gets an additional command