[PATCH] D83289: [BPF] Emit unknown types as byte arrays
Ilya Leoshkevich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 10 05:53:37 PDT 2020
iii updated this revision to Diff 277007.
iii added a comment.
I've added the warning. On my s390 it looks like this when building
kselftests:
CLANG kselftest/bpf/tools/build/bpftool/pid_iter.bpf.o
Type `float` is not supported by BTF, emitting `unsigned char[4]` instead
Type `double` is not supported by BTF, emitting `unsigned char[8]` instead
I don't think existing progs are using any of these fields, but it
might be beneficial to be able to at least memcpy their contents to
e.g. a perf event buffer for later inspection.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83289/new/
https://reviews.llvm.org/D83289
Files:
llvm/lib/Target/BPF/BTFDebug.cpp
llvm/lib/Target/BPF/BTFDebug.h
llvm/test/CodeGen/BPF/BTF/double.ll
llvm/test/CodeGen/BPF/BTF/float.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83289.277007.patch
Type: text/x-patch
Size: 11842 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200710/1e15e949/attachment.bin>
More information about the llvm-commits
mailing list