January 19, 2022


Your Partner in the Digital Era

Solo BumbleBee makes Linux eBPF programming easier

In 1992, the Berkeley Packet Filter (BPF) was introduced in Unix circles as a new, enhanced community packet filter. Wonderful, but not that large a deal. Then, in 2014, it was modified and brought into the Linux kernel as prolonged BPF (eBPF). Again, that was all right. Just all right. Before long thereafter however, developers started off working with it to operate person-room code within a digital equipment (VM) on the Linux kernel.  And, then it was a big offer. As Netflix computer system functionality specialist Brendan Gregg reported, with eBPF, “superpowers have last but not least arrive to Linux.”

What superpowers? eBPF provides you the electric power to operate packages in the Linux kernel devoid of modifying the kernel source code or incorporating added modules. In impact, it acts as a light-weight (VM) inside of the Linux kernel space. There, systems that can run in eBPF operate a great deal faster, whilst having edge of kernel characteristics unavailable to other higher-stage Linux courses.

Of program, running apps that close to the kernel even with eBPF is not simple. That is exactly where Solo.io, an software networking business, comes in with its new open up-supply task, BumbleBee. BumbleBee simplifies setting up, packaging, and distributing eBPF tools by mechanically making boilerplate person-space code for developing eBPF tools. 

If that appears a little bit like Docker, you are correct it does. Which is by structure. BumbleBee’s code also allows you to plug its plans into other Open Container Initiative (OCI) picture workflows for publishing and distribution. Does this signify you could integrate eBPF programs into a Continuous Integration/Steady Progress (CI/CD) workflow? Of course, it does. 

Commonly eBPF is applied as a secure way to improve the kernel with observability, networking, and protection technologies. These courses run in response to events these as network packets arriving. Normally, eBPF applications are published in a larger-stage language, these types of as C, and then Just in Time (JIT) compiled into x86 assembly for maximum functionality and safety. 

The eBPF architecture expects eBPF applications to be loaded as bytecode, and the kernel has facts structures and formats that are specific to every single kernel variation. It can be not, in significant funds letters, uncomplicated. In addition, packaging and distributing these binary programs is laborous, time-consuming, and mistake-inclined. BumbleBee’s target is to simplify the enhancement, packaging, and sharing of eBPF resources and velocity up eBPF’s adoption.

“At Solo.io, we see eBPF as a important enabling technological innovation that will boost software networking. We’ve been performing throughout the previous year to leverage eBPF engineering with Gloo Mesh, our Istio-based mostly services mesh providing for the enterprise,” explained Idit Levine, Solo.io’s founder and CEO. “Though creating eBPF extensions, we have confronted several specialized challenges—and this led us to create BumbleBee to aid streamline our eBPF efforts. Because we definitely think in the added benefits of eBPF, we are content to share BumbleBee with the community to accelerate eBPF adoption.”

BumbleBee contains a command-line interface (CLI) that instantly generates the person-space code for eBPF plans by exposing maps immediately as logs, metrics, and histograms. The developer only has to fret about producing the eBPF code. 

Solo.io constructed BumbleBee making use of libbpf, a new toolset for setting up BPG courses. With it, for illustration, you can create eBPF probes with zero userspace code. BumbleBee mechanically detects and displays maps in your software that allow for the person area and kernel place programs to share information. This is attained by way of the use of specific BPF conventions and keywords and phrases.

If you are performing with eBPF, BumbleBee calls for your consideration. Even at this early phase, it can help you create eBPF programs more swiftly and safely and securely.

Connected Tales: