DOKK / manpages / debian 10 / systemtap-doc / function::stack.3stap.en
FUNCTION::STACK(3stap) Context Functions FUNCTION::STACK(3stap)

function::stack - Return address at given depth of kernel stack backtrace


stack:long(n:long)

n

number of levels to descend in the stack.

Performs a simple (kernel) backtrace, and returns the element at the specified position. The results of the backtrace itself are cached, so that the backtrace computation is performed at most once no matter how many times stack is called, or in what order.

tapset::context-symbols(3stap)

October 2018 SystemTap Tapset Reference