issues
search
hitzhangjie
/
tinydbg
This repo teaches you how to build a golang debugger in golang. This repo is forked from go-delve/delve and simplified for linux/amd64.
MIT License
3
stars
0
forks
source link
how does dlv uses epbf for debugging?
#7
Open
hitzhangjie
opened
2 years ago
hitzhangjie
commented
2 years ago
dlv trace的时候创建tracepoints有两种方式:
一种是通过传统的创建breakpoint的方式,碰到的时候触发断点位置,从而tracer可以感知到tracee命中了断点从而打印相关命中断点的位置信息;
一种是通过epbf的方式,ebpf提供了一种高效且安全的方式来实现tracepoint。
dlv trace的时候创建tracepoints有两种方式: