1 // SPDX-License-Identifier: GPL-2.0
5 #include <bpf/bpf_tracing.h>
10 int BPF_PROG(lsm_run, int cmd, union bpf_attr *attr, unsigned int size)
13 case BPF_RAW_TRACEPOINT_OPEN:
14 bpf_copy_from_user(tp_name, sizeof(tp_name) - 1,
15 (void *)attr->raw_tracepoint.name);
24 int BPF_PROG(raw_tp_run)
29 char _license[] SEC("license") = "GPL";