From: Peter Feiner <pfeiner@google.com>
To: drjones@redhat.com, pbonzini@redhat.com, kvm@vger.kernel.org
Cc: pfeiner@google.com
Subject: [PATCH kvm-unit-tests v7 0/5] Debugging aids
Date: Tue, 22 Mar 2016 16:35:01 -0700 [thread overview]
Message-ID: <cover.1458689655.git.pfeiner@google.com> (raw)
Paolo, please apply :-)
Some aids for debugging: stack dumping, register dumping, and printing
failing assertion conditions.
Compiled on ppc64, arm64, i386, x86_64.
v7:
* Rebased.
v6:
* Don't print dump_stack's call to backtrace() in the stack
trace rather than having backtrace() skip over the first
return address in the trace.
* Actually removed lib/asm-generic/stack.c.
v5:
* Removed unused "b" flag from run_tests.sh
* Removed misleading comment in mkstandalone.sh.
v4:
* Moved around arch and asm files per Linux style (hopefully).
* Added --[enable|disable]-pretty-print-stacks to ./configure.
This has obviated the -p command-line option in
./run_tests.sh that I introduced in v1.
* Fixed arch-neutral backtrace so backtrace itself isn't
included.
v3:
* Renamed functions to match standard backtrace functions
* Added asm-generic stack walker that uses __builtin_return_address.
* Moved offset out of libcflat and into pretty printer
* Made pretty printer more robust w.r.t. errors: now it just
continues printing.
v2:
* Fixed a bunch tests on x86 that broke with
-fno-omit-frame-pointer.
* Only use -fno-omit-frame-pointer on x86. I suspect arm & ppc
will have similar problems that I fixed for x86.
Peter Feiner (5):
lib: backtrace printing
x86: lib: debug dump on unhandled exceptions
lib: dump stack on failed assert()
scripts: pretty print stack traces
scripts: automatically pretty print stacks
Makefile | 7 +--
configure | 10 +++++
lib/arm/asm/stack.h | 0
lib/arm64/asm/stack.h | 0
lib/libcflat.h | 9 +++-
lib/powerpc/asm/stack.h | 0
lib/ppc64/asm/stack.h | 0
lib/stack.c | 96 ++++++++++++++++++++++++++++++++++++++++++
lib/stack.h | 20 +++++++++
lib/x86/asm/stack.h | 14 ++++++
lib/x86/desc.c | 69 +++++++++++++++++++++++++++---
lib/x86/stack.c | 31 ++++++++++++++
run_tests.sh | 8 +++-
scripts/mkstandalone.sh | 2 +
scripts/pretty_print_stacks.py | 89 +++++++++++++++++++++++++++++++++++++++
x86/Makefile.common | 4 ++
16 files changed, 347 insertions(+), 12 deletions(-)
create mode 100644 lib/arm/asm/stack.h
create mode 100644 lib/arm64/asm/stack.h
create mode 100644 lib/powerpc/asm/stack.h
create mode 100644 lib/ppc64/asm/stack.h
create mode 100644 lib/stack.c
create mode 100644 lib/stack.h
create mode 100644 lib/x86/asm/stack.h
create mode 100644 lib/x86/stack.c
create mode 100755 scripts/pretty_print_stacks.py
--
2.8.0.rc3.226.g39d4020
next reply other threads:[~2016-03-22 23:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-22 23:35 Peter Feiner [this message]
2016-03-22 23:35 ` [PATCH kvm-unit-tests v7 1/5] lib: backtrace printing Peter Feiner
2016-03-22 23:35 ` [PATCH kvm-unit-tests v7 2/5] x86: lib: debug dump on unhandled exceptions Peter Feiner
2016-03-22 23:35 ` [PATCH kvm-unit-tests v7 3/5] lib: dump stack on failed assert() Peter Feiner
2016-03-22 23:35 ` [PATCH kvm-unit-tests v7 4/5] scripts: pretty print stack traces Peter Feiner
2016-03-22 23:35 ` [PATCH kvm-unit-tests v7 5/5] scripts: automatically pretty print stacks Peter Feiner
2016-03-29 11:13 ` Paolo Bonzini
2016-03-31 23:33 ` Peter Feiner
2016-04-01 8:38 ` Paolo Bonzini
2016-03-29 11:13 ` [PATCH kvm-unit-tests v7 0/5] Debugging aids Paolo Bonzini
2016-04-06 11:28 ` Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1458689655.git.pfeiner@google.com \
--to=pfeiner@google.com \
--cc=drjones@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).