rwatson 2007-12-02 20:40:35 UTC FreeBSD src repository
Modified files: share/man/man9 stack.9 sys/amd64/amd64 db_trace.c sys/amd64/conf GENERIC sys/arm/arm db_trace.c sys/conf NOTES files files.amd64 files.arm files.i386 files.ia64 files.powerpc files.sparc64 files.sun4v options sys/i386/conf GENERIC sys/i386/i386 db_trace.c sys/ia64/conf GENERIC sys/ia64/ia64 db_machdep.c sys/kern subr_stack.c sys/pc98/conf GENERIC sys/powerpc/conf GENERIC sys/powerpc/powerpc db_trace.c sys/sparc64/conf GENERIC sys/sparc64/sparc64 db_trace.c sys/sun4v/conf GENERIC sys/sun4v/sun4v db_trace.c sys/sys stack.h Added files: sys/amd64/amd64 stack_machdep.c sys/amd64/include stack.h sys/arm/arm stack_machdep.c sys/arm/include stack.h sys/i386/i386 stack_machdep.c sys/i386/include stack.h sys/ia64/ia64 stack_machdep.c sys/powerpc/include stack.h sys/powerpc/powerpc stack_machdep.c sys/sparc64/include stack.h sys/sparc64/sparc64 stack_machdep.c sys/sun4v/include stack.h sys/sun4v/sun4v stack_machdep.c Log: 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) Revision Changes Path 1.5 +28 -22 src/share/man/man9/stack.9 1.82 +1 -38 src/sys/amd64/amd64/db_trace.c 1.1 +87 -0 src/sys/amd64/amd64/stack_machdep.c (new) 1.489 +1 -0 src/sys/amd64/conf/GENERIC 1.1 +44 -0 src/sys/amd64/include/stack.h (new) 1.14 +1 -25 src/sys/arm/arm/db_trace.c 1.1 +76 -0 src/sys/arm/arm/stack_machdep.c (new) 1.1 +42 -0 src/sys/arm/include/stack.h (new) 1.1457 +7 -0 src/sys/conf/NOTES 1.1254 +1 -1 src/sys/conf/files 1.115 +1 -0 src/sys/conf/files.amd64 1.19 +1 -0 src/sys/conf/files.arm 1.588 +1 -0 src/sys/conf/files.i386 1.94 +1 -0 src/sys/conf/files.ia64 1.67 +1 -0 src/sys/conf/files.powerpc 1.93 +1 -0 src/sys/conf/files.sparc64 1.13 +1 -0 src/sys/conf/files.sun4v 1.610 +1 -0 src/sys/conf/options 1.478 +1 -0 src/sys/i386/conf/GENERIC 1.80 +1 -39 src/sys/i386/i386/db_trace.c 1.1 +89 -0 src/sys/i386/i386/stack_machdep.c (new) 1.1 +44 -0 src/sys/i386/include/stack.h (new) 1.93 +1 -0 src/sys/ia64/conf/GENERIC 1.6 +0 -12 src/sys/ia64/ia64/db_machdep.c 1.1 +57 -0 src/sys/ia64/ia64/stack_machdep.c (new) 1.5 +2 -0 src/sys/kern/subr_stack.c 1.299 +1 -0 src/sys/pc98/conf/GENERIC 1.73 +1 -0 src/sys/powerpc/conf/GENERIC 1.1 +36 -0 src/sys/powerpc/include/stack.h (new) 1.14 +1 -38 src/sys/powerpc/powerpc/db_trace.c 1.1 +97 -0 src/sys/powerpc/powerpc/stack_machdep.c (new) 1.129 +1 -0 src/sys/sparc64/conf/GENERIC 1.1 +40 -0 src/sys/sparc64/include/stack.h (new) 1.27 +1 -34 src/sys/sparc64/sparc64/db_trace.c 1.1 +90 -0 src/sys/sparc64/sparc64/stack_machdep.c (new) 1.16 +1 -0 src/sys/sun4v/conf/GENERIC 1.1 +35 -0 src/sys/sun4v/include/stack.h (new) 1.2 +1 -23 src/sys/sun4v/sun4v/db_trace.c 1.1 +85 -0 src/sys/sun4v/sun4v/stack_machdep.c (new) 1.4 +2 -0 src/sys/sys/stack.h _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"