]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit43cf8d14afa373019b8024428ccd851614163a41
treeb53efc0cf478a4a5a79e3f98e638ec49c2297cef
parentf4d2a02adc9b91cf28e0ea3e60570b74561ccbb6
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