Lines Matching refs:bpf

51 LIBBPF_SRC = $(TOOLS_PATH)/lib/bpf
57 CGROUP_HELPERS := ../../tools/testing/selftests/bpf/cgroup_helpers.o
58 TRACE_HELPERS := ../../tools/testing/selftests/bpf/trace_helpers.o
107 always-y += tracex1.bpf.o
108 always-y += tracex2.bpf.o
109 always-y += tracex3.bpf.o
110 always-y += tracex4.bpf.o
111 always-y += tracex5.bpf.o
112 always-y += tracex6.bpf.o
113 always-y += tracex7.bpf.o
114 always-y += sock_flags.bpf.o
115 always-y += test_probe_write_user.bpf.o
116 always-y += trace_output.bpf.o
120 always-y += offwaketime.bpf.o
121 always-y += spintest.bpf.o
122 always-y += map_perf_test.bpf.o
123 always-y += test_overhead_tp.bpf.o
124 always-y += test_overhead_raw_tp.bpf.o
125 always-y += test_overhead_kprobe.bpf.o
127 always-y += test_cgrp2_tc.bpf.o
128 always-y += test_current_task_under_cgroup.bpf.o
131 always-y += lwt_len_hist.bpf.o
133 always-y += test_map_in_map.bpf.o
174 TPROGS_CFLAGS += -I$(srctree)/tools/testing/selftests/bpf/
192 # Allows pointing LLC/CLANG to a LLVM backend with bpf support, redefine on cmdline:
193 # make M=samples/bpf LLC=~/git/llvm-project/llvm/build/bin/llc CLANG=~/git/llvm-project/llvm/build/bin/clang
218 BTF_LLC_PROBE := $(shell $(LLC) -march=bpf -mattr=help 2>&1 | grep dwarfris)
222 $(CLANG) --target=bpf -O2 -g -c -x c - -o ./llvm_btf_verify.o; \
254 BPFTOOLDIR := $(TOOLS_PATH)/bpf/bpftool
274 # Verify LLVM compiler tools are available and bpf target is supported by llc
286 @if ! (${LLC} -march=bpf -mattr=help > /dev/null 2>&1); then \
287 echo "*** ERROR: LLVM (${LLC}) does not support 'bpf' target" ;\
302 $(obj)/tracex5.bpf.o: $(obj)/syscall_nrs.h
313 -I$(src)/../../tools/testing/selftests/bpf
339 # '--target=bpf'. This fixes "missing" files on some architectures/distros,
352 $(obj)/xdp_router_ipv4.bpf.o: $(obj)/xdp_sample.bpf.o
354 $(obj)/%.bpf.o: $(src)/%.bpf.c $(obj)/vmlinux.h $(src)/xdp_sample.bpf.h $(src)/xdp_sample_shared.h
356 $(Q)$(CLANG) -g -O2 --target=bpf -D__TARGET_ARCH_$(SRCARCH) \
358 -I$(srctree)/samples/bpf -I$(srctree)/tools/include \
360 -c $(filter %.bpf.c,$^) -o $@
365 xdp_router_ipv4.skel.h-deps := xdp_router_ipv4.bpf.o xdp_sample.bpf.o
367 LINKED_BPF_SRCS := $(patsubst %.bpf.o,%.bpf.c,$(foreach skel,$(LINKED_SKELS),$($(skel)-deps)))
369 BPF_SRCS_LINKED := $(notdir $(wildcard $(src)/*.bpf.c))
370 BPF_OBJS_LINKED := $(patsubst %.bpf.c,$(obj)/%.bpf.o, $(BPF_SRCS_LINKED))
384 # with native target, e.g., x64, arm64, etc. 'opt' does bpf CORE IR builtin
386 # 'opt' output to IR, and finally 'llc' generates bpf byte code.
388 @echo " CLANG-bpf " $@
390 -I$(obj) -I$(srctree)/tools/testing/selftests/bpf/ \
398 -I$(srctree)/samples/bpf/ -include asm_goto_workaround.h \
400 $(OPT) -O2 -mtriple=bpf-pc-linux | $(LLVM_DIS) | \
401 $(LLC) -march=bpf $(LLC_FLAGS) -filetype=obj -o $@