This is the mail archive of the
mailing list for the elfutils project.
Re: [PATCH] Fix BPF check for kernels < 3.20
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Wed, 07 Sep 2016 12:13:21 +0200
- Subject: Re: [PATCH] Fix BPF check for kernels < 3.20
On Tue, 2016-09-06 at 10:00 -0700, Richard Henderson wrote:
> On 09/05/2016 02:21 AM, Mark Wielaard wrote:
> > On Wed, 2016-08-31 at 16:21 +0200, Mark Wielaard wrote:
> >> > Thanks, that does look like the correct configure check.
> >> >
> >> > But it seems that BPF_PSEUDO_MAP_FD is the only missing constant
> >> > introduced since 3.18 (when linux/bpf.h was added) that we use.
> >> > So maybe we could simply define it ourselves when not found. So we can
> >> > build against any linux/bpf.h out there.
> >> >
> >> > What do people think of the following?
> > I tested it against the latest stable kernel and headers from the 3.18
> > kernel and it seems to work fine. Any objections to commit the attached?
Thanks. Pushed to master.