]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: add a test case for helper bpf_perf_event_read_value
authorYonghong Song <yhs@fb.com>
Thu, 5 Oct 2017 16:19:21 +0000 (09:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Oct 2017 22:05:57 +0000 (23:05 +0100)
commitbeacb3b250f45c3d9280f13d2209316a62daf9fa
treef0256aea3e0a98cbba98b91248983b6d90793357
parentbd59cf178f2b2bb0ddc4e12a25cf76394dc16198
bpf: add a test case for helper bpf_perf_event_read_value

The bpf sample program tracex6 is enhanced to use the new
helper to read enabled/running time as well.

Signed-off-by: Yonghong Song <yhs@fb.com>
Acked-by: Alexei Starovoitov <ast@fb.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/tracex6_kern.c
samples/bpf/tracex6_user.c
tools/include/uapi/linux/bpf.h
tools/testing/selftests/bpf/bpf_helpers.h