├── .github ├── dependabot.yml └── workflows │ └── rust.yml ├── .gitignore ├── Cargo.toml ├── LICENSE ├── README.md ├── src ├── btf_index.rs ├── c_dumper.rs ├── lib.rs ├── main.rs ├── relocator.rs └── types.rs └── tests ├── samples ├── bitfields.c ├── bpf │ ├── chained_relocs.c │ ├── prog.c │ ├── relocs.c │ ├── simple_relocs.c │ └── tracex1_kern.c ├── cycles.c ├── embed_array.c ├── embed_array2.c ├── embed_func_proto.c ├── embed_func_proto2.c ├── embed_struct.c ├── embed_typedef.c ├── embed_typedef_cycle.c ├── embed_typedef_cycle2.c ├── funcs.c ├── naming_conflicts.c ├── order_test.c ├── order_test2.c ├── order_test3.c ├── order_test4.c ├── ordering.c ├── printing_arrays.c ├── ptrs.c └── simple.c └── tests.rs /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/rust.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/.github/workflows/rust.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/.gitignore -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/README.md -------------------------------------------------------------------------------- /src/btf_index.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/src/btf_index.rs -------------------------------------------------------------------------------- /src/c_dumper.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/src/c_dumper.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/src/main.rs -------------------------------------------------------------------------------- /src/relocator.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/src/relocator.rs -------------------------------------------------------------------------------- /src/types.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/src/types.rs -------------------------------------------------------------------------------- /tests/samples/bitfields.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/bitfields.c -------------------------------------------------------------------------------- /tests/samples/bpf/chained_relocs.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/bpf/chained_relocs.c -------------------------------------------------------------------------------- /tests/samples/bpf/prog.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/bpf/prog.c -------------------------------------------------------------------------------- /tests/samples/bpf/relocs.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/bpf/relocs.c -------------------------------------------------------------------------------- /tests/samples/bpf/simple_relocs.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/bpf/simple_relocs.c -------------------------------------------------------------------------------- /tests/samples/bpf/tracex1_kern.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/bpf/tracex1_kern.c -------------------------------------------------------------------------------- /tests/samples/cycles.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/cycles.c -------------------------------------------------------------------------------- /tests/samples/embed_array.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/embed_array.c -------------------------------------------------------------------------------- /tests/samples/embed_array2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/embed_array2.c -------------------------------------------------------------------------------- /tests/samples/embed_func_proto.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/embed_func_proto.c -------------------------------------------------------------------------------- /tests/samples/embed_func_proto2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/embed_func_proto2.c -------------------------------------------------------------------------------- /tests/samples/embed_struct.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/embed_struct.c -------------------------------------------------------------------------------- /tests/samples/embed_typedef.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/embed_typedef.c -------------------------------------------------------------------------------- /tests/samples/embed_typedef_cycle.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/embed_typedef_cycle.c -------------------------------------------------------------------------------- /tests/samples/embed_typedef_cycle2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/embed_typedef_cycle2.c -------------------------------------------------------------------------------- /tests/samples/funcs.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/funcs.c -------------------------------------------------------------------------------- /tests/samples/naming_conflicts.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/naming_conflicts.c -------------------------------------------------------------------------------- /tests/samples/order_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/order_test.c -------------------------------------------------------------------------------- /tests/samples/order_test2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/order_test2.c -------------------------------------------------------------------------------- /tests/samples/order_test3.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/order_test3.c -------------------------------------------------------------------------------- /tests/samples/order_test4.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/order_test4.c -------------------------------------------------------------------------------- /tests/samples/ordering.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/ordering.c -------------------------------------------------------------------------------- /tests/samples/printing_arrays.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/printing_arrays.c -------------------------------------------------------------------------------- /tests/samples/ptrs.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/ptrs.c -------------------------------------------------------------------------------- /tests/samples/simple.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/samples/simple.c -------------------------------------------------------------------------------- /tests/tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anakryiko/btfdump/HEAD/tests/tests.rs --------------------------------------------------------------------------------