File tree Expand file tree Collapse file tree 4 files changed +4
-3
lines changed
tools/testing/selftests/bpf Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ hostprogs-y += syscall_tp
46
46
47
47
# Libbpf dependencies
48
48
LIBBPF := ../../tools/lib/bpf/bpf.o
49
+ CGROUP_HELPERS := ../../tools/testing/selftests/bpf/cgroup_helpers.o
49
50
50
51
test_lru_dist-objs := test_lru_dist.o $(LIBBPF )
51
52
sock_example-objs := sock_example.o $(LIBBPF )
@@ -69,13 +70,13 @@ map_perf_test-objs := bpf_load.o $(LIBBPF) map_perf_test_user.o
69
70
test_overhead-objs := bpf_load.o $(LIBBPF ) test_overhead_user.o
70
71
test_cgrp2_array_pin-objs := $(LIBBPF ) test_cgrp2_array_pin.o
71
72
test_cgrp2_attach-objs := $(LIBBPF ) test_cgrp2_attach.o
72
- test_cgrp2_attach2-objs := $(LIBBPF ) test_cgrp2_attach2.o cgroup_helpers.o
73
+ test_cgrp2_attach2-objs := $(LIBBPF ) test_cgrp2_attach2.o $( CGROUP_HELPERS )
73
74
test_cgrp2_sock-objs := $(LIBBPF ) test_cgrp2_sock.o
74
75
test_cgrp2_sock2-objs := bpf_load.o $(LIBBPF ) test_cgrp2_sock2.o
75
76
xdp1-objs := bpf_load.o $(LIBBPF ) xdp1_user.o
76
77
# reuse xdp1 source intentionally
77
78
xdp2-objs := bpf_load.o $(LIBBPF ) xdp1_user.o
78
- test_current_task_under_cgroup-objs := bpf_load.o $(LIBBPF ) cgroup_helpers.o \
79
+ test_current_task_under_cgroup-objs := bpf_load.o $(LIBBPF ) $( CGROUP_HELPERS ) \
79
80
test_current_task_under_cgroup_user.o
80
81
trace_event-objs := bpf_load.o $(LIBBPF ) trace_event_user.o
81
82
sampleip-objs := bpf_load.o $(LIBBPF ) sampleip_user.o
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ TEST_PROGS := test_kmod.sh test_xdp_redirect.sh test_xdp_meta.sh
23
23
24
24
include ../lib.mk
25
25
26
- BPFOBJ := $(OUTPUT ) /libbpf.a
26
+ BPFOBJ := $(OUTPUT ) /libbpf.a $( OUTPUT ) /cgroup_helpers.c
27
27
28
28
$(TEST_GEN_PROGS ) : $(BPFOBJ )
29
29
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments