YoVDO

BPF: Introduction, Programming Tips and Tricks

Offered By: CNCF [Cloud Native Computing Foundation] via YouTube

Tags

System Administration Courses BPF Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the world of Berkeley Packet Filter (BPF) in this informative 32-minute conference talk from KubeCon + CloudNativeCon Europe 2022. Delve into the past, present, and future of BPF, a crucial subsystem in the Linux kernel widely used for tracing, networking, and security. Learn how BPF safely and efficiently extends kernel capabilities without modifying source code or loading kernel modules. Discover practical programming tips and tricks for developing BPF tools using the libbpf library. Gain insights into BPF CO-RE, creating a "Hello world" example, understanding BPF skeleton and app lifecycle, and mastering advanced techniques such as selective attachment, custom loading, and handling multiple events. Explore methods for reading kernel structure fields, dealing with API changes, and optimizing performance through global variables and map pre-allocation strategies.

Syllabus

Intro
Speaker
What's BPF CO-RE?
"Hello world" with libbpf
BPF skeleton and BPF app lifecycle
Combining the open and load phases
Selective attach
Selective load
Custom load and attach
Multiple handlers for the same event
Reading kernel structure's fields
How to tell if a field exists?
How to deal with kernel API changes?
Control BPF behavior with global variable
Reduce map pre-allocation overhead
Determine the map size at runtime
Use global variables instead of map


Taught by

CNCF [Cloud Native Computing Foundation]

Related Courses

Containers at Facebook - Advanced Linux, Btrfs, and Systemd Implementation
ChariotSolutions via YouTube
Cilium - Kernel Native Security and DDOS Mitigation for Microservices with BPF
Docker via YouTube
The Why and How of libseccomp
Linux Foundation via YouTube
BPF Static Keys Support: Update on Wildcard Map Including Use Cases and Restrictions
Linux Foundation via YouTube
Compiled BPF: Part 2 - Evolution and Future Directions
Linux Foundation via YouTube