selftests/btf: add initial BTF dedup tests
authorAndrii Nakryiko <andriin@fb.com>
Tue, 5 Feb 2019 01:29:46 +0000 (17:29 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 5 Feb 2019 15:52:57 +0000 (16:52 +0100)
commit9c651127445c2fb3dca7b000bce6de97290288ff
treefe630450860cda33ac53bae54ad2bcb3247b6c9a
parentd5caef5b56555bfa2ac0cf730f075864a023437e
selftests/btf: add initial BTF dedup tests

This patch sets up a new kind of tests (BTF dedup tests) and tests few aspects of
BTF dedup algorithm. More complete set of tests will come in follow up patches.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/btf.c
tools/lib/bpf/btf.h
tools/lib/bpf/libbpf.map
tools/testing/selftests/bpf/test_btf.c