Re: [PATCH 16/31] perf tools: Add prologue for BPF programs for fetching arguments

2015-10-15 Thread Wangnan (F)
On 2015/10/15 13:26, Namhyung Kim wrote: On Wed, Oct 14, 2015 at 12:41:27PM +, Wang Nan wrote: From: He Kuang This patch generates prologue for a BPF program which fetch arguments for it. With this patch, the program can have arguments as follow: SEC("lock_page=__lock_page

Re: [PATCH 16/31] perf tools: Add prologue for BPF programs for fetching arguments

2015-10-15 Thread Wangnan (F)
On 2015/10/15 13:26, Namhyung Kim wrote: On Wed, Oct 14, 2015 at 12:41:27PM +, Wang Nan wrote: From: He Kuang This patch generates prologue for a BPF program which fetch arguments for it. With this patch, the program can have arguments as follow:

Re: [PATCH 16/31] perf tools: Add prologue for BPF programs for fetching arguments

2015-10-14 Thread Namhyung Kim
On Wed, Oct 14, 2015 at 12:41:27PM +, Wang Nan wrote: > From: He Kuang > > This patch generates prologue for a BPF program which fetch arguments > for it. With this patch, the program can have arguments as follow: > > SEC("lock_page=__lock_page page->flags") > int lock_page(struct pt_regs

[PATCH 16/31] perf tools: Add prologue for BPF programs for fetching arguments

2015-10-14 Thread Wang Nan
From: He Kuang This patch generates prologue for a BPF program which fetch arguments for it. With this patch, the program can have arguments as follow: SEC("lock_page=__lock_page page->flags") int lock_page(struct pt_regs *ctx, int err, unsigned long flags) { return 1; } This

[PATCH 16/31] perf tools: Add prologue for BPF programs for fetching arguments

2015-10-14 Thread Wang Nan
From: He Kuang This patch generates prologue for a BPF program which fetch arguments for it. With this patch, the program can have arguments as follow: SEC("lock_page=__lock_page page->flags") int lock_page(struct pt_regs *ctx, int err, unsigned long flags) {

Re: [PATCH 16/31] perf tools: Add prologue for BPF programs for fetching arguments

2015-10-14 Thread Namhyung Kim
On Wed, Oct 14, 2015 at 12:41:27PM +, Wang Nan wrote: > From: He Kuang > > This patch generates prologue for a BPF program which fetch arguments > for it. With this patch, the program can have arguments as follow: > > SEC("lock_page=__lock_page page->flags") > int