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

2019-10-16 Thread Eric Sage
On Wed, Oct 16, 2019 at 03:34:26PM +0200, Jesper Dangaard Brouer wrote: > On Tue, 15 Oct 2019 21:21:04 -0700 > Eric Sage 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:15

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

2019-10-16 Thread Jesper Dangaard Brouer
On Tue, 15 Oct 2019 21:21:04 -0700 Eric Sage 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

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

2019-10-15 Thread Eric Sage
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?

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

2019-10-15 Thread Andrii Nakryiko
On Mon, Oct 7, 2019 at 2:00 AM Jesper Dangaard Brouer wrote: > > > On Mon, 7 Oct 2019 04:57:26 + Eric Sage wrote: > > > raw_tracepoints are an eBPF alternative to standard tracepoints which > > attach to a tracepoint without the perf layer being executed, making > > them faster. > > > > Sinc

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

2019-10-07 Thread Jesper Dangaard Brouer
On Mon, 7 Oct 2019 04:57:26 + Eric Sage wrote: > raw_tracepoints are an eBPF alternative to standard tracepoints which > attach to a tracepoint without the perf layer being executed, making > them faster. > > Since xdp_monitor is supposed to have as little impact on the system as > possib

[PATCH] samples/bpf: make xdp_monitor use raw_tracepoints

2019-10-06 Thread Eric Sage
raw_tracepoints are an eBPF alternative to standard tracepoints which attach to a tracepoint without the perf layer being executed, making them faster. Since xdp_monitor is supposed to have as little impact on the system as possible it is switched to using them by append raw_ to the SEC names. Th