arm-trusted-firmware/include/common
Douglas Raillard 0c62883f7e backtrace: Introduce backtrace function
This function diplays the backtrace, the current EL and security state
to allow a post-processing tool to choose the right binary to interpret
the dump.

The output can be fed to GNU addr2line to resolve function names given
an ELF binary compiled with debug information. The "-i" flag is
recommended to improve display in case of inlined functions. The *.dump
files generated during the build process can also be used.

The function works in AArch64 and AArch32. In AArch32 it only works in
A32 mode (without T32 interworking), which is enforced in the Makefile.

Sample output of a backtrace at EL3:

    BACKTRACE: START: function_name
    0: EL3: 0x798
    1: EL3: 0x538
    2: EL3: 0x550
    3: EL3: 0x55c
    4: EL3: 0x568
    5: EL3: 0x5a8
    6: EL3: 0xf4
    BACKTRACE: END: function_name

In order to enable it the new option ENABLE_BACKTRACE must be set to 1.
This option is set to 1 by default only in AArch64 debug builds. As
usual, it can be overridden by the platform makefile and in the build
command line.

Change-Id: Icaff39b0e5188329728be2f3c72b868b2368e794
Co-authored-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Signed-off-by: Douglas Raillard <douglas.raillard@arm.com>
2018-08-30 09:21:53 +01:00
..
aarch32 xlat v2: Split MMU setup and enable 2018-06-27 11:31:30 +01:00
aarch64 Add end_vector_entry assembler macro 2018-07-11 09:23:00 +01:00
tbbr Fix MISRA rule 8.3 Part 4 2018-04-13 14:01:56 +01:00
asm_macros_common.S Remove .func and .endfunc assembler directives 2018-07-11 09:22:56 +01:00
bl_common.h libc: Fix all includes in codebase 2018-08-22 10:26:05 +01:00
debug.h backtrace: Introduce backtrace function 2018-08-30 09:21:53 +01:00
desc_image_load.h Fix MISRA rule 8.4 Part 1 2018-02-28 17:19:55 +00:00
ep_info.h libc: Fix all includes in codebase 2018-08-22 10:26:05 +01:00
fdt_wrappers.h Dynamic cfg: MISRA fixes 2018-02-26 16:31:11 +00:00
image_decompress.h image_decompress: add APIs for decompressing images 2018-02-02 00:19:08 +09:00
interrupt_props.h GIC: Allow specifying interrupt properties 2017-10-16 16:50:02 +01:00
param_header.h libc: Fix all includes in codebase 2018-08-22 10:26:05 +01:00
romlib.h Add support for romlib in the build system 2018-08-03 11:31:42 +01:00
runtime_svc.h Add support for the SMC Calling Convention 2.0 2018-04-23 15:43:29 +01:00