-
Notifications
You must be signed in to change notification settings - Fork 721
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
link: Add Info interface support for perf link
Implementing Info function (Link interface) for perf event link, it's now possibe to retrieve link's data with: info, err := link.Info() to access kprobe info data: pevent := info.PerfEvent() switch pevent.Type { case sys.BPF_PERF_EVENT_KPROBE, sys.BPF_PERF_EVENT_KRETPROBE: kprobe := pevent.Kprobe() to access uprobe info data: case sys.BPF_PERF_EVENT_UPROBE, sys.BPF_PERF_EVENT_URETPROBE: uprobe := pevent.Uprobe() to access tracepoint info data: case sys.BPF_PERF_EVENT_TRACEPOINT: tp := pevent.Tracepoint() to access perf event info data: case sys.BPF_PERF_EVENT_EVENT: event := pevent.Event() Signed-off-by: Jiri Olsa <[email protected]>
- Loading branch information
Showing
2 changed files
with
118 additions
and
0 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