Re: [PATCH] bpf: Use tracing helpers for lsm programs

Alexei Starovoitov
2020-06-01T22:12:28Z

On Mon, Jun 1, 2020 at 12:00 PM Song Liu <song@kernel.org> wrote:
>
> On Sun, May 31, 2020 at 8:45 AM Jiri Olsa <jolsa@kernel.org> wrote:
> >
> > 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.
>
> How about using raw_tp_prog_func_proto?

why?
I think skb/xdp_output is useful for lsm progs too.
So I've applied the patch.

> PS: Please tag the patch with subject prefix "PATCH bpf" for
> "PATCH bpf-next". I think this one belongs to bpf-next, which means
> we should wait after the merge window.

+1.
Jiri,
pls tag the subject properly.