Add rd.memdebug in kdump module
Description: Currently we only added memdebug code before different dracut hooks ie. pre-udev pre-pivot etc. Add memdebug in kdump.sh before capturing vmcore is also good for debugging. solution: Add make_trace_mem before saving vmcore. Signed-off-by: arthur <zzou@redhat.com> Acked-by: Dave Young <dyoung@redhat.com>
This commit is contained in:
parent
376a899b09
commit
ef9f97dcad
|
@ -312,7 +312,7 @@ if [ $? -ne 0 ]; then
|
||||||
echo "kdump: kdump_pre script exited with non-zero status!"
|
echo "kdump: kdump_pre script exited with non-zero status!"
|
||||||
do_final_action
|
do_final_action
|
||||||
fi
|
fi
|
||||||
|
make_trace_mem "kdump saving vmcore" '1:shortmem' '2+:mem' '3+:slab'
|
||||||
do_dump
|
do_dump
|
||||||
DUMP_RETVAL=$?
|
DUMP_RETVAL=$?
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue