Whamcloud - gitweb
Branch b1_8_gate
authorbobijam <bobijam>
Tue, 19 Aug 2008 02:14:22 +0000 (02:14 +0000)
committerbobijam <bobijam>
Tue, 19 Aug 2008 02:14:22 +0000 (02:14 +0000)
b=16566
o=Jonathan Li(jli@cray.com)
i=shadow, bobijam

Description: Upcall on Lustre log has been dumped
Details    : Allow for a user mode script to be called once a Lustre log has
             been dumped. It passes the filename of the dumped log to the
             script, the location of the script can be specified via
             /proc/sys/lnet/debug_log_upcall.

lnet/libcfs/tracefile.h

index 0493063..dd25327 100644 (file)
@@ -45,6 +45,8 @@
 extern char      tracefile[TRACEFILE_NAME_SIZE];
 extern long long tracefile_size;
 
+extern void libcfs_run_debug_log_upcall(char *file);
+
 int  tracefile_init_arch(void);
 void tracefile_fini_arch(void);
 
@@ -96,7 +98,7 @@ extern int  trace_max_debug_mb(void);
 
 #define TRACEFILE_SIZE (500 << 20)
 
-/* Size of a buffer for sprinting console messages if we can't get a page 
+/* Size of a buffer for sprinting console messages if we can't get a page
  * from system */
 #define TRACE_CONSOLE_BUFFER_SIZE   1024
 
@@ -125,7 +127,7 @@ union trace_data_union {
 
                /*
                 * Maximal number of pages allowed on ->tcd_pages and
-                * ->tcd_daemon_pages each. 
+                * ->tcd_daemon_pages each.
                 * Always TCD_MAX_PAGES * tcd_pages_factor / 100 in current
                 * implementation.
                 */
@@ -233,7 +235,7 @@ struct trace_page {
         */
        unsigned short   cpu;
        /*
-        * type(context) of this page 
+        * type(context) of this page
         */
        unsigned short   type;
 };