From eb1fd47a85c93ec247d89a4d02b0a5a2c5a8d444 Mon Sep 17 00:00:00 2001 From: Mario Held Date: Wed, 10 Mar 2021 18:51:58 +0100 Subject: [PATCH] dbginfo: Added and removed commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added kallsyms and lscpu -ye, added vmcp commands q memassist, q pcifunction, q vmrelocate and removed q cache Signed-off-by: Mario Held Signed-off-by: Jan Höppner --- scripts/dbginfo.sh | 32 +++++++++++++++++++++++++++----- scripts/dbginfo.sh.1 | 8 ++++---- 2 files changed, 31 insertions(+), 9 deletions(-) diff --git a/scripts/dbginfo.sh b/scripts/dbginfo.sh index 705b5f01..405dcb33 100755 --- a/scripts/dbginfo.sh +++ b/scripts/dbginfo.sh @@ -2,7 +2,7 @@ # # dbginfo.sh - Tool to collect runtime, configuration, and trace information # -# Copyright IBM Corp. 2002, 2020 +# Copyright IBM Corp. 2002, 2021 # # s390-tools is free software; you can redistribute it and/or modify # it under the terms of the MIT license. See LICENSE for details. @@ -21,7 +21,7 @@ readonly SCRIPTNAME="${0##*/}" print_version() { cat </dev/null | while IFS= read -r file_name; do + tmp_file=${file_name}-`uname -r`.tgz + ch_dir="${WORKPATH}proc/" + orig_file="kallsyms" + + + echo " ${file_name}" + if ! test -e "${file_name}"; then + echo "${SCRIPTNAME}: Warning: Postprocessing failed on ${file_name}" + echo + fi + + tar -cvzf "${tmp_file}" -C "${ch_dir}" "${orig_file}" + rm -f "${file_name}" + + done pr_log_stdout " " } @@ -1124,6 +1144,8 @@ create_package() pr_stdout "Finalizing: Creating archive with collected data" cd "${WORKDIR_BASE}" + touch "${WORKARCHIVE}" + chmod 0600 "${WORKARCHIVE}" tar -czf "${WORKARCHIVE}" "${WORKDIR_CURRENT}" rc_tar=$? if [ $rc_tar -eq 0 ]; then diff --git a/scripts/dbginfo.sh.1 b/scripts/dbginfo.sh.1 index ef9fe891..a59e4c0d 100644 --- a/scripts/dbginfo.sh.1 +++ b/scripts/dbginfo.sh.1 @@ -2,7 +2,7 @@ .SH NAME dbginfo.sh \- collect runtime, configuration and trace information -for debugging Linux on System z +for debugging Linux on IBM Z .SH SYNOPSIS .br @@ -12,7 +12,7 @@ for debugging Linux on System z .SH DESCRIPTION This script collects runtime, configuration and trace information that can -be used to debug a Linux on System z instance. +be used to debug a Linux on IBM Z instance. For Linux on z/VM, the script also traces information about the z/VM system. The debug information is written to a file /tmp/DBGINFO\-\-