官方地址trace-cmd
-
从官方地址下载 源码
git clone git://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git -
BUILDING:
In order to install build dependencies on Debian / Ubuntu do the following:
sudo apt-get install build-essential git pkg-config -y
sudo apt-get install libtracefs-dev libtraceevent-dev -yIn order to install build dependencies on Fedora, as root do the following:
dnf install gcc make git pkg-config -y
dnf install libtracefs-devel libtraceevent-devel -y -
In case your distribution does not have the required libtracefs and
libtraceevent libraries, build and install them manually:
git clone https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/
cd libtraceevent
make
sudo make install
git clone https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/
cd libtracefs
make
sudo make install
- To make trace-cmd
make
使用RDP从dump 中解析ftrace (Qualcomm platform)
Local_setting.py
- crashtool=“/mnt/c/linux_parser/linux_toolset/crash”
- trace_ext=“/mnt/c/linux_parser/linux_toolset/trace.so”
- tracecmdtool="/usr/bin/trace-cmd“
python /mnt/c/linux_parser/linux-ramdump-parser-v2/ramparse.py --vmlinux ./vmlinux --auto-dump . --outdir . –dump-ftrace -x --force-hardware msmnile
ftrace.txt
_-----=> irqs-off
/ _----=> need-resched
| / _---=> hardirq/softirq
|| / _--=> preempt-depth
||| / delay
TASK-PID CPU# |||| TIMESTAMP FUNCTION
| | | |||| | |
<idle>-0 [003] 4.582843: irq_handler_exit irq=2 ret=1
<idle>-0 [002] 4.582844: irq_handler_exit irq=2 ret=1
<idle>-0 [001] 4.582864: irq_handler_exit irq=2 ret=1