]> git.baikalelectronics.ru Git - kernel.git/commit
perf test: Add 'perf test BPF'
authorWang Nan <wangnan0@huawei.com>
Fri, 6 Nov 2015 13:49:43 +0000 (13:49 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 6 Nov 2015 20:50:03 +0000 (17:50 -0300)
commitb49d518ad5e5fa362310cdc208887ec467b9c9bf
treeaac0b9c41b23c714a2a33320d068b4140cfd82ab
parent98d952a4637131b18a9980bb8a083f084138d0d1
perf test: Add 'perf test BPF'

This patch adds BPF testcase for testing BPF event filtering.

By utilizing the result of 'perf test LLVM', this patch compiles the
eBPF sample program then test its ability. The BPF script in 'perf test
LLVM' lets only 50% samples generated by epoll_pwait() to be captured.
This patch runs that system call for 111 times, so the result should
contain 56 samples.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1446817783-86722-8-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/Build
tools/perf/tests/bpf.c [new file with mode: 0644]
tools/perf/tests/builtin-test.c
tools/perf/tests/tests.h
tools/perf/util/bpf-loader.c
tools/perf/util/bpf-loader.h