module
0.0.0-20241026080420-bd0803408a03
Repository: https://github.com/florianl/perf-ebpf.git
Documentation: pkg.go.dev
# README
perf-ebpf
The purpose of this repository is to showcase the use of eBPF on perf events using different dependencies. By no means is the list of selected dependencies exhaustive. Contributions showcasing the use of eBPF on perf events with new dependencies are welcome.
Dependencies
The table below lists dependencies that provide some kind of interaction with the API of the perf subsystem of the Linux kernel. More specialized and narrow dependencies that only implement a smaller subset of the perf subsystem API are not listed.
Dependency | Comment |
---|---|
hodgesds/perf-utils | Limits the support of eBPF to tracepoints. |
golang.org/x/sys/unix/ | Provides a low level API to the perf subsystem and other Linux Kernel APIs. |
acln0/perf && elastic/go-perf | Higher level API for the perf subsystem. CL#168059 |
Use case
The perf subsystem of the Linux Kernel provides a very powerful and complex API. For comparission purposes each showcase should meet the following criteria:
- Use a sampling frequency of 99 Hz
- Call eBPF program on specific PID
- Call eBPF program on every CPU
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
Package prog provides a dummy eBPF program that can be attached to perf events.