trinity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Check for bpf_prog_type BPF_PROG_TYPE_PERF_EVENT.
@ 2017-03-09  0:00 Vinson Lee
  0 siblings, 0 replies; only message in thread
From: Vinson Lee @ 2017-03-09  0:00 UTC (permalink / raw)
  To: trinity

BPF_PROG_TYPE_PERF_EVENT is not available until Linux 4.9.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
---
 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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-09  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-09  0:00 [PATCH] Check for bpf_prog_type BPF_PROG_TYPE_PERF_EVENT Vinson Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).