aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJerome Forissier <jerome.forissier@linaro.org>2018-02-15 17:20:36 +0100
committerJérôme Forissier <jerome.forissier@linaro.org>2018-02-20 11:06:17 +0100
commit0c5bedb538f2012dda85c1a3ec4ccfb76b64a4f0 (patch)
tree31ea47111006bdd39aab5af99e5deb12edbcf8ee /scripts
parent5f7df50732ee837f1866a39e3ee4bac4d28dc679 (diff)
scripts/symbolize.py: update help text
Commit 546291f4de9b ("trace: make output more compact") has changed the format of the abort and panic dumps. Update 'symbolize.py --help' accordingly. The help text is also reworked slightly to make it clear that the script may be used with all kinds of crash dumps (TEE core or TA, aborts and panics). Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/symbolize.py29
1 files changed, 16 insertions, 13 deletions
diff --git a/scripts/symbolize.py b/scripts/symbolize.py
index 5b136d03..68d98940 100755
--- a/scripts/symbolize.py
+++ b/scripts/symbolize.py
@@ -25,22 +25,25 @@ REGION_RE = re.compile('region [0-9]+: va (?P<addr>0x[0-9a-f]+) '
'pa 0x[0-9a-f]+ size (?P<size>0x[0-9a-f]+)')
epilog = '''
-This scripts reads an OP-TEE abort message from stdin and adds debug
-information ('function at file:line') next to each address in the call stack.
-It uses the paths provided on the command line to locate the appropriate ELF
-binary (tee.elf or Trusted Application) and runs arm-linux-gnueabihf-addr2line
-or aarch64-linux-gnu-addr2line to process the addresses.
+This scripts reads an OP-TEE abort or panic message from stdin and adds debug
+information to the output, such as '<function> at <file>:<line>' next to each
+address in the call stack. Any message generated by OP-TEE and containing a
+call stack can in principle be processed by this script. This currently
+includes aborts and panics from the TEE core as well as from any TA.
+The paths provided on the command line are used to locate the appropriate ELF
+binary (tee.elf or Trusted Application). The GNU binutils (addr2line, objdump,
+nm) are used to extract the debug info.
-OP-TEE abort messages are sent to the secure console. They look like the
-following:
+OP-TEE abort and panic messages are sent to the secure console. They look like
+the following:
- ERROR: TEE-CORE: User TA data-abort at address 0xffffdecd (alignment fault)
+ E/TC:0 User TA data-abort at address 0xffffdecd (alignment fault)
...
- ERROR: TEE-CORE: Call stack:
- ERROR: TEE-CORE: 0x4000549e
- ERROR: TEE-CORE: 0x40001f4b
- ERROR: TEE-CORE: 0x4000273f
- ERROR: TEE-CORE: 0x40005da7
+ E/TC:0 Call stack:
+ E/TC:0 0x4000549e
+ E/TC:0 0x40001f4b
+ E/TC:0 0x4000273f
+ E/TC:0 0x40005da7
Inspired by a script of the same name by the Chromium project.