Skip to content

Commit

Permalink
libbpf-tools: Add s390x support
Browse files Browse the repository at this point in the history
Generate vmlinux.h by running the following commands on Fedora 37:

    libbpf-tools$ bpftool btf dump file /usr/lib/debug/usr/lib/modules/6.4.13-100.fc37.s390x/vmlinux format c > s390/vmlinux_6413.h
    libbpf-tools$ ln -s vmlinux_6413.h s390/vmlinux.h

Signed-off-by: Ilya Leoshkevich <[email protected]>
  • Loading branch information
iii-i authored and yonghong-song committed Nov 5, 2023
1 parent 40498ed commit 7d7b6e8
Show file tree
Hide file tree
Showing 3 changed files with 120,926 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libbpf-tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ INSTALL ?= install
prefix ?= /usr/local
ARCH ?= $(shell uname -m | sed 's/x86_64/x86/' | sed 's/aarch64/arm64/' \
| sed 's/ppc64le/powerpc/' | sed 's/mips.*/mips/' \
| sed 's/riscv64/riscv/' | sed 's/loongarch.*/loongarch/')
| sed 's/riscv64/riscv/' | sed 's/loongarch.*/loongarch/' \
| sed 's/s390x/s390/')
BTFHUB_ARCHIVE ?= $(abspath btfhub-archive)
ifeq ($(ARCH),x86)
CARGO ?= $(shell which cargo)
Expand Down
1 change: 1 addition & 0 deletions libbpf-tools/s390/vmlinux.h
Loading

0 comments on commit 7d7b6e8

Please sign in to comment.