Ftrace trace-cmd

官方地址trace-cmd

  1. 从官方地址下载 源码
    git clone git://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git

  2. 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 -y

    In 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

  3. 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 
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值