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)
commit020a32d9581ac824d038b0b4e24e977e3cc8589f
treef0256aea3e0a98cbba98b91248983b6d90793357
parent908432ca84fc229e906ba164219e9ad0fe56f755
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