Re: [RFC PATCH v4 16/29] bpf tools: Create eBPF maps defined in an object file

From: Alexei Starovoitov
Date: Wed May 27 2015 - 21:57:26 EST


On Wed, May 27, 2015 at 05:19:51AM +0000, Wang Nan wrote:
> This patch creates maps based on 'map' section in object file using
> bpf_create_map(), and store the fds into an array in
> 'struct bpf_object'. Since the byte order of the object may differ
> from the host, swap map definition before processing.

obsolete commit log?
The code doesn't do byteswap and it shouldn't.
The other patch already checked for matching endiannes.

> This is the first patch in 'loading' phase. Previous patches parse ELF
> object file and create needed data structure, but doesn't play with
> kernel. They belong to 'opening' phase.
>
> Signed-off-by: Wang Nan <wangnan0@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/