Re: [PATCH 10/31] perf test: Enforce LLVM test for BPF test

2015-11-03 Thread Wangnan (F)
On 2015/11/4 2:24, Arnaldo Carvalho de Melo wrote: Em Thu, Oct 15, 2015 at 07:58:38PM +0800, Wangnan (F) escreveu: +void test__llvm_prepare(void) +{ + p_test_llvm__bpf_result = mmap(NULL, SHARED_BUF_INIT_SIZE, + PROT_READ | PROT_WRITE, +

Re: [PATCH 10/31] perf test: Enforce LLVM test for BPF test

2015-11-03 Thread Arnaldo Carvalho de Melo
Em Thu, Oct 15, 2015 at 07:58:38PM +0800, Wangnan (F) escreveu: > >>+void test__llvm_prepare(void) > >>+{ > >>+ p_test_llvm__bpf_result = mmap(NULL, SHARED_BUF_INIT_SIZE, > >>+ PROT_READ | PROT_WRITE, > >>+ MAP_SHARED | MAP_ANONYMO

Re: [PATCH 10/31] perf test: Enforce LLVM test for BPF test

2015-10-30 Thread Wangnan (F)
On 2015/10/30 6:37, Arnaldo Carvalho de Melo wrote: Em Wed, Oct 14, 2015 at 12:41:21PM +, Wang Nan escreveu: This patch replaces the original toy BPF program with previous introduced bpf-script-example.c. Dynamically embedded it into 'llvm-src.c'. The newly introduced BPF program attaches

Re: [PATCH 10/31] perf test: Enforce LLVM test for BPF test

2015-10-29 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 14, 2015 at 12:41:21PM +, Wang Nan escreveu: > This patch replaces the original toy BPF program with previous introduced > bpf-script-example.c. Dynamically embedded it into 'llvm-src.c'. > > The newly introduced BPF program attaches a BPF program at > 'sys_epoll_pwait()', and coll

Re: [PATCH 10/31] perf test: Enforce LLVM test for BPF test

2015-10-15 Thread Wangnan (F)
On 2015/10/14 23:48, Namhyung Kim wrote: On Wed, Oct 14, 2015 at 12:41:21PM +, Wang Nan wrote: This patch replaces the original toy BPF program with previous introduced bpf-script-example.c. Dynamically embedded it into 'llvm-src.c'. The newly introduced BPF program attaches a BPF program

Re: [PATCH 10/31] perf test: Enforce LLVM test for BPF test

2015-10-14 Thread Namhyung Kim
On Wed, Oct 14, 2015 at 12:41:21PM +, Wang Nan wrote: > This patch replaces the original toy BPF program with previous introduced > bpf-script-example.c. Dynamically embedded it into 'llvm-src.c'. > > The newly introduced BPF program attaches a BPF program at > 'sys_epoll_pwait()', and collect

[PATCH 10/31] perf test: Enforce LLVM test for BPF test

2015-10-14 Thread Wang Nan
This patch replaces the original toy BPF program with previous introduced bpf-script-example.c. Dynamically embedded it into 'llvm-src.c'. The newly introduced BPF program attaches a BPF program at 'sys_epoll_pwait()', and collect half samples from it. perf itself never use that syscall, so furthe