On 5/18/15 5:47 AM, Wangnan (F) wrote:
+prog->insns_cnt = size / sizeof(struct bpf_insn);
+memcpy(prog->insns, data,
+ prog->insns_cnt * sizeof(struct bpf_insn));
Doesn't the data need to be swapped?
Thanks,
Namhyung
I'm not very sure, since they are instructions. Byte o
在 2015/5/18 20:29, Namhyung Kim 写道:
Hi,
On Sun, May 17, 2015 at 10:56:41AM +, Wang Nan wrote:
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 bette
Hi,
On Sun, May 17, 2015 at 10:56:41AM +, Wang Nan wrote:
> 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 l
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 ca
4 matches
Mail list logo