trinity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vinson Lee <vlee@freedesktop.org>
To: trinity@vger.kernel.org
Subject: [PATCH] Check for bpf_prog_type BPF_PROG_TYPE_PERF_EVENT.
Date: Thu,  9 Mar 2017 00:00:14 +0000	[thread overview]
Message-ID: <1489017614-11280-1-git-send-email-vlee@freedesktop.org> (raw)

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

                 reply	other threads:[~2017-03-09  0:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1489017614-11280-1-git-send-email-vlee@freedesktop.org \
    --to=vlee@freedesktop.org \
    --cc=trinity@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).