Re: [RFC PATCH v3 18/37] bpf tools: Record map accessing instructions for each program

2015-05-25 Thread Wangnan (F)
On 2015/5/19 2:34, Alexei Starovoitov wrote: On 5/17/15 3:56 AM, Wang Nan wrote: This patch records the indics of instructions which are needed to be relocated. Those information are saved in 'reloc_desc' field in 'struct bpf_program'. In loading phase (this patch takes effect in opening phase

Re: [RFC PATCH v3 18/37] bpf tools: Record map accessing instructions for each program

2015-05-18 Thread Alexei Starovoitov
On 5/17/15 3:56 AM, Wang Nan wrote: This patch records the indics of instructions which are needed to be relocated. Those information are saved in 'reloc_desc' field in 'struct bpf_program'. In loading phase (this patch takes effect in opening phase), the collected instructions will be replaced b

[RFC PATCH v3 18/37] bpf tools: Record map accessing instructions for each program

2015-05-17 Thread Wang Nan
This patch records the indics of instructions which are needed to be relocated. Those information are saved in 'reloc_desc' field in 'struct bpf_program'. In loading phase (this patch takes effect in opening phase), the collected instructions will be replaced by map loading instructions. Since we