[PATCH RFC 1/5] Extract some common functions from mkdumprd to kdump-lib.sh