bpf: Attach raw_tp program with BTF via type name
authorAlexei Starovoitov <ast@kernel.org>
Wed, 16 Oct 2019 03:25:01 +0000 (20:25 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 17 Oct 2019 14:44:35 +0000 (16:44 +0200)
commitac4414b5ca47d16c8de3134cc1b868056c4a68ea
treee40f02a6a69676574c3d440ca059b05dbcd208f3
parent9e15db66136a14cde3f35691f1d839d950118826
bpf: Attach raw_tp program with BTF via type name

BTF type id specified at program load time has all
necessary information to attach that program to raw tracepoint.
Use kernel type name to find raw tracepoint.

Add missing CHECK_ATTR() condition.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20191016032505.2089704-8-ast@kernel.org
kernel/bpf/syscall.c