From 6761382a069700b8371c4ff63e394bae8183334b Mon Sep 17 00:00:00 2001 From: pravins Date: Tue, 25 Aug 2009 07:01:49 +0000 Subject: [PATCH] b=19994 i=rread i=grev log full debug info for test 0c. --- lustre/tests/replay-single.sh | 2 ++ lustre/tests/test-framework.sh | 29 ++++++++++++++++++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/lustre/tests/replay-single.sh b/lustre/tests/replay-single.sh index 1e95688..fb5d5e5e 100755 --- a/lustre/tests/replay-single.sh +++ b/lustre/tests/replay-single.sh @@ -126,7 +126,9 @@ test_0c() { touch $DIR/$tfile || return 3 rm $DIR/$tfile || return 4 } +start_full_debug_logging run_test 0c "fld create" +stop_full_debug_logging test_1() { replay_barrier $SINGLEMDS diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 0d09af4..1825891 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -2159,10 +2159,37 @@ debugsave() { } debugrestore() { - [ -n "$DEBUGSAVE" ] && lctl set_param debug="${DEBUGSAVE}" + [ -n "$DEBUGSAVE" ] && \ + do_nodes $(comma_list $(nodes_list)) "$LCTL set_param debug=\\\"${DEBUGSAVE}\\\";" DEBUGSAVE="" } +debug_size_save() { + DEBUG_SIZE_SAVED="$(lctl get_param -n debug_mb)" +} + +debug_size_restore() { + [ -n "$DEBUG_SIZE_SAVED" ] && \ + do_nodes $(comma_list $(nodes_list)) "$LCTL set_param debug_mb=$DEBUG_SIZE_SAVED" + DEBUG_SIZE_SAVED="" +} + +start_full_debug_logging() { + debugsave + debug_size_save + + local FULLDEBUG=-1 + local DEBUG_SIZE=150 + + do_nodes $(comma_list $(nodes_list)) "$LCTL set_param debug_mb=$DEBUG_SIZE" + do_nodes $(comma_list $(nodes_list)) "$LCTL set_param debug=$FULLDEBUG;" +} + +stop_full_debug_logging() { + debug_size_restore + debugrestore +} + ################################## # Test interface ################################## -- 1.8.3.1