Debugging aids
Status from this message: Applied, thanks.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v7 Latest5 patches 5 repliesApplied
- v65 patches 1 replySuperseded
- v55 patches 3 repliesSuperseded
Earlier versions · 5
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v4 posting 2/2 | 5 patches | 2 replies | Superseded | |
| v4 posting 1/2 | 0 of 6 patches | 1 reply | Superseded | |
| v3 | 4 patches | 5 replies | Superseded | |
| v2 | 8 patches | 7 replies | Superseded | |
| v1 | 5 patches | 8 replies | Superseded |
Changes in v7 from the cover letter
* Rebased.
Patches in v7 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | lib: backtrace printingMakefile lib/ lib/ +8 more | +172 | 0 replies | |
| 2/5 | x86: lib: debug dump on unhandled exceptionslib/ | +63 | 0 replies | |
| 3/5 | lib: dump stack on failed assert()lib/ | +4 | 0 replies | |
| 4/5 | scripts: pretty print stack tracesscripts/ | +89 | 0 replies | |
| 5/5 | scripts: automatically pretty print stacksconfigure run_tests.sh scripts/ | +19 | 3 replies |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by.
| Patch | Andrew Jones |
|---|---|
| 1/5 | R-b |
| 2/5 | R-b |
| 3/5 | R-b |
| 4/5 | R-b |
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH kvm-unit-tests v7 0/5] Debugging aids
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
Signature · 1 line
2.8.0.rc3.226.g39d4020