Crates.io | btfdump |
lib.rs | btfdump |
version | 0.0.4 |
source | src |
created_at | 2022-12-17 00:03:17.340448 |
updated_at | 2023-10-05 18:11:36.207829 |
description | BTF introspection tool |
homepage | |
repository | https://github.com/anakryiko/btfdump |
max_upload_size | |
id | 739553 |
size | 154,210 |
BTF introspection tool
btfdump
is written in Rust and relies on standard Cargo package manager.
To compile btfdump:
curl https://sh.rustup.rs -sSf | sh
.
b. If you are behind HTTP/HTTPS proxy, you can specify it using http_proxy
and https_proxy
envvars:
$ export http_proxy=http://fwdproxy:8080
$ export https_proxy=http://fwdproxy:8080
$ curl https://sh.rustup.rs -sSf | sh
cargo build
or cargo build --release
to compile it. This will build btf
binary in target/{debug,release}/
directory.cargo run -- <args>
to compile and run through Cargo.btf dump --format [human|c] <elf-file>
--type
, --name
, and --id
options. See btf dump --help
for more details.--dataset
option for dumping .BTF.ext data as well.Output high-level stats about .BTF and .BTF.ext data.
btf stat <elf-file>