Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 938188 - dev-debug/sysdig: wire up support for eBPF probe
Summary: dev-debug/sysdig: wire up support for eBPF probe
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Holger Hoffstätte
URL: https://sysdig.com/blog/sysdig-contri...
Whiteboard:
Keywords: LATER, PullRequest, UPSTREAM
Depends on:
Blocks:
 
Reported: 2024-08-19 15:20 UTC by Holger Hoffstätte
Modified: 2024-11-01 17:29 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Hoffstätte 2024-08-19 15:20:52 UTC
sysdig's support for an eBPF probe as alternative/replacement for the scap kernel module is stable enough. They actually have two, but we only want the "modern bpf" probe.

- figure out dependencies (clang, bpftool?), maybe optionally bpf-toolchain
- wire up USE=bpf to control dependencies/building


Reproducible: Always
Comment 1 Holger Hoffstätte 2024-10-06 19:27:58 UTC
Done in my local overlay:
- added bpf USE flag
- added required bpftool/clang dependencies
- uses llvm-r1 eclass
- added elog message on how to use the bpf probe
- verified that using the bpf probe does not load the scap driver
- verified that the bpf probe uses more CPU than scap (~6% vs. <2%) :(

Using bpf-toolchain will require some creative upstream changes as currently clang is hardcoded everywhere:
https://github.com/falcosecurity/libs/blob/85713d300f4b4ee61280d5b902c386c1ef8de3c2/driver/modern_bpf/CMakeLists.txt#L65
Comment 2 Larry the Git Cow gentoo-dev 2024-11-01 17:29:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8efa75ce221f1748bbe3cb83aed9988a001c62e5

commit 8efa75ce221f1748bbe3cb83aed9988a001c62e5
Author:     Holger Hoffstätte <holger@applied-asynchrony.com>
AuthorDate: 2024-10-14 12:45:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-01 17:28:23 +0000

    dev-debug/sysdig: add 0.39.0
    
    Closes: https://bugs.gentoo.org/938218
    Closes: https://bugs.gentoo.org/938188
    Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-debug/sysdig/metadata.xml         |   2 +
 dev-debug/sysdig/sysdig-0.39.0.ebuild | 169 ++++++++++++++++++++++++++++++++++
 2 files changed, 171 insertions(+)