freebsd-dev/sys
Robert Watson 3c90d1ea74 Break out stack(9) from ddb(4):
- Introduce per-architecture stack_machdep.c to hold stack_save(9).
- Introduce per-architecture machine/stack.h to capture any common
  definitions required between db_trace.c and stack_machdep.c.
- Add new kernel option "options STACK"; we will build in stack(9) if it is
  defined, or also if "options DDB" is defined to provide compatibility
  with existing users of stack(9).

Add new stack_save_td(9) function, which allows the capture of a stacktrace
of another thread rather than the current thread, which the existing
stack_save(9) was limited to.  It requires that the thread be neither
swapped out nor running, which is the responsibility of the consumer to
enforce.

Update stack(9) man page.

Build tested:	amd64, arm, i386, ia64, powerpc, sparc64, sun4v
Runtime tested:	amd64 (rwatson), arm (cognet), i386 (rwatson)
2007-12-02 20:40:35 +00:00
..
amd64 Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
arm Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
boot Add a note to indicate that these files do borrow in part from mbr.s and 2007-11-26 21:29:59 +00:00
bsm Merge OpenBSM 1.0 changes to src/sys/bsm: 2007-10-29 18:47:25 +00:00
cam Fix a change in the previous commit that was actually a type-o. 2007-11-15 16:23:38 +00:00
cddl Remove some compatibility stuff that we now get from the Solaris header. 2007-11-29 00:15:08 +00:00
compat Correct the calculation for the number of 100ns intervals since 2007-12-02 08:54:50 +00:00
conf Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
contrib * Check endianness the FreeBSD way. 2007-11-28 22:16:00 +00:00
crypto
ddb Make the examine command honor db_pager_quit so you can use 'q' or 'x' 2007-10-27 20:19:11 +00:00
dev Provide unqiue malloc types instead of using M_DEVBUF. 2007-12-02 19:54:45 +00:00
fs o English lesson from bde@: "iff" is not a typo, it means "if and only if". 2007-11-18 09:21:30 +00:00
gdb
geom On some arches, openssl is built with OPENSSL_NO_CAMELLIA, so the 2007-11-19 08:59:32 +00:00
gnu Remove duplicate "union" from ext2_opts. 2007-10-27 16:14:33 +00:00
i4b Spelling fix for interupt -> interrupt 2007-10-12 06:03:46 +00:00
i386 Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
ia64 Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
isa Split /dev/nvram driver out of isa/clock.c for i386 and amd64. I have not 2007-10-26 03:23:54 +00:00
kern Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
libkern Do not use __XSCALE__ to detect if clz is available, use _ARM_ARCH_5 instead. 2007-10-13 12:05:36 +00:00
modules The AR_SCSI_PASSTHROUGH conditional no longer exists, remove it from the 2007-12-02 18:39:38 +00:00
net Add sysctls to if_enc(4) to control whether the firewalls or 2007-11-28 22:33:53 +00:00
net80211 Be more careful handling off-channel frames: if the driver (wrongly) 2007-11-26 21:28:18 +00:00
netatalk Annotate two possible bugs in a comment: (1) we allocate and explicitly 2007-11-20 18:50:54 +00:00
netatm
netgraph Add ipv6 to ng_cisco node. ipv6 wasn't a reality when I wrote it.. 2007-11-30 23:27:39 +00:00
netinet Consider the following situation: 2007-12-02 13:00:47 +00:00
netinet6 Instead of manually freeing the packet options structure (and not even doing 2007-11-21 16:01:42 +00:00
netipsec Add sysctls to if_enc(4) to control whether the firewalls or 2007-11-28 22:33:53 +00:00
netipx
netnatm
netncp
netsmb Rename the kthread_xxx (e.g. kthread_create()) calls 2007-10-20 23:23:23 +00:00
nfs
nfs4client Rename the kthread_xxx (e.g. kthread_create()) calls 2007-10-20 23:23:23 +00:00
nfsclient Remove hacks from the NFSv2/3 client intended to handle a lack of a 2007-11-19 16:03:21 +00:00
nfsserver Garbage collect now-unused nfsrv_setcred() -- it's not only unused, but 2007-11-04 19:20:33 +00:00
opencrypto Rename the kthread_xxx (e.g. kthread_create()) calls 2007-10-20 23:23:23 +00:00
pc98 Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
pccard
pci Remove XRPU driver, after asking all the users. 2007-12-01 20:07:45 +00:00
powerpc Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
rpc Remove the now-unused NET_{LOCK,UNLOCK,ASSERT}_GIANT() macros, which 2007-08-06 14:26:03 +00:00
security Implement per-object type consistency checks for labels passed to 2007-10-30 00:01:28 +00:00
sparc64 Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
sun4v Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
sys Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
tools
ufs Fix a broken check that recently became more annoying because it now 2007-12-01 13:12:43 +00:00
vm Correct a comment. 2007-12-02 07:43:42 +00:00
Makefile