Skip to content

Commit fa8cf5d

Browse files
chenhengqianakryiko
authored andcommitted
examples/c: Add loongarch64 support
Signed-off-by: Hengqi Chen <[email protected]>
1 parent b5b3641 commit fa8cf5d

File tree

3 files changed

+119392
-1
lines changed

3 files changed

+119392
-1
lines changed

examples/c/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ ARCH ?= $(shell uname -m | sed 's/x86_64/x86/' \
1515
| sed 's/aarch64/arm64/' \
1616
| sed 's/ppc64le/powerpc/' \
1717
| sed 's/mips.*/mips/' \
18-
| sed 's/riscv64/riscv/')
18+
| sed 's/riscv64/riscv/' \
19+
| sed 's/loongarch64/loongarch/')
1920
VMLINUX := ../../vmlinux/$(ARCH)/vmlinux.h
2021
# Use our own libbpf API headers and Linux UAPI headers distributed with
2122
# libbpf to avoid dependency on system-wide headers, which could be missing or

vmlinux/loongarch/vmlinux.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vmlinux_602.h

0 commit comments

Comments
 (0)