aquasecurity / btfhub

BTFhub, in collaboration with the BTFhub Archive repository, supplies BTF files for all published kernels that lack native support for embedded BTF. This joint effort ensures that even kernels without built-in BTF support can effectively leverage the benefits of eBPF programs, promoting compatibility across various kernel versions.
Apache License 2.0
387 stars 45 forks source link

fedora debug symbols BTF extraction: not implemented #77

Closed rafaeldtinoco closed 1 year ago

rafaeldtinoco commented 1 year ago

After doing minor adjustments to btfhub code for fedor release, I'm getting:

2023/03/09 02:06:01 SKIP: 5.0.9-301.fc30.x86_64.btf.tar.xz exists
2023/03/09 02:06:01 DEBUG: end pkg kernel-debuginfo-5.0.9-301.fc30.x86_64 (1/1)
2023/03/09 02:06:01 DEBUG: start pkg kernel-debuginfo-4.13.9-300.fc27.x86_64 (1/2)
2023/03/09 02:06:01 SKIP: 4.13.9-300.fc27.x86_64.btf.tar.xz exists
2023/03/09 02:06:01 DEBUG: end pkg kernel-debuginfo-4.13.9-300.fc27.x86_64 (1/2)
2023/03/09 02:06:01 DEBUG: start pkg kernel-debuginfo-4.18.19-100.fc27.x86_64 (2/2)
2023/03/09 02:06:01 DEBUG: downloading kernel-debuginfo-4.18.19-100.fc27.x86_64
2023/03/09 02:06:28 DEBUG: finished downloading kernel-debuginfo-4.18.19-100.fc27.x86_64 in 26.532340464s
2023/03/09 02:06:28 DEBUG: extracting vmlinux from /home/rafaeldtinoco/work/ebpf/btfhub/archive/fedora/27/x86_64/4.18.19-100.fc27.x86_64.rpm
2023/03/09 02:06:28 ERROR: kernel-debuginfo-4.18.19-100.fc27.x86_64: extracting vmlinux from /home/rafaeldtinoco/work/ebpf/btfhub/archive/fedora/27/x86_64/vmlinux-4.18.19-100.fc27.x86_64: not implemented

2023/03/09 02:09:21 DEBUG: finished downloading kernel-debuginfo-4.11.12-100.fc24.x86_64 in 3m20.22025926s
2023/03/09 02:09:21 DEBUG: extracting vmlinux from /home/rafaeldtinoco/work/ebpf/btfhub/archive/fedora/24/x86_64/4.11.12-100.fc24.x86_64.rpm
2023/03/09 02:09:21 ERROR: kernel-debuginfo-4.11.12-100.fc24.x86_64: extracting vmlinux from /home/rafaeldtinoco/work/ebpf/btfhub/archive/fedora/24/x86_64/vmlinux-4.11.12-100.fc24.x86_64: not implemented
2023/03/09 02:09:56 DEBUG: finished downloading kernel-debuginfo-4.13.16-100.fc25.x86_64 in 3m54.863718228s
2023/03/09 02:09:56 DEBUG: extracting vmlinux from /home/rafaeldtinoco/work/ebpf/btfhub/archive/fedora/25/x86_64/4.13.16-100.fc25.x86_64.rpm
2023/03/09 02:09:56 ERROR: kernel-debuginfo-4.13.16-100.fc25.x86_64: extracting vmlinux from /home/rafaeldtinoco/work/ebpf/btfhub/archive/fedora/25/x86_64/vmlinux-4.13.16-100.fc25.x86_64: not implemented
2023/03/09 02:10:06 DEBUG: finished downloading kernel-debuginfo-4.16.11-100.fc26.x86_64 in 4m5.097627896s
2023/03/09 02:10:06 DEBUG: extracting vmlinux from /home/rafaeldtinoco/work/ebpf/btfhub/archive/fedora/26/x86_64/4.16.11-100.fc26.x86_64.rpm
2023/03/09 02:10:06 ERROR: kernel-debuginfo-4.16.11-100.fc26.x86_64: extracting vmlinux from /home/rafaeldtinoco/work/ebpf/btfhub/archive/fedora/26/x86_64/vmlinux-4.16.11-100.fc26.x86_64: not implemented

The fedora ExtractKernel() method is named Exctract() only.