From 478a208a46a36960a9c4a9a39e5a7ef7b16b59b1 Mon Sep 17 00:00:00 2001 From: bobijam Date: Tue, 19 Aug 2008 02:14:21 +0000 Subject: [PATCH] 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. --- lnet/libcfs/debug.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lnet/libcfs/debug.c b/lnet/libcfs/debug.c index 7151a37..991d0e5 100644 --- a/lnet/libcfs/debug.c +++ b/lnet/libcfs/debug.c @@ -423,6 +423,9 @@ libcfs_debug_str2mask(int *mask, const char *str, int is_subsys) return 0; } +/** + * Dump Lustre log to ::debug_file_path by calling tracefile_dump_all_pages() + */ void libcfs_debug_dumplog_internal(void *arg) { CFS_DECL_JOURNAL_DATA; @@ -435,7 +438,9 @@ void libcfs_debug_dumplog_internal(void *arg) (long)arg); printk(KERN_ALERT "LustreError: dumping log to %s\n", debug_file_name); + tracefile_dump_all_pages(debug_file_name); + libcfs_run_debug_log_upcall(debug_file_name); } CFS_POP_JOURNAL; } -- 1.8.3.1