From: bobijam Date: Tue, 19 Aug 2008 02:14:22 +0000 (+0000) Subject: Branch b1_8_gate X-Git-Tag: v1_7_101~2^166 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=b37feb30810109918386ae8085510b154792ce15;p=fs%2Flustre-release.git Branch b1_8_gate 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. --- diff --git a/lnet/libcfs/tracefile.h b/lnet/libcfs/tracefile.h index 0493063..dd25327 100644 --- a/lnet/libcfs/tracefile.h +++ b/lnet/libcfs/tracefile.h @@ -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; };