Re: [PATCH 12/13] perf test: Test BPF prologue

2015-11-17 Thread Arnaldo Carvalho de Melo
Em Tue, Nov 17, 2015 at 12:38:37PM +0800, Wangnan (F) escreveu: > On 2015/11/17 9:29, Arnaldo Carvalho de Melo wrote: > >How about: > > > > # perf test -v BPF > > 37: Test BPF filter: > > 37.1: test a : Ok > > 37.2: test b

Re: [PATCH 12/13] perf test: Test BPF prologue

2015-11-17 Thread Wangnan (F)
Hi Arnaldo, On 2015/11/17 9:29, Arnaldo Carvalho de Melo wrote: [SNIP] I've pushed everything to my perf/ebpf branch, please let me know if what is there is acceptable, then it will be up to Ingo to decide where to put this, if in perf/urgent for this merge window, or in perf/core, for the next

Re: [PATCH 12/13] perf test: Test BPF prologue

2015-11-16 Thread Wangnan (F)
On 2015/11/17 9:29, Arnaldo Carvalho de Melo wrote: Em Mon, Nov 16, 2015 at 12:10:14PM +, Wang Nan escreveu: This patch introduces a new BPF script to test BPF prologue. The new script probes at null_lseek, which is the function pointer when we try to lseek on '/dev/null'. null_lseek is c

Re: [PATCH 12/13] perf test: Test BPF prologue

2015-11-16 Thread Wangnan (F)
On 2015/11/17 9:29, Arnaldo Carvalho de Melo wrote: Em Mon, Nov 16, 2015 at 12:10:14PM +, Wang Nan escreveu: This patch introduces a new BPF script to test BPF prologue. The new script probes at null_lseek, which is the function pointer when we try to lseek on '/dev/null'. null_lseek is c

Re: [PATCH 12/13] perf test: Test BPF prologue

2015-11-16 Thread Arnaldo Carvalho de Melo
Em Mon, Nov 16, 2015 at 12:10:14PM +, Wang Nan escreveu: > This patch introduces a new BPF script to test BPF prologue. The new > script probes at null_lseek, which is the function pointer when we try > to lseek on '/dev/null'. > > null_lseek is chosen because it is a function pointer, so we d

[PATCH 12/13] perf test: Test BPF prologue

2015-11-16 Thread Wang Nan
This patch introduces a new BPF script to test BPF prologue. The new script probes at null_lseek, which is the function pointer when we try to lseek on '/dev/null'. null_lseek is chosen because it is a function pointer, so we don't need to consider inlining and LTO. By extracting file->f_mode, bp