On Wed, Jun 21, 2023 at 5:22 AM Alexei Starovoitov <alexei.starovoitov@xxxxxxxxx> wrote: > > On Tue, Jun 20, 2023 at 9:30 AM Yafang Shao <laoar.shao@xxxxxxxxx> wrote: > > > > +enum bpf_perf_event_type { > > + BPF_PERF_EVENT_UNSPEC = 0, > > + BPF_PERF_EVENT_UPROBE = 1, > > + BPF_PERF_EVENT_KPROBE = 2, > > + BPF_PERF_EVENT_TRACEPOINT = 3, > > + BPF_PERF_EVENT_EVENT = 4, > > + > > + MAX_BPF_PERF_EVENT_TYPE, > > +}; > > afaics MAX_BPF_PERF_EVENT_TYPE is completely unused. > Every patch should be focusing on minimizing additions to uapi. Will remove it. Thanks for the explanation. -- Regards Yafang