btf: add support for VAR and DATASEC in btf_dedup()
authorAndrii Nakryiko <andriin@fb.com>
Mon, 15 Apr 2019 23:48:07 +0000 (16:48 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 16 Apr 2019 07:50:20 +0000 (09:50 +0200)
commit189cf5a4a7d5e0349f3079f05a8ccf4e4a2f0c3e
tree553248c4dc5ba4a44849f55020f8229272fb2c7f
parent68e5ab1fc8bd9c17ed94ac172ffe0b9b7e85a59a
btf: add support for VAR and DATASEC in btf_dedup()

This patch adds support for VAR and DATASEC in btf_dedup(). VAR/DATASEC
are never deduplicated, but they need to be processed anyway as types
they refer to might need to be remapped due to deduplication and
compaction.

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/lib/bpf/btf.c