# libbpf

Automated upstream mirror for libbpf stand-alone build.

Repository: https://github.com/libbpf/libbpf
Canonical: https://ross.abutalabs.com/products/libbpf
Language: C
License: NOASSERTION
License Family: other
Topics: libbpf, bpf, tracing
Last push: 2026-07-30T18:20:16+00:00

## Health v2 (maintenance only)
Score: 89/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 75, longevity 100
- inputs: {"age_days": 2885, "days_push": 34, "days_rel": 170, "gap_med": 2, "n_releases_24m": 14}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2750, forks 502 (observed 2026-08-28T04:07:17.899387+00:00)

## What it is
libbpf is the official stand-alone C library for loading and managing BPF programs and maps on Linux, developed upstream in the bpf-next kernel tree and mirrored to GitHub. The ecosystem includes libbpf-bootstrap for example BPF applications and libbpf-rs, a safe idiomatic Rust wrapper around libbpf.

## Use cases
- write eBPF programs that trace kernel and user-space events
- load and manage BPF objects from a C application
- build CO-RE (compile once, run everywhere) BPF applications
- develop custom Linux observability and tracing tools
- write eBPF tooling in Rust with a safe API
- instrument networking, security, or performance monitoring via BPF

## When to choose
- you need low-level, kernel-synced BPF loading APIs on Linux
- you want CO-RE portability for BPF programs across kernel versions
- you are building tracing or observability tools like bpftrace-style utilities
- you want a safe Rust interface to eBPF via libbpf-rs

## When to avoid
- you need BPF on non-Linux platforms
- you want a high-level scripting tool rather than a library (consider bpftrace or BCC)
- you need Windows eBPF support

## Facets
- artifact type: library
- maturity: stable
- function: tracing, developer-tools, sdk
- domain: developer-tools, operating-systems, performance, monitoring
- platform: c, rust, cli
- tags: bpf, ebpf, libbpf, kernel, observability, co-re, bpf-rs, linux

## Member repositories
- libbpf/libbpf (main) score 89
- libbpf/libbpf-bootstrap (examples) score 77
- libbpf/libbpf-rs (sdk) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:17.899387+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-30T08:18:57.057892+00:00, confidence not recorded.
  - readme: https://github.com/libbpf/libbpf (fetched 2026-08-28T04:07:17.899387+00:00, sha 77db766309a8)
  - registry_crates: https://crates.io/api/v1/crates/libbpf-rs (fetched 2026-08-29T09:56:51.718621+00:00, sha 20b021713fd7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
