Use redhat crash utility to get the ftrace log from ramdump
I recently used the crash utility of redhat to parse the ftrace log of ramdump.
1. Download the crash utility source code from http://lele.redhat.com/andson/
2. cd crash; make target = ARM64 (set based on the chip type.
If the machine is not connected to the Internet, an error may occur. You can download the gdb-7.6.tar.gz package and put it under the crash directory.
3. makeextensions target = ARM64 compile the extend Library
4. sudo apt-get install trace-cmd (install trace-related tools)
5. crash vmlinux DDRCS0.BIN @ 0x40000000, DDRCS1.BIN @ 0x80000000
Run crash. Note that it must be a binfile. If there are multiple binfiles, separate them with commas. Address must be the physical address of the DDR bank.
6 extend trace. so
7. trace report (you can use help trace to view how to use the command)