Skip to content

Commit

Permalink
Check for bpf_prog_type BPF_PROG_TYPE_PERF_EVENT.
Browse files Browse the repository at this point in the history
BPF_PROG_TYPE_PERF_EVENT is not available until Linux 4.9.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
  • Loading branch information
vinsonlee authored and kernelslacker committed Mar 9, 2017
1 parent fb843a5 commit 9bb547f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ void main()
union bpf_attr attr = {
.map_flags = 0,
};
enum bpf_prog_type type = BPF_PROG_TYPE_PERF_EVENT;
}
EOF

Expand Down

0 comments on commit 9bb547f

Please sign in to comment.