Subject: Re: [PATCH] samples/bpf: make xdp_monitor use raw_tracepoints

From: Jesper Dangaard Brouer <[email-masked]>
Date: Wed, 16 Oct 2019 15:34:26 +0200

On Tue, 15 Oct 2019 21:21:04 -0700
Eric Sage <[email-masked]> wrote:

> I'm no longer able to build the samples with 'make M=samples/bpf'.
> 
> I get errors in task_fd_query_user.c like:
> 
> samples/bpf/task_fd_query_user.c:153:29: error: ‘PERF_EVENT_IOC_ENABLE’
> undeclared.
> 
> Am I missing a dependancy?

Have you remembered to run:

 make headers_install

(As described in samples/bpf/README)

-- 
Best regards,
  Jesper Dangaard Brouer
  MSc.CS, Principal Kernel Engineer at Red Hat
  LinkedIn: http://www.linkedin.com/in/brouer