arm-trusted-firmware/include/lib
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 backtrace: Introduce backtrace function 2018-08-30 09:21:53 +01:00
aarch64 backtrace: Introduce backtrace function 2018-08-30 09:21:53 +01:00
cpus DSU erratum 936184 workaround 2018-08-17 10:34:43 +01:00
el3_runtime SDEI: MISRA fixes 2018-08-20 09:05:39 +01:00
extensions libc: Fix all includes in codebase 2018-08-22 10:26:05 +01:00
libc libc: Move tf_printf and tf_snprintf to libc 2018-08-22 10:26:05 +01:00
libfdt libfdt: Replace v1.4.1 by v1.4.2 2017-01-16 17:26:04 +00:00
pmf PMF: Fix MISRA defects 2018-07-20 13:27:31 +01:00
psci libc: Fix all includes in codebase 2018-08-22 10:26:05 +01:00
xlat_tables libc: Fix all includes in codebase 2018-08-22 10:26:05 +01:00
zlib zlib: add gunzip() support 2018-02-02 00:18:54 +09:00
bakery_lock.h libc: Fix all includes in codebase 2018-08-22 10:26:05 +01:00
cassert.h libc: Fix all includes in codebase 2018-08-22 10:26:05 +01:00
coreboot.h libc: Fix all includes in codebase 2018-08-22 10:26:05 +01:00
mmio.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
optee_utils.h Add Trusted OS extra image parsing support for ARM standard platforms 2017-08-09 18:06:05 +08:00
runtime_instr.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
semihosting.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
smcc.h Rename 'smcc' to 'smccc' 2018-03-21 10:49:27 +00:00
smccc.h Fix incorrect pointer conversion in SMC_UUID_RET() 2018-07-03 17:35:08 +02:00
smccc_v1.h Add support for the SMC Calling Convention 2.0 2018-04-23 15:43:29 +01:00
smccc_v2.h Add support for the SMC Calling Convention 2.0 2018-04-23 15:43:29 +01:00
spinlock.h libc: Fix all includes in codebase 2018-08-22 10:26:05 +01:00
utils.h libc: Fix all includes in codebase 2018-08-22 10:26:05 +01:00
utils_def.h Fix check_[uptr/u32]_overflow() macros MISRA defects 2018-07-20 11:36:00 +01:00