MCPcopy Create free account
hub / github.com/HelenOS/helenos / stack_trace

Function stack_trace

kernel/generic/src/debug/stacktrace.c:74–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void stack_trace(void)
75{
76 stack_trace_context_t ctx = {
77 .fp = frame_pointer_get(),
78 .pc = program_counter_get(),
79 .istate = NULL
80 };
81
82 stack_trace_ctx(&kst_ops, &ctx);
83
84 /*
85 * Prevent the tail call optimization of the previous call by
86 * making it a non-tail call.
87 */
88 (void) frame_pointer_get();
89}
90
91void stack_trace_istate(istate_t *istate)
92{

Callers 3

panic_commonFunction · 0.85
_mutex_lock_timeoutFunction · 0.85
spinlock_lock_debugFunction · 0.85

Calls 3

stack_trace_ctxFunction · 0.85
frame_pointer_getFunction · 0.50
program_counter_getFunction · 0.50

Tested by

no test coverage detected