|
|
Log in / Subscribe / Register

An introduction to the BPF Compiler Collection

An introduction to the BPF Compiler Collection

Posted Apr 21, 2019 19:58 UTC (Sun) by ncm (guest, #165)
Parent article: An introduction to the BPF Compiler Collection

Everyone seems to assume that eBPF program source is C. But LLVM is happy to generate code from IF produced from other languages, notably C++ and Rust. It would be unfortunate if BCC fails to make available improved ways to express eBPF programs.

People have asked me why anyone would code small program fragments like eBPF in C++. The short answer is that C++ and Rust enable better encapsulation of semantics, particularly those useful for a whole collection of eBPF program fragments. Once you find a use for eBPF in one place, you are likely to notice many other places.

Bcc would be a good place to park C++ and Rust abstractions useful for any eBPF program fragment.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds