lkml.org 
[lkml]   [2015]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH v4 16/29] bpf tools: Create eBPF maps defined in an object file
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@huawei.com>


\
 
 \ /
  Last update: 2015-05-28 04:41    [W:0.266 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site