Not login

Revision history [back]

linux perf event 占有 hardware breakpoint 问题

问题描述: target ARMv8 raspberry 4. host windows 10 : ARM development studio + dstream

cat /proc/kallsymb |grep cdevopen 找到地址0xffffffc0100ad4c0 在cdev kernel driver 的 open 函数处设置 beakpoint 1、 系统提示只能设置hardware breakpoint, 不能设置software breakpoint, 2、 cat /dev/cdev 触发断定, 问题,开始能触发,后面断点不会被触发,查找arm 手册: CONFIGPERF_EVENTS=n Disables the performance events subsystem. Some implementations of the performance events subsystem internally make use of hardware breakpoints, disrupting the use of hardware breakpoints set by the debugger. It is recommended to disable this option if you observe the debugger failing to hit hardware breakpoints or failing to report kernel module load and unload events. 请老师围绕话题讲一讲

关闭