Re: [RFC PATCH 4/6] perf bpf: Convert arglist to bpf prologue

2015-05-05 Thread Alexei Starovoitov
On 5/5/15 3:10 AM, He Kuang wrote: When all arguments in bpf config section are collected in register and offset form, this patch will fetch them from bpf context register and place them as bpf input parameters. Bpf prologue is generated as the following steps: 1. alloc dst address in stack ->

[RFC PATCH 4/6] perf bpf: Convert arglist to bpf prologue

2015-05-05 Thread He Kuang
When all arguments in bpf config section are collected in register and offset form, this patch will fetch them from bpf context register and place them as bpf input parameters. Bpf prologue is generated as the following steps: 1. alloc dst address in stack -> r1 2. set size -> r2 3. fetch base

Re: [RFC PATCH 4/6] perf bpf: Convert arglist to bpf prologue

2015-05-05 Thread Alexei Starovoitov
On 5/5/15 3:10 AM, He Kuang wrote: When all arguments in bpf config section are collected in register and offset form, this patch will fetch them from bpf context register and place them as bpf input parameters. Bpf prologue is generated as the following steps: 1. alloc dst address in stack -

[RFC PATCH 4/6] perf bpf: Convert arglist to bpf prologue

2015-05-05 Thread He Kuang
When all arguments in bpf config section are collected in register and offset form, this patch will fetch them from bpf context register and place them as bpf input parameters. Bpf prologue is generated as the following steps: 1. alloc dst address in stack - r1 2. set size - r2 3. fetch base