selftests/btf: add VAR and DATASEC case for dedup tests
authorAndrii Nakryiko <andriin@fb.com>
Mon, 15 Apr 2019 23:48:08 +0000 (16:48 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 16 Apr 2019 07:50:20 +0000 (09:50 +0200)
commitefb2ddc4ce5dba9b6c5ec106528d18a645424f3f
treeb53efc0cf478a4a5a79e3f98e638ec49c2297cef
parent189cf5a4a7d5e0349f3079f05a8ccf4e4a2f0c3e
selftests/btf: add VAR and DATASEC case for dedup tests

Add test case verifying that dedup happens (INTs are deduped in this
case) and VAR/DATASEC types are not deduped, but have their referenced
type IDs adjusted correctly.

Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Yonghong Song <yhs@fb.com>
Cc: Alexei Starovoitov <ast@fb.com>
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_btf.c