2017年6月24日 星期六

Probe point 'bch_journal' not found. Error: Failed to add events.

[root@kevin ~]# perf probe bch_journal
Probe point 'bch_journal' not found.
  Error: Failed to add events.

[root@kevin ~]# perf probe -m /lib/modules/3.10.0-514.16.1.el7.4.x86_64/kernel/drivers/md/bcache/bcache.ko -a bch_journal
Added new event:
  probe:bch_journal    (on bch_journal in bcache)

You can now use it in all perf tools, such as:

        perf record -e probe:bch_journal -aR sleep 1



ref: http://oliveryang.net/2016/07/linux-perf-tools-tips/#311-perf-cannot-find-external-module-symbols

沒有留言:

張貼留言

kgdb

--0313-- ken 不好意思 请教一下 之前你有交过我 在没有coredump的情况下 可以用gdb直接载入ko.debug, 然后dis -l register_bcache, 我记得使用方式是不是这样, 不过我现在dis -l出现错误^^" [root@...