[PATCH] Check for bpf_prog_type BPF_PROG_TYPE_PERF_EVENT.

Vinson Lee <[email protected]> Thu, 9 Mar 2017 00:00:14 +0000
Newsgroups org.kernel.vger.trinity
Message-ID <[email protected]>
BPF_PROG_TYPE_PERF_EVENT is not available until Linux 4.9.

Signed-off-by: Vinson Lee <[email protected]>
---
 configure | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure b/configure
index dff66d3fbe50..03632d7a7952 100755
--- a/configure
+++ b/configure
@@ -236,6 +236,8 @@ void main()
 	union bpf_attr attr = {
 		.map_flags = 0,
 	};
+
+	enum bpf_prog_type type = BPF_PROG_TYPE_PERF_EVENT;
 }
 EOF
 
-- 
2.9.3