forked from iovisor/bcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bcc: Tracepoint support in libbpf and BPF
Introduce tracepoint support in libbpf via new `bpf_attach_tracepoint` API, which takes the tracepoint category and name (e.g. "sched", "sched_switch"). Attach the tracing program to the tracepoint's id and proceed as usual. Add `attach_tracepoint` API to Python BPF module, which takes the tracepoint description as a single string (e.g. "sched:sched_switch"). Load the BPF program with bpf_prog_type set to TRACEPOINT and then call `bpf_attach_tracepoint` to attach it.
- Loading branch information
Showing
3 changed files
with
93 additions
and
2 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
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
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