Lines Matching refs:bpf

64 LIBBPF_SRC = $(TOOLS_PATH)/lib/bpf
70 CGROUP_HELPERS := ../../tools/testing/selftests/bpf/cgroup_helpers.o
71 TRACE_HELPERS := ../../tools/testing/selftests/bpf/trace_helpers.o
206 TPROGS_CFLAGS += -I$(srctree)/tools/testing/selftests/bpf/
251 BTF_LLC_PROBE := $(shell $(LLC) -march=bpf -mattr=help 2>&1 | grep dwarfris)
255 $(CLANG) -target bpf -O2 -g -c -x c - -o ./llvm_btf_verify.o; \
287 BPFTOOLDIR := $(TOOLS_PATH)/bpf/bpftool
321 @if ! (${LLC} -march=bpf -mattr=help > /dev/null 2>&1); then \
381 $(obj)/xdp_redirect_cpu.bpf.o: $(obj)/xdp_sample.bpf.o
382 $(obj)/xdp_redirect_map_multi.bpf.o: $(obj)/xdp_sample.bpf.o
383 $(obj)/xdp_redirect_map.bpf.o: $(obj)/xdp_sample.bpf.o
384 $(obj)/xdp_redirect.bpf.o: $(obj)/xdp_sample.bpf.o
385 $(obj)/xdp_monitor.bpf.o: $(obj)/xdp_sample.bpf.o
387 $(obj)/%.bpf.o: $(src)/%.bpf.c $(obj)/vmlinux.h $(src)/xdp_sample.bpf.h $(src)/xdp_sample_shared.h
389 $(Q)$(CLANG) -g -O2 -target bpf -D__TARGET_ARCH_$(SRCARCH) \
391 -I$(srctree)/samples/bpf -I$(srctree)/tools/include \
393 -c $(filter %.bpf.c,$^) -o $@
399 xdp_redirect_cpu.skel.h-deps := xdp_redirect_cpu.bpf.o xdp_sample.bpf.o
400 xdp_redirect_map_multi.skel.h-deps := xdp_redirect_map_multi.bpf.o xdp_sample.bpf.o
401 xdp_redirect_map.skel.h-deps := xdp_redirect_map.bpf.o xdp_sample.bpf.o
402 xdp_redirect.skel.h-deps := xdp_redirect.bpf.o xdp_sample.bpf.o
403 xdp_monitor.skel.h-deps := xdp_monitor.bpf.o xdp_sample.bpf.o
405 LINKED_BPF_SRCS := $(patsubst %.bpf.o,%.bpf.c,$(foreach skel,$(LINKED_SKELS),$($(skel)-deps)))
407 BPF_SRCS_LINKED := $(notdir $(wildcard $(src)/*.bpf.c))
408 BPF_OBJS_LINKED := $(patsubst %.bpf.c,$(obj)/%.bpf.o, $(BPF_SRCS_LINKED))
428 -I$(obj) -I$(srctree)/tools/testing/selftests/bpf/ \
436 -I$(srctree)/samples/bpf/ -include asm_goto_workaround.h \
438 $(OPT) -O2 -mtriple=bpf-pc-linux | $(LLVM_DIS) | \
439 $(LLC) -march=bpf $(LLC_FLAGS) -filetype=obj -o $@