MCPcopy Create free account
hub / github.com/F-Stack/f-stack / stack_capture

Function stack_capture

freebsd/arm64/arm64/stack_machdep.c:45–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43#include <machine/stack.h>
44
45static void
46stack_capture(struct thread *td, struct stack *st, struct unwind_state *frame)
47{
48
49 stack_zero(st);
50 while (1) {
51 if (!unwind_frame(td, frame))
52 break;
53 if (!INKERNEL((vm_offset_t)frame->pc))
54 break;
55 if (stack_put(st, frame->pc) == -1)
56 break;
57 }
58}
59
60int
61stack_save_td(struct stack *st, struct thread *td)

Callers 2

stack_save_tdFunction · 0.70
stack_saveFunction · 0.70

Calls 3

stack_zeroFunction · 0.85
unwind_frameFunction · 0.85
stack_putFunction · 0.85

Tested by

no test coverage detected