joelagnel / bpfd

BPFd (Deprecated, please see README.md) : Berkeley Packet Filter daemon (BPFd). Makes it possible to run BCC tools across systems.
Apache License 2.0
95 stars 23 forks source link

Add support for bpf_attach_perf_event #41

Closed jcanseco closed 6 years ago

jcanseco commented 6 years ago

This fixes the bug where tools that needed to attach to a perf_event (like profile.py) were crashing due to BCC's lack of support for attaching to remote perf_events.

Signed-off-by: Jazel Canseco jcanseco@google.com

When approving this PR, please approve the corresponding BCC PR as well. Fixes #31

jcanseco commented 6 years ago

This was tested with the profile.py tool, and it seemed to work fine now. It's no longer crashing, and it's outputting meaningful data.