RFC: Stack saving/tracing functionality.

Poul-Henning Kamp phk at phk.freebsd.dk
Thu Jun 9 19:51:55 GMT 2005


In message <20050608221829.75c2de12.antoine.brodin at laposte.net>, Antoine Brodin writes:
>Hi,
>
>
>With Jeff@'s help, I implemented stack saving/tracing functionality.

Thankyou!

>Another question: Since the stack saving/tracing functionality depends
>on ddb, should kern/subr_stack.c be moved to ddb/stack.c and
>sys/stack.h to ddb/stack.h?

No.

This code should be compiled in as standard so that any panic prints
a stacktrace on the console, also for non-KDB kernels.

A sysctl to enable grepping a backtrace from core-dumping processes
would be wonderful as well.


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-arch mailing list