kbpf-basic 0.5.0

A no_std Rust eBPF foundation library for kernel or kernel-like environments.
Documentation
Build #3130553 2026-04-12 13:20:47

# rustc version rustc 1.97.0-nightly (bf4fbfb7a 2026-04-11)

# docs.rs version docsrs 0.0.0 (15f7e1e9dfac4fc5b7cc4abfd7682239002ba909 2026-04-08 )

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder4/builds/kbpf-basic-0.5.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder4/builds/kbpf-basic-0.5.0/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace-builder4/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace-builder4/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "6442450944" "--cpuset-cpus" "20-23" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "sleep" "infinity", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 0c95595d0c54ab82450023b98781d2b54f4029eefb80b8f99d52d50f6bc9d81b [INFO] running `Command { std: "docker" "start" "0c95595d0c54ab82450023b98781d2b54f4029eefb80b8f99d52d50f6bc9d81b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "--user" "1001:1001" "0c95595d0c54ab82450023b98781d2b54f4029eefb80b8f99d52d50f6bc9d81b" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20260411-1.97.0-nightly-bf4fbfb7a\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j4" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }` [INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op [INFO] [stderr] Documenting kbpf-basic v0.5.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/helper/mod.rs:171:9 [INFO] [stderr] | [INFO] [stderr] 171 | /// See https://ebpf-docs.dylanreimerink.nl/linux/helper-function/bpf_perf_event_output/ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] = note: `#[warn(rustdoc::bare_urls)]` on by default [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 171 | /// See <https://ebpf-docs.dylanreimerink.nl/linux/helper-function/bpf_perf_event_output/> [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/helper/mod.rs:173:9 [INFO] [stderr] | [INFO] [stderr] 173 | /// See https://man7.org/linux/man-pages/man7/bpf-helpers.7.html [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 173 | /// See <https://man7.org/linux/man-pages/man7/bpf-helpers.7.html> [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/helper/mod.rs:344:9 [INFO] [stderr] | [INFO] [stderr] 344 | /// See https://ebpf-docs.dylanreimerink.nl/linux/helper-function/bpf_map_lookup_percpu_elem/ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 344 | /// See <https://ebpf-docs.dylanreimerink.nl/linux/helper-function/bpf_map_lookup_percpu_elem/> [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/helper/mod.rs:377:9 [INFO] [stderr] | [INFO] [stderr] 377 | /// See https://ebpf-docs.dylanreimerink.nl/linux/helper-function/bpf_map_push_elem/ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 377 | /// See <https://ebpf-docs.dylanreimerink.nl/linux/helper-function/bpf_map_push_elem/> [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/helper/mod.rs:404:9 [INFO] [stderr] | [INFO] [stderr] 404 | /// See https://ebpf-docs.dylanreimerink.nl/linux/helper-function/bpf_map_pop_elem/ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 404 | /// See <https://ebpf-docs.dylanreimerink.nl/linux/helper-function/bpf_map_pop_elem/> [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/helper/mod.rs:427:9 [INFO] [stderr] | [INFO] [stderr] 427 | /// See https://ebpf-docs.dylanreimerink.nl/linux/helper-function/bpf_map_peek_elem/ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 427 | /// See <https://ebpf-docs.dylanreimerink.nl/linux/helper-function/bpf_map_peek_elem/> [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/perf/util.rs:20:9 [INFO] [stderr] | [INFO] [stderr] 20 | /// See https://elixir.bootlin.com/linux/v6.1/source/include/uapi/linux/perf_event.h#L544 [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 20 | /// See <https://elixir.bootlin.com/linux/v6.1/source/include/uapi/linux/perf_event.h#L544> [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: `kbpf-basic` (lib doc) generated 7 warnings (run `cargo fix --lib -p kbpf-basic` to apply 7 suggestions) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.69s [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/kbpf_basic/index.html [INFO] running `Command { std: "docker" "stop" "-t" "1" "0c95595d0c54ab82450023b98781d2b54f4029eefb80b8f99d52d50f6bc9d81b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0c95595d0c54ab82450023b98781d2b54f4029eefb80b8f99d52d50f6bc9d81b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c95595d0c54ab82450023b98781d2b54f4029eefb80b8f99d52d50f6bc9d81b", kill_on_drop: false }` [INFO] [stdout] 0c95595d0c54ab82450023b98781d2b54f4029eefb80b8f99d52d50f6bc9d81b