|
@@ -27,6 +27,11 @@ Daniel-Constantin Mierla
|
|
|
|
|
|
3.1. cfgtrace (int)
|
|
|
3.2. breakpoint (int)
|
|
|
+ 3.3. log_level (int)
|
|
|
+ 3.4. log_facility (str)
|
|
|
+ 3.5. log_prefix (str)
|
|
|
+ 3.6. step_usleep (int)
|
|
|
+ 3.7. step_loops (int)
|
|
|
|
|
|
4. Exported Functions
|
|
|
|
|
@@ -45,7 +50,12 @@ Daniel-Constantin Mierla
|
|
|
|
|
|
1.1. Set cfgtrace parameter
|
|
|
1.2. Set breakpoint parameter
|
|
|
- 1.3. mt_match usage
|
|
|
+ 1.3. Set log_level parameter
|
|
|
+ 1.4. Set log_facility parameter
|
|
|
+ 1.5. Set log_prefix parameter
|
|
|
+ 1.6. Set step_usleep parameter
|
|
|
+ 1.7. Set step_loops parameter
|
|
|
+ 1.8. dbg_breakpoint usage
|
|
|
|
|
|
Chapter 1. Admin Guide
|
|
|
|
|
@@ -61,6 +71,11 @@ Chapter 1. Admin Guide
|
|
|
|
|
|
3.1. cfgtrace (int)
|
|
|
3.2. breakpoint (int)
|
|
|
+ 3.3. log_level (int)
|
|
|
+ 3.4. log_facility (str)
|
|
|
+ 3.5. log_prefix (str)
|
|
|
+ 3.6. step_usleep (int)
|
|
|
+ 3.7. step_loops (int)
|
|
|
|
|
|
4. Exported Functions
|
|
|
|
|
@@ -117,6 +132,11 @@ Chapter 1. Admin Guide
|
|
|
|
|
|
3.1. cfgtrace (int)
|
|
|
3.2. breakpoint (int)
|
|
|
+ 3.3. log_level (int)
|
|
|
+ 3.4. log_facility (str)
|
|
|
+ 3.5. log_prefix (str)
|
|
|
+ 3.6. step_usleep (int)
|
|
|
+ 3.7. step_loops (int)
|
|
|
|
|
|
3.1. cfgtrace (int)
|
|
|
|
|
@@ -141,6 +161,65 @@ modparam("debugger", "cfgtrace", 1)
|
|
|
modparam("debugger", "breakpoint", 1)
|
|
|
...
|
|
|
|
|
|
+3.3. log_level (int)
|
|
|
+
|
|
|
+ What log level to be used to print module specific messages.
|
|
|
+
|
|
|
+ Default value is "-1" (L_ERR).
|
|
|
+
|
|
|
+ Example 1.3. Set log_level parameter
|
|
|
+...
|
|
|
+modparam("debugger", "log_level", 1)
|
|
|
+...
|
|
|
+
|
|
|
+3.4. log_facility (str)
|
|
|
+
|
|
|
+ What log facility to be used to print module specific messages.
|
|
|
+
|
|
|
+ Default value is "NULL" (default from core).
|
|
|
+
|
|
|
+ Example 1.4. Set log_facility parameter
|
|
|
+...
|
|
|
+modparam("debugger", "log_facility", "LOG_DAEMON")
|
|
|
+...
|
|
|
+
|
|
|
+3.5. log_prefix (str)
|
|
|
+
|
|
|
+ String to print before any module specific messages.
|
|
|
+
|
|
|
+ Default value is "*** cfgtrace:".
|
|
|
+
|
|
|
+ Example 1.5. Set log_prefix parameter
|
|
|
+...
|
|
|
+modparam("debugger", "log_prefix", "from-debugger-with-love:")
|
|
|
+...
|
|
|
+
|
|
|
+3.6. step_usleep (int)
|
|
|
+
|
|
|
+ Microseconds to sleep before checking for new commands when waiting at
|
|
|
+ breakpoint
|
|
|
+
|
|
|
+ Default value is "100000" (that is 0.1sec).
|
|
|
+
|
|
|
+ Example 1.6. Set step_usleep parameter
|
|
|
+...
|
|
|
+modparam("debugger", "step_usleep", 500000)
|
|
|
+...
|
|
|
+
|
|
|
+3.7. step_loops (int)
|
|
|
+
|
|
|
+ How many sleeps of 'step_usleep' the RPC process performs when waiting
|
|
|
+ for a reply from worker process before responding to RPC. This avoids
|
|
|
+ blocking RPC process for ever in case the worker process 'forgets' to
|
|
|
+ write back a reply.
|
|
|
+
|
|
|
+ Default value is "200".
|
|
|
+
|
|
|
+ Example 1.7. Set step_loops parameter
|
|
|
+...
|
|
|
+modparam("debugger", "step_loops", 100)
|
|
|
+...
|
|
|
+
|
|
|
4. Exported Functions
|
|
|
|
|
|
4.1. dbg_breakpoint(mode)
|
|
@@ -153,7 +232,7 @@ modparam("debugger", "breakpoint", 1)
|
|
|
Note that this version does not export this anchors to RPC for
|
|
|
interactive debugging (temporary disabled).
|
|
|
|
|
|
- Example 1.3. mt_match usage
|
|
|
+ Example 1.8. dbg_breakpoint usage
|
|
|
...
|
|
|
if($si=="10.0.0.10")
|
|
|
dbg_breakpoint("1");
|