BPF_PERF_EVENT
if (attach_type != BPF_PERF_EVENT)
if (attach_type != BPF_PERF_EVENT &&
if (attr->link_create.attach_type == BPF_PERF_EVENT)
case BPF_PERF_EVENT:
link_fd = bpf_link_create(prog_fd, -1, BPF_PERF_EVENT, NULL);
link_fd = bpf_link_create(prog_fd, pfd, BPF_PERF_EVENT, &link_opts);
[BPF_PERF_EVENT] = "perf_event",
BPF_PERF_EVENT, NULL);
BPF_PERF_EVENT, NULL);