use kernel libbpf and libbpf_load library...

This commit is contained in:
gatieme
2017-11-12 14:34:00 +08:00
parent 7a60140ef7
commit e525a69afa
3 changed files with 6 additions and 2 deletions
@@ -11,8 +11,12 @@ hostprogs-y += memcpy_kprobe
hostprogs-y += memcpy_stat
# Libbpf dependencies
LIBBPF := ./bpf/bpf.o
LIBBPF_LOAD := ./bpf_load.o
# use the libbpf and libbpf_load in current direntory
#LIBBPF := ./bpf/bpf.o
#LIBBPF_LOAD := ./bpf_load.o
# use the kernel libbpf and libbpf_load libraty
LIBBPF := ../../../../../../../../Kernel/linux/linux/tools/lib/bpf/bpf.o
LIBBPF_LOAD := ../../../../../../../../Kernel/linux/linux/samples/bpf/bpf_load.o
memcpy_kprobe-objs := $(LIBBPF) $(LIBBPF_LOAD) memcpy_kprobe_user.o
Binary file not shown.
Binary file not shown.