Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/stacktrace.h

    r257ceb1 rda1bafb  
    4242
    4343typedef struct {
    44         uintptr_t fp;
    45         uintptr_t pc;
    46         struct istate *istate;
    47 } stack_trace_context_t;
    48 
    49 typedef struct {
    50         bool (* stack_trace_context_validate)(stack_trace_context_t *);
    51         bool (* frame_pointer_prev)(stack_trace_context_t *, uintptr_t *);
    52         bool (* return_address_get)(stack_trace_context_t *, uintptr_t *);
     44        bool (* frame_pointer_validate)(uintptr_t);
     45        bool (* frame_pointer_prev)(uintptr_t, uintptr_t *);
     46        bool (* return_address_get)(uintptr_t, uintptr_t *);
    5347        bool (* symbol_resolve)(uintptr_t, const char **, uintptr_t *);
    5448} stack_trace_ops_t;
     
    5953extern void stack_trace(void);
    6054extern void stack_trace_istate(struct istate *);
    61 extern void stack_trace_ctx(stack_trace_ops_t *, stack_trace_context_t *);
     55extern void stack_trace_fp_pc(stack_trace_ops_t *, uintptr_t, uintptr_t);
    6256
    6357/*
     
    6761extern uintptr_t program_counter_get(void);
    6862
    69 extern bool kernel_stack_trace_context_validate(stack_trace_context_t *);
    70 extern bool kernel_frame_pointer_prev(stack_trace_context_t *, uintptr_t *);
    71 extern bool kernel_return_address_get(stack_trace_context_t *, uintptr_t *);
     63extern bool kernel_frame_pointer_validate(uintptr_t);
     64extern bool kernel_frame_pointer_prev(uintptr_t, uintptr_t *);
     65extern bool kernel_return_address_get(uintptr_t, uintptr_t *);
    7266
    73 extern bool uspace_stack_trace_context_validate(stack_trace_context_t *);
    74 extern bool uspace_frame_pointer_prev(stack_trace_context_t *, uintptr_t *);
    75 extern bool uspace_return_address_get(stack_trace_context_t *, uintptr_t *);
     67extern bool uspace_frame_pointer_validate(uintptr_t);
     68extern bool uspace_frame_pointer_prev(uintptr_t, uintptr_t *);
     69extern bool uspace_return_address_get(uintptr_t, uintptr_t *);
    7670
    7771#endif
Note: See TracChangeset for help on using the changeset viewer.