-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpf: iterators: Split iterators.lskel.h into little- and big- endian …
…versions iterators.lskel.h is little-endian, therefore bpf iterator is currently broken on big-endian systems. Introduce a big-endian version and add instructions regarding its generation. Unfortunately bpftool's cross-endianness capabilities are limited to BTF right now, so the procedure requires access to a big-endian machine or a configured emulator. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Link: https://lore.kernel.org/r/20230128000650.1516334-25-iii@linux.ibm.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
- Loading branch information
Ilya Leoshkevich
authored and
Alexei Starovoitov
committed
Jan 28, 2023
1 parent
42fae97
commit 0f0e5f5
Showing
5 changed files
with
435 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
WARNING: | ||
If you change "iterators.bpf.c" do "make -j" in this directory to rebuild "iterators.skel.h". | ||
If you change "iterators.bpf.c" do "make -j" in this directory to | ||
rebuild "iterators.lskel-little-endian.h". Then, on a big-endian | ||
machine, do "make -j big" in this directory to rebuild | ||
"iterators.lskel-big-endian.h". Commit both resulting headers. | ||
Make sure to have clang 10 installed. | ||
See Documentation/bpf/bpf_devel_QA.rst |
Oops, something went wrong.