selftests/bpf: switch test_tcpnotify to perf_buffer API
authorAndrii Nakryiko <andriin@fb.com>
Tue, 23 Jul 2019 21:34:42 +0000 (14:34 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 23 Jul 2019 23:05:42 +0000 (16:05 -0700)
commit898ca681cd78e57cec1f5d18df0829d35c464fe8
tree62bfc45c6b7975e289b7092f8910dcb426d0a279
parent58b80815362ef18f528e17711f0abec842f56d59
selftests/bpf: switch test_tcpnotify to perf_buffer API

Switch test_tcpnotify test to use libbpf's perf_buffer API instead of
re-implementing portion of it.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_tcpnotify_user.c