diff options
author | Roman Gushchin <guro@fb.com> | 2017-11-05 08:15:33 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-05 23:26:51 +0900 |
commit | 9d1f15941967cd80fc3baa3322751fab532f98a4 (patch) | |
tree | 70081990c86ba172aecb7b3ed9cab20d870e79ba /tools/testing/selftests | |
parent | bpf, cgroup: implement eBPF-based device controller for cgroup v2 (diff) | |
download | linux-dev-9d1f15941967cd80fc3baa3322751fab532f98a4.tar.xz linux-dev-9d1f15941967cd80fc3baa3322751fab532f98a4.zip |
bpf: move cgroup_helpers from samples/bpf/ to tools/testing/selftesting/bpf/
The purpose of this move is to use these files in bpf tests.
Signed-off-by: Roman Gushchin <guro@fb.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Tejun Heo <tj@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | tools/testing/selftests/bpf/Makefile | 2 | ||||
-rw-r--r-- | tools/testing/selftests/bpf/cgroup_helpers.c (renamed from samples/bpf/cgroup_helpers.c) | 0 | ||||
-rw-r--r-- | tools/testing/selftests/bpf/cgroup_helpers.h (renamed from samples/bpf/cgroup_helpers.h) | 0 |
3 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile index 4f0734aa6e93..9fbb02638198 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile @@ -23,7 +23,7 @@ TEST_PROGS := test_kmod.sh test_xdp_redirect.sh test_xdp_meta.sh include ../lib.mk -BPFOBJ := $(OUTPUT)/libbpf.a +BPFOBJ := $(OUTPUT)/libbpf.a $(OUTPUT)/cgroup_helpers.c $(TEST_GEN_PROGS): $(BPFOBJ) diff --git a/samples/bpf/cgroup_helpers.c b/tools/testing/selftests/bpf/cgroup_helpers.c index f3bca3ade0f3..f3bca3ade0f3 100644 --- a/samples/bpf/cgroup_helpers.c +++ b/tools/testing/selftests/bpf/cgroup_helpers.c diff --git a/samples/bpf/cgroup_helpers.h b/tools/testing/selftests/bpf/cgroup_helpers.h index 06485e0002b3..06485e0002b3 100644 --- a/samples/bpf/cgroup_helpers.h +++ b/tools/testing/selftests/bpf/cgroup_helpers.h |