]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, tls: add tls header to tools infrastructure
authorDaniel Borkmann <daniel@iogearbox.net>
Tue, 16 Oct 2018 13:59:36 +0000 (15:59 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 16 Oct 2018 15:10:01 +0000 (08:10 -0700)
commit27ed10aa4b529db7432485986ddc7ac3fca92d8d
treee007b489a219df2e151ae11855bdea6d88f2be92
parent7f3100fc6cb66d1d92c5a55b9a7de31c93086154
bpf, tls: add tls header to tools infrastructure

Andrey reported a build error for the BPF kselftest suite when compiled on
a machine which does not have tls related header bits installed natively:

  test_sockmap.c:120:23: fatal error: linux/tls.h: No such file or directory
   #include <linux/tls.h>
                         ^
  compilation terminated.

Fix it by adding the header to the tools include infrastructure and add
definitions such as SOL_TLS that could potentially be missing.

Fixes: fd8a5ce1f5fe ("bpf: add tls support for testing in test_sockmap")
Reported-by: Andrey Ignatov <rdna@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/include/uapi/linux/tls.h [new file with mode: 0644]
tools/testing/selftests/bpf/test_sockmap.c