From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752745AbbE1BzN (ORCPT ); Wed, 27 May 2015 21:55:13 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:34243 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751765AbbE1BzJ (ORCPT ); Wed, 27 May 2015 21:55:09 -0400 Date: Wed, 27 May 2015 18:55:07 -0700 From: Alexei Starovoitov To: Wang Nan Cc: paulus@samba.org, a.p.zijlstra@chello.nl, mingo@redhat.com, acme@kernel.org, namhyung@kernel.org, jolsa@kernel.org, dsahern@gmail.com, daniel@iogearbox.net, brendan.d.gregg@gmail.com, masami.hiramatsu.pt@hitachi.com, lizefan@huawei.com, linux-kernel@vger.kernel.org, pi3orama@163.com Subject: Re: [RFC PATCH v4 15/29] bpf tools: Add bpf.c/h for common bpf operations Message-ID: <20150528015506.GF20764@Alexeis-MacBook-Pro.local> References: <1432704004-171454-1-git-send-email-wangnan0@huawei.com> <1432704004-171454-16-git-send-email-wangnan0@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1432704004-171454-16-git-send-email-wangnan0@huawei.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 27, 2015 at 05:19:50AM +0000, Wang Nan wrote: > This patch introduces bpf.c and bpf.h, which hold common functions > issuing bpf syscall. The goal of these two files is to hide syscall > completly from user. Note that bpf.c and bpf.h only deal with kernel > interface. Things like structure of 'map' section in the ELF object is > not cared by of bpf.[ch]. > > We first introduce bpf_create_map(). > > Note that, since functions in bpf.[ch] are wrapper of sys_bpf, they > don't use OO style naming. > > Signed-off-by: Wang Nan Acked-by: Alexei Starovoitov