]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
crashinfo: Print stack traces for all on-CPU threads
authorMark Johnston <markj@FreeBSD.org>
Mon, 15 Jan 2024 20:39:26 +0000 (15:39 -0500)
committerMark Johnston <markj@FreeBSD.org>
Mon, 15 Jan 2024 21:36:40 +0000 (16:36 -0500)
commit2524b7dfb0df7e37ea9651559ce6c027b006e2a9
tree1af1761dbff64e3ef8d7232dbea34c1ae3d8a91c
parentb9e8ae1d8a424194b4e185359da4ded163f24f4e
crashinfo: Print stack traces for all on-CPU threads

Add a python script which implements the bulk of this functionality.
Over time, this would ideally evolve into a library of python routines
which can be used to inspect kernel data structures and automate some
debugging tasks, similar to jhb's out-of-tree scripts, but written in a
somewhat nicer language and with better integration into the kgdb
command prompt.

Note that kgdb currently won't auto-load scripts in this directory.
This should perhaps change in the future.  It probably also makes more
sense to have a crashinfo.py which provides all the kgdb output that we
want to include in core.txt, rather than having crashinfo.sh pipe in
several commands.

Reviewed by: avg, imp
Discussed with: jhb
MFC after: 3 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33817
etc/mtree/BSD.usr.dist
libexec/Makefile
libexec/kgdb/Makefile [new file with mode: 0644]
libexec/kgdb/acttrace.py [new file with mode: 0644]
usr.sbin/crashinfo/crashinfo.sh