diff options
| author | Baoyou Xie <[email protected]> | 2020-07-29 21:04:37 +0800 |
|---|---|---|
| committer | Baoyou Xie <[email protected]> | 2020-07-29 21:04:37 +0800 |
| commit | cbfff8d516aecd546b3c58aa1b699968771f380f (patch) | |
| tree | edec95bdbc242aafef65603138fd69294b5d9b86 | |
| parent | f7304ed3b19ddd98f0968ea894f9e42748bab2b4 (diff) | |
diagnose-tools: 支持arm 64的用户态堆栈2.0-release
| -rw-r--r-- | SOURCE/diagnose-tools/misc.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/SOURCE/diagnose-tools/misc.cc b/SOURCE/diagnose-tools/misc.cc index 18110cb..86dc8b1 100644 --- a/SOURCE/diagnose-tools/misc.cc +++ b/SOURCE/diagnose-tools/misc.cc @@ -176,10 +176,9 @@ void diag_printf_kern_stack(struct diag_kern_stack_detail *kern_stack) void diag_printf_user_stack(int pid, int ns_pid, const char *comm, struct diag_user_stack_detail *user_stack, int attach, int reverse) { -#ifdef __x86_64__ int i; - symbol sym; - elf_file file; + symbol sym; + elf_file file; printf(" 用户态堆栈:\n"); if (reverse) { @@ -235,7 +234,6 @@ void diag_printf_user_stack(int pid, int ns_pid, const char *comm, } } } -#endif } void diag_printf_user_stack(int pid, int ns_pid, const char *comm, @@ -273,7 +271,6 @@ static int unwind_frame_callback(struct unwind_entry *entry, void *arg) void diag_printf_raw_stack(int pid, int ns_pid, const char *comm, struct diag_raw_stack_detail *raw_stack, int attach) { -#ifdef __x86_64__ struct perf_sample stack_sample; entry_cb_arg_t unwind_arg; static u64 regs_buf[3]; @@ -290,7 +287,6 @@ void diag_printf_raw_stack(int pid, int ns_pid, const char *comm, unwind__get_entries(unwind_frame_callback, &unwind_arg, &g_symbol_parser, pid, ns_pid, &stack_sample); -#endif } void diag_printf_raw_stack(int pid, int ns_pid, const char *comm, |
