OP-TEE / optee_docs

This git contains the official documentation for the OP-TEE project
BSD 2-Clause "Simplified" License
58 stars 96 forks source link

Fix ftrace_format.py not reading from stdin #219

Closed stgloorious closed 10 months ago

stgloorious commented 11 months ago

optee_os/scripts/ftrace_format.py does not read from stdin, hence piping the output of cat into it does not work and only prints usage information:

Usage: optee_os/scripts/ftrace_format.py ftrace.out
Converts a ftrace file to text. Output is written to stdout.

Instead, the ftrace-<ta_uuid>.out file has to be given as an argument like shown in the example in 5c2c0fb31efb.

optee_os/scripts/ftrace_format.py ftrace-<ta_uuid>.out  | optee_os/scripts/symbolize.py -d <ta_uuid>.elf -d tee.elf