# lizrice/learning-ebpf

Learning eBPF, published by O'Reilly - out now! Here's where you'll find a VM config for the examples, and more

Repository: https://github.com/lizrice/learning-ebpf
Canonical: https://ross.abutalabs.com/products/learning-ebpf
Homepage: https://www.amazon.com/Learning-eBPF-Programming-Observability-Networking/dp/1098135121
Language: C
License: Apache-2.0
License Family: permissive
Topics: ebpf, ebpf-co-re, linux-kernel
Last push: 2026-03-23T14:49:12+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 73, release rhythm 35, longevity 100
- inputs: {"age_days": 1492, "days_push": 163, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1804, forks 363 (observed 2026-08-28T04:05:38.847660+00:00)

## What it is
Companion repository for the O'Reilly book 'Learning eBPF' by Liz Rice, containing example eBPF programs in C and BCC for each book chapter. It also provides a Lima VM configuration with pre-installed dependencies for building and running the examples.

## Use cases
- learn eBPF programming from scratch
- run example eBPF programs on Linux
- set up a VM environment for eBPF development
- understand how eBPF bytecode is generated from C source
- explore XDP and bpf() system call examples
- study eBPF for observability, networking, and security

## When to choose
- you are reading or following the Learning eBPF book
- you want hands-on, chapter-by-chapter eBPF examples
- you need a ready-made Linux VM configured for eBPF tooling

## When to avoid
- you need production-ready eBPF tooling rather than educational examples
- you are not on Linux and don't want to use a Lima VM
- you want a comprehensive eBPF framework or library

## Facets
- artifact type: learning-resource
- maturity: active
- function: developer-tools, monitoring, security, networking
- domain: developer-tools, operating-systems, security, monitoring, tutorials
- platform: cli, cpp
- tags: ebpf, libbpf, bcc, linux-kernel, book-examples, observability, xdp, lima-vm, linux

## Member repositories
- lizrice/learning-ebpf (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:38.847660+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:21:49.337747+00:00, confidence not recorded.
  - readme: https://github.com/lizrice/learning-ebpf (fetched 2026-08-28T04:05:38.847660+00:00, sha aad30ccf41ca)
  - homepage: https://www.amazon.com/Learning-eBPF-Programming-Observability-Networking/dp/1098135121 (fetched 2026-08-29T11:00:38.939494+00:00, sha 6d1d7ac1af17)
- Data as of 2026-08-30T08:39:29.467469+00:00.
