-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to use perf_event_open syscall to create kprobe/uprobes
The solution is ported from bcc/src/cc/libbpf.c:bpf_try_perf_event_open_with_probe > Kernel API with e12f03d ("perf/core: Implement the 'perf_kprobe' PMU") allows > creating [k,u]probe with perf_event_open, which makes it easier to clean up > the [k,u]probe. This function tries to create pfd with the perf_kprobe PMU.
- Loading branch information
xiaofan hu
committed
Feb 16, 2021
1 parent
fb89254
commit 73a015a
Showing
1 changed file
with
198 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters