[PATCH] D53261: [BPF] Add BTF generation for BPF target

Yonghong Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 16 14:58:19 PDT 2018


yonghong-song added inline comments.


================
Comment at: test/MC/BPF/btf-type-llong.ll:10
+; CHECK:    '.BTF'
+; CHECK-EL: 0x00000000 9feb0100 18000000 00000000 10000000
+; CHECK-EL: 0x00000010 10000000 0f000000 01000000 00000001
----------------
aprantl wrote:
> Are you planning to add a BTF disassembler to LLVM in the future? It would make these tests easier to maintain. If not that's fine, too.
Currently, we do not have such a plan yet. We will have some kind of BTF dumper in the kernel tree (e.g., linux:tools/bpf/bpftool). Yes, that is the reason I just compare bytes...


Repository:
  rL LLVM

https://reviews.llvm.org/D53261





More information about the llvm-commits mailing list