SeeFlowerX / stackplz

基于eBPF的堆栈追踪工具
Apache License 2.0
927 stars 179 forks source link

想了解下这个模块怎么实现的硬件断点? #31

Closed zbx911 closed 1 year ago

zbx911 commented 1 year ago

!!

zbx911 commented 1 year ago

ebpf自带,还是直接调用内核的api

SeeFlowerX commented 1 year ago

具体实现在这个地方,用的perf实现的,严格来说不是ebpf的功能。

https://github.com/SeeFlowerX/ebpf/blob/bbb7a6709c3d79106fb94421577e45246c10aa3a/perf/ring.go#L128