From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752202AbaIJJD7 (ORCPT ); Wed, 10 Sep 2014 05:03:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34118 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751320AbaIJJD5 (ORCPT ); Wed, 10 Sep 2014 05:03:57 -0400 Message-ID: <541013CE.6020307@redhat.com> Date: Wed, 10 Sep 2014 11:03:10 +0200 From: Daniel Borkmann User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Alexei Starovoitov CC: "David S. Miller" , Ingo Molnar , Linus Torvalds , Andy Lutomirski , Steven Rostedt , Hannes Frederic Sowa , Chema Gonzalez , Eric Dumazet , Peter Zijlstra , Pablo Neira Ayuso , "H. Peter Anvin" , Andrew Morton , Kees Cook , linux-api@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v11 net-next 00/12] eBPF syscall, verifier, testsuite References: <1410325808-3657-1-git-send-email-ast@plumgrid.com> In-Reply-To: <1410325808-3657-1-git-send-email-ast@plumgrid.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/10/2014 07:09 AM, Alexei Starovoitov wrote: ... > struct { /* anonymous struct used by BPF_MAP_*_ELEM commands */ > int map_fd; > void *key; > union { > void *value; > void *next_key; > }; > }; > > struct { /* anonymous struct used by BPF_PROG_LOAD command */ > enum bpf_prog_type prog_type; > __u32 insn_cnt; > const struct bpf_insn *insns; > const char *license; > __u32 log_level; /* verbosity level of eBPF verifier */ > __u32 log_size; /* size of user buffer */ > void *log_buf; /* user supplied buffer */ What is log buffer? Would that mean the verifier will return an error string if the program will not pass it, or if not, what other data? I think the man page is missing how to examine the returned verifier log buffer data.