PDA

View Full Version : how to dump function trace in freebsd


bsd_newbie
March 4th, 2009, 18:10
In Linux I could do this to see how a function was called - (In essence function call trace),

Function() {
dump_stack();
.....
...
}
What is the equivalent to dump_stack() in freebsd ?

thanks.

bsd_newbie
March 4th, 2009, 22:53
I believe the equivalent function is kdb_backtrace(), correct me if that is not the case.

Maledictus
March 5th, 2009, 12:38
Sorry, I don't know much about kdb but you can fire a DTrace probe there and print the stack from your dtrace skript.