aboutsummaryrefslogtreecommitdiffstats
path: root/samples/bpf/Makefile
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@fb.com>2016-03-08 18:07:54 -0500
committerDavid S. Miller <davem@davemloft.net>2016-03-08 23:22:03 -0500
commit26e9093110fb9ceb10093e4914b129b58d49a425 (patch)
treee0bb3b8bf19cda7bfcbe3426ad45d5e075494da7 /samples/bpf/Makefile
parent7dcc42b685b4acf7b2f3f08d157f1574e1bec7f7 (diff)
samples/bpf: add map performance test
performance tests for hash map and per-cpu hash map with and without pre-allocation Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/bpf/Makefile')
-rw-r--r--samples/bpf/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile
index 75a13e742ab4..502c9fc8db85 100644
--- a/samples/bpf/Makefile
+++ b/samples/bpf/Makefile
@@ -18,6 +18,7 @@ hostprogs-y += trace_output
18hostprogs-y += lathist 18hostprogs-y += lathist
19hostprogs-y += offwaketime 19hostprogs-y += offwaketime
20hostprogs-y += spintest 20hostprogs-y += spintest
21hostprogs-y += map_perf_test
21 22
22test_verifier-objs := test_verifier.o libbpf.o 23test_verifier-objs := test_verifier.o libbpf.o
23test_maps-objs := test_maps.o libbpf.o 24test_maps-objs := test_maps.o libbpf.o
@@ -36,6 +37,7 @@ trace_output-objs := bpf_load.o libbpf.o trace_output_user.o
36lathist-objs := bpf_load.o libbpf.o lathist_user.o 37lathist-objs := bpf_load.o libbpf.o lathist_user.o
37offwaketime-objs := bpf_load.o libbpf.o offwaketime_user.o 38offwaketime-objs := bpf_load.o libbpf.o offwaketime_user.o
38spintest-objs := bpf_load.o libbpf.o spintest_user.o 39spintest-objs := bpf_load.o libbpf.o spintest_user.o
40map_perf_test-objs := bpf_load.o libbpf.o map_perf_test_user.o
39 41
40# Tell kbuild to always build the programs 42# Tell kbuild to always build the programs
41always := $(hostprogs-y) 43always := $(hostprogs-y)
@@ -53,6 +55,7 @@ always += tcbpf1_kern.o
53always += lathist_kern.o 55always += lathist_kern.o
54always += offwaketime_kern.o 56always += offwaketime_kern.o
55always += spintest_kern.o 57always += spintest_kern.o
58always += map_perf_test_kern.o
56 59
57HOSTCFLAGS += -I$(objtree)/usr/include 60HOSTCFLAGS += -I$(objtree)/usr/include
58 61
@@ -71,6 +74,7 @@ HOSTLOADLIBES_trace_output += -lelf -lrt
71HOSTLOADLIBES_lathist += -lelf 74HOSTLOADLIBES_lathist += -lelf
72HOSTLOADLIBES_offwaketime += -lelf 75HOSTLOADLIBES_offwaketime += -lelf
73HOSTLOADLIBES_spintest += -lelf 76HOSTLOADLIBES_spintest += -lelf
77HOSTLOADLIBES_map_perf_test += -lelf -lrt
74 78
75# point this to your LLVM backend with bpf support 79# point this to your LLVM backend with bpf support
76LLC=$(srctree)/tools/bpf/llvm/bld/Debug+Asserts/bin/llc 80LLC=$(srctree)/tools/bpf/llvm/bld/Debug+Asserts/bin/llc