You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! A question for the people working on the modern eBPF probe in falcosecurity/libs (driver/modern_bpf): have you ever considered writing BPF programs in C++ instead of C, given that libs is already C++ on the userspace side?
I'm working on making that practical. The clang fixes for C++ records in BTF and CO-RE are in review upstream (llvm/llvm-project#233715), and on top of them there's a small header-only library that stays on libbpf, CO-RE and skeletons: https://github.com/cpp-bpf/cpp-bpf. It's early, the first release is a few weeks away.
I'm not proposing any change to Falco. I'm curious whether C++ on the BPF side would be useful to you, for example typed maps and RAII for locks and ring buffer reservations, or what would stop you from using it (supported kernels, toolchain, build).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi! A question for the people working on the modern eBPF probe in falcosecurity/libs (driver/modern_bpf): have you ever considered writing BPF programs in C++ instead of C, given that libs is already C++ on the userspace side?
I'm working on making that practical. The clang fixes for C++ records in BTF and CO-RE are in review upstream (llvm/llvm-project#233715), and on top of them there's a small header-only library that stays on libbpf, CO-RE and skeletons: https://github.com/cpp-bpf/cpp-bpf. It's early, the first release is a few weeks away.
I'm not proposing any change to Falco. I'm curious whether C++ on the BPF side would be useful to you, for example typed maps and RAII for locks and ring buffer reservations, or what would stop you from using it (supported kernels, toolchain, build).
Thanks!
All reactions