diff options
| author | Alexei Starovoitov <ast@fb.com> | 2016-03-08 18:07:54 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2016-03-08 23:22:03 -0500 |
| commit | 26e9093110fb9ceb10093e4914b129b58d49a425 (patch) | |
| tree | e0bb3b8bf19cda7bfcbe3426ad45d5e075494da7 /samples/bpf/Makefile | |
| parent | 7dcc42b685b4acf7b2f3f08d157f1574e1bec7f7 (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/Makefile | 4 |
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 | |||
| 18 | hostprogs-y += lathist | 18 | hostprogs-y += lathist |
| 19 | hostprogs-y += offwaketime | 19 | hostprogs-y += offwaketime |
| 20 | hostprogs-y += spintest | 20 | hostprogs-y += spintest |
| 21 | hostprogs-y += map_perf_test | ||
| 21 | 22 | ||
| 22 | test_verifier-objs := test_verifier.o libbpf.o | 23 | test_verifier-objs := test_verifier.o libbpf.o |
| 23 | test_maps-objs := test_maps.o libbpf.o | 24 | test_maps-objs := test_maps.o libbpf.o |
| @@ -36,6 +37,7 @@ trace_output-objs := bpf_load.o libbpf.o trace_output_user.o | |||
| 36 | lathist-objs := bpf_load.o libbpf.o lathist_user.o | 37 | lathist-objs := bpf_load.o libbpf.o lathist_user.o |
| 37 | offwaketime-objs := bpf_load.o libbpf.o offwaketime_user.o | 38 | offwaketime-objs := bpf_load.o libbpf.o offwaketime_user.o |
| 38 | spintest-objs := bpf_load.o libbpf.o spintest_user.o | 39 | spintest-objs := bpf_load.o libbpf.o spintest_user.o |
| 40 | map_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 |
| 41 | always := $(hostprogs-y) | 43 | always := $(hostprogs-y) |
| @@ -53,6 +55,7 @@ always += tcbpf1_kern.o | |||
| 53 | always += lathist_kern.o | 55 | always += lathist_kern.o |
| 54 | always += offwaketime_kern.o | 56 | always += offwaketime_kern.o |
| 55 | always += spintest_kern.o | 57 | always += spintest_kern.o |
| 58 | always += map_perf_test_kern.o | ||
| 56 | 59 | ||
| 57 | HOSTCFLAGS += -I$(objtree)/usr/include | 60 | HOSTCFLAGS += -I$(objtree)/usr/include |
| 58 | 61 | ||
| @@ -71,6 +74,7 @@ HOSTLOADLIBES_trace_output += -lelf -lrt | |||
| 71 | HOSTLOADLIBES_lathist += -lelf | 74 | HOSTLOADLIBES_lathist += -lelf |
| 72 | HOSTLOADLIBES_offwaketime += -lelf | 75 | HOSTLOADLIBES_offwaketime += -lelf |
| 73 | HOSTLOADLIBES_spintest += -lelf | 76 | HOSTLOADLIBES_spintest += -lelf |
| 77 | HOSTLOADLIBES_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 |
| 76 | LLC=$(srctree)/tools/bpf/llvm/bld/Debug+Asserts/bin/llc | 80 | LLC=$(srctree)/tools/bpf/llvm/bld/Debug+Asserts/bin/llc |
