diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/cpu.h | 2 | ||||
-rw-r--r-- | include/skiboot.h | 6 | ||||
-rw-r--r-- | include/stack.h | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/include/cpu.h b/include/cpu.h index d7acd25..a871073 100644 --- a/include/cpu.h +++ b/include/cpu.h @@ -65,7 +65,7 @@ struct cpu_thread { int64_t stack_bot_mark; uint64_t stack_bot_pc; uint64_t stack_bot_tok; -#define CPU_BACKTRACE_SIZE 20 +#define CPU_BACKTRACE_SIZE 60 struct bt_entry stack_bot_bt[CPU_BACKTRACE_SIZE]; unsigned int stack_bot_bt_count; #endif diff --git a/include/skiboot.h b/include/skiboot.h index 8750c70..79aece6 100644 --- a/include/skiboot.h +++ b/include/skiboot.h @@ -171,6 +171,12 @@ extern struct dt_node *dt_root; /* Generated git id. */ extern const char gitid[]; +/* Debug support */ +extern char __sym_map_start[]; +extern char __sym_map_end[]; +extern unsigned long get_symbol(unsigned long addr, + char **sym, char **sym_end); + /* Fast reboot support */ extern void fast_reset(void); extern void __secondary_cpu_entry(void); diff --git a/include/stack.h b/include/stack.h index d6a0609..02f1fe6 100644 --- a/include/stack.h +++ b/include/stack.h @@ -114,7 +114,7 @@ extern void __backtrace(struct bt_entry *entries, unsigned int *count); /* Convert a backtrace to ASCII */ extern void __print_backtrace(unsigned int pir, struct bt_entry *entries, unsigned int count, char *out_buf, - unsigned int *len); + unsigned int *len, bool symbols); /* For use by debug code, create and print backtrace, uses a static buffer */ extern void backtrace(void); |