Re: [PATCH v2 net-next 04/10] perf, bpf: allow bpf programs attach to tracepoints

2016-04-07 Thread Peter Zijlstra
On Wed, Apr 06, 2016 at 06:43:25PM -0700, Alexei Starovoitov wrote: > introduce BPF_PROG_TYPE_TRACEPOINT program type and allow it to be attached > to the perf tracepoint handler, which will copy the arguments into > the per-cpu buffer and pass it to the bpf program as its first argument. > The lay

[PATCH v2 net-next 04/10] perf, bpf: allow bpf programs attach to tracepoints

2016-04-06 Thread Alexei Starovoitov
introduce BPF_PROG_TYPE_TRACEPOINT program type and allow it to be attached to the perf tracepoint handler, which will copy the arguments into the per-cpu buffer and pass it to the bpf program as its first argument. The layout of the fields can be discovered by doing 'cat /sys/kernel/debug/tracing/