forked from linuxkerneltravel/lmp
-
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.
- Loading branch information
1 parent
538a555
commit 120a990
Showing
26 changed files
with
434,993 additions
and
43 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
26 changes: 26 additions & 0 deletions
26
eBPF_Supermarket/CPU_Subsystem/cs_delay/libbpf_cs_delay/Makefile
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
ARCH ?= $(shell uname -m | sed 's/x86_64/x86/' \ | ||
| sed 's/arm.*/arm/' \ | ||
| sed 's/aarch64/arm64/' \ | ||
| sed 's/ppc64le/powerpc/' \ | ||
| sed 's/mips.*/mips/' \ | ||
| sed 's/riscv64/riscv/' \ | ||
| sed 's/loongarch64/loongarch/') | ||
APP = cs_delay | ||
|
||
ifeq ($(wildcard ./vmlinux.h),) | ||
all: | ||
bpftool btf dump file /sys/kernel/btf/vmlinux format c > vmlinux.h | ||
clang -g -O2 -target bpf -D__TARGET_ARCH_$(ARCH) -I/usr/include/x86_64-linux-gnu -I. -c $(APP).bpf.c -o $(APP).bpf.o | ||
bpftool gen skeleton $(APP).bpf.o > $(APP).skel.h | ||
clang -g -O2 -Wall -I . -c $(APP).c -o $(APP).o | ||
clang -Wall -O2 -g $(APP).o -static -lbpf -lelf -lz -o $(APP) | ||
endif | ||
|
||
other: | ||
clang -g -O2 -target bpf -D__TARGET_ARCH_$(ARCH) -I/usr/include/x86_64-linux-gnu -I. -c $(APP).bpf.c -o $(APP).bpf.o | ||
bpftool gen skeleton $(APP).bpf.o > $(APP).skel.h | ||
clang -g -O2 -Wall -I . -c $(APP).c -o $(APP).o | ||
clang -Wall -O2 -g $(APP).o -static -lbpf -lelf -lz -o $(APP) | ||
|
||
clean: | ||
rm *.o *.skel.h $(APP) |
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
Binary file not shown.
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
Empty file.
Submodule libbpf
updated
4 files
+6 −2 | .readthedocs.yaml | |
+2 −1 | BPF-CHECKPOINT-COMMIT | |
+1 −0 | docs/conf.py | |
+2 −1 | docs/sphinx/requirements.txt |
Oops, something went wrong.