diff --git a/profiler/Makefile b/profiler/Makefile index eebb10d..4fdfb50 100644 --- a/profiler/Makefile +++ b/profiler/Makefile @@ -7,7 +7,7 @@ BPFTOOL ?= $(abspath ../tools/bpftool) LIBBPF_SRC := $(abspath ../libbpf/src) LIBBPF_OBJ := $(abspath $(OUTPUT)/libbpf.a) ARCH := $(shell uname -m | sed 's/x86_64/x86/' | sed 's/aarch64/arm64/' | sed 's/ppc64le/powerpc/' | sed 's/mips.*/mips/') -VMLINUX := $(ARCH)/$(ARCH)/vmlinux.h +VMLINUX := ../vmlinux/$(ARCH)/vmlinux.h HELPERS := $(abspath ../helpers) # Use our own libbpf API headers and Linux UAPI headers distributed with # libbpf to avoid dependency on system-wide headers, which could be missing or @@ -45,7 +45,7 @@ all: $(APPS) $(VMLINUX): $(Q)wget https://github.com/yunwei37/apisix-profiler/releases/download/vmlinux/vmlinux.tar - $(Q)tar -xvf vmlinux.tar ../ + $(Q)tar -xvf vmlinux.tar -C ../ $(Q)rm vmlinux.tar .PHONY: clean