]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Test libbpf_{prog,attach}_type_by_name
authorAndrey Ignatov <rdna@fb.com>
Wed, 26 Sep 2018 22:24:57 +0000 (15:24 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 27 Sep 2018 19:14:59 +0000 (21:14 +0200)
commit62e716e2887ad608de35413d5d6a7d6531cf9bc0
treee906592468b388ae703879244a33a80259e0c4b1
parentfa98587cddb3b86c6e93d7f3f1966bf2d72669a8
selftests/bpf: Test libbpf_{prog,attach}_type_by_name

Add selftest for libbpf functions libbpf_prog_type_by_name and
libbpf_attach_type_by_name.

Example of output:
  % ./tools/testing/selftests/bpf/test_section_names
  Summary: 35 PASSED, 0 FAILED

Signed-off-by: Andrey Ignatov <rdna@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/test_section_names.c [new file with mode: 0644]