Re: [RFC PATCH v7 00/37] perf tools: filtering events using eBPF programs

2015-06-15 Thread Wangnan (F)
On 2015/6/13 0:58, Alexei Starovoitov wrote: btw, what compile times do you see? On my machine compiling basic hello_world.c with #include bpf_helpers.h and few kernel headers take: 0.02 sec So using .c is quite instant. Feels like interpreted language ;) Sorry I didn't see your question for

Re: [RFC PATCH v7 00/37] perf tools: filtering events using eBPF programs

2015-06-12 Thread Alexei Starovoitov
On 6/11/15 10:35 PM, Wang Nan wrote: This is the 7th version which tries to introduce eBPF programs to perf. It enables 'perf record' to filter events using eBPF programs like: # perf record --event bpf-file.c sleep 1 and # perf record --event bpf-file.o sleep 1 This patch series is based

[RFC PATCH v7 00/37] perf tools: filtering events using eBPF programs

2015-06-11 Thread Wang Nan
This is the 7th version which tries to introduce eBPF programs to perf. It enables 'perf record' to filter events using eBPF programs like: # perf record --event bpf-file.c sleep 1 and # perf record --event bpf-file.o sleep 1 This patch series is based on tip/perf/core (028c63b). Compare wit