bpf: add a test case for helper bpf_perf_prog_read_value
authorYonghong Song <yhs@fb.com>
Thu, 5 Oct 2017 16:19:23 +0000 (09:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Oct 2017 22:05:57 +0000 (23:05 +0100)
commit81b9cf8028a17bdbdaa0da80b735b32150d4e89e
treeb5ec33cc6476e31c8e30c6623e635c6b75be80ae
parent4bebdc7a85aa400c0222b5329861e4ad9252f1e5
bpf: add a test case for helper bpf_perf_prog_read_value

The bpf sample program trace_event is enhanced to use the new
helper to print out enabled/running time.

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/trace_event_kern.c
samples/bpf/trace_event_user.c
tools/include/uapi/linux/bpf.h
tools/testing/selftests/bpf/bpf_helpers.h