]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5a652c928db064c85d317a56b8f1cbbc23c24343
treee40f02a6a69676574c3d440ca059b05dbcd208f3
parent83b990fc85040582ed7a3fb59adb18e4574fc38d
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