Re: [PATCH 02/39] bpf tools: Collect eBPF programs from their own sections

2015-07-13 Thread Wangnan (F)
On 2015/7/14 3:51, Arnaldo Carvalho de Melo wrote: Em Fri, Jul 10, 2015 at 11:07:53AM +0800, Wangnan (F) escreveu: On 2015/7/9 23:58, Arnaldo Carvalho de Melo wrote: Em Thu, Jul 09, 2015 at 12:35:05PM +, Wang Nan escreveu: This patch collects all programs in an object file into an array

Re: [PATCH 02/39] bpf tools: Collect eBPF programs from their own sections

2015-07-13 Thread Arnaldo Carvalho de Melo
Em Fri, Jul 10, 2015 at 11:07:53AM +0800, Wangnan (F) escreveu: > On 2015/7/9 23:58, Arnaldo Carvalho de Melo wrote: > >Em Thu, Jul 09, 2015 at 12:35:05PM +, Wang Nan escreveu: > >>This patch collects all programs in an object file into an array of > >>'struct bpf_program' for further

Re: [PATCH 02/39] bpf tools: Collect eBPF programs from their own sections

2015-07-13 Thread Wangnan (F)
On 2015/7/14 3:51, Arnaldo Carvalho de Melo wrote: Em Fri, Jul 10, 2015 at 11:07:53AM +0800, Wangnan (F) escreveu: On 2015/7/9 23:58, Arnaldo Carvalho de Melo wrote: Em Thu, Jul 09, 2015 at 12:35:05PM +, Wang Nan escreveu: This patch collects all programs in an object file into an array

Re: [PATCH 02/39] bpf tools: Collect eBPF programs from their own sections

2015-07-13 Thread Arnaldo Carvalho de Melo
Em Fri, Jul 10, 2015 at 11:07:53AM +0800, Wangnan (F) escreveu: On 2015/7/9 23:58, Arnaldo Carvalho de Melo wrote: Em Thu, Jul 09, 2015 at 12:35:05PM +, Wang Nan escreveu: This patch collects all programs in an object file into an array of 'struct bpf_program' for further processing. That

Re: [PATCH 02/39] bpf tools: Collect eBPF programs from their own sections

2015-07-09 Thread Wangnan (F)
On 2015/7/9 23:58, Arnaldo Carvalho de Melo wrote: Em Thu, Jul 09, 2015 at 12:35:05PM +, Wang Nan escreveu: This patch collects all programs in an object file into an array of 'struct bpf_program' for further processing. That structure is for representing each eBPF program. 'bpf_prog'

Re: [PATCH 02/39] bpf tools: Collect eBPF programs from their own sections

2015-07-09 Thread Arnaldo Carvalho de Melo
Em Thu, Jul 09, 2015 at 12:35:05PM +, Wang Nan escreveu: > This patch collects all programs in an object file into an array of > 'struct bpf_program' for further processing. That structure is for > representing each eBPF program. 'bpf_prog' should be a better name, but > it has been used by

[PATCH 02/39] bpf tools: Collect eBPF programs from their own sections

2015-07-09 Thread Wang Nan
This patch collects all programs in an object file into an array of 'struct bpf_program' for further processing. That structure is for representing each eBPF program. 'bpf_prog' should be a better name, but it has been used by linux/filter.h. Although it is a kernel space name, I still prefer to

Re: [PATCH 02/39] bpf tools: Collect eBPF programs from their own sections

2015-07-09 Thread Arnaldo Carvalho de Melo
Em Thu, Jul 09, 2015 at 12:35:05PM +, Wang Nan escreveu: This patch collects all programs in an object file into an array of 'struct bpf_program' for further processing. That structure is for representing each eBPF program. 'bpf_prog' should be a better name, but it has been used by

Re: [PATCH 02/39] bpf tools: Collect eBPF programs from their own sections

2015-07-09 Thread Wangnan (F)
On 2015/7/9 23:58, Arnaldo Carvalho de Melo wrote: Em Thu, Jul 09, 2015 at 12:35:05PM +, Wang Nan escreveu: This patch collects all programs in an object file into an array of 'struct bpf_program' for further processing. That structure is for representing each eBPF program. 'bpf_prog'

[PATCH 02/39] bpf tools: Collect eBPF programs from their own sections

2015-07-09 Thread Wang Nan
This patch collects all programs in an object file into an array of 'struct bpf_program' for further processing. That structure is for representing each eBPF program. 'bpf_prog' should be a better name, but it has been used by linux/filter.h. Although it is a kernel space name, I still prefer to