Open vobst opened 10 months ago
I believe libbpf-rs exposes libbpf's APIs for working with BTF data (see https://github.com/libbpf/libbpf-rs/blob/master/libbpf-rs/src/btf/mod.rs), so I think it would be best to start with that. btfdump is meant to be a CLI, not a library, so I don't think it's a good choice for you.
Hi,
I'm planning to write a CLI tool that, among other things, needs to parse BTF files.
It seems to me that there isn't an established Rust library for that yet. The others I could find are https://crates.io/crates/btf-rs, https://crates.io/crates/btf.
I was wondering if you would recommend using going with library as a dependency (concerning API stability, support of new BTF extensions, ect.), or if one of the others is more likely to become the "standard solution"? More generally it would be interesting to know if you even aim to become the "standard solution" for parsing BTF in Rust and being depended on by other projects?
Of course I'd be happy to contribute if there is something I need that needs to be implemented.