]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Use tracing helpers for lsm programs
authorJiri Olsa <jolsa@kernel.org>
Sun, 31 May 2020 15:42:55 +0000 (17:42 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 1 Jun 2020 22:08:04 +0000 (15:08 -0700)
commitd04480ea9ed62b72f508219f3b054c93b914856c
treeba564f500bb4a0c4525abe9b6a9603c11b3f62d9
parentd9624686a4718941a62c3e1f2c8f16f61332adcc
bpf: Use tracing helpers for lsm programs

Currenty lsm uses bpf_tracing_func_proto helpers which do
not include stack trace or perf event output. It's useful
to have those for bpftrace lsm support [1].

Using tracing_prog_func_proto helpers for lsm programs.

[1] https://github.com/iovisor/bpftrace/pull/1347

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Cc: KP Singh <kpsingh@google.com>
Link: https://lore.kernel.org/bpf/20200531154255.896551-1-jolsa@kernel.org
include/linux/bpf.h
kernel/bpf/bpf_lsm.c
kernel/trace/bpf_trace.c