From: Peter Zijlstra Subject: Re: [PATCH net-next 2/3] bpf: introduce bpf_perf_event_output() helper Date: Fri, 23 Oct 2015 16:39:43 +0200 Message-ID: <20151023143943.GC17308@twins.programming.kicks-ass.net> References: <1445396556-4854-1-git-send-email-ast@kernel.org> <1445396556-4854-3-git-send-email-ast@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "David S. Miller" , Ingo Molnar , Wang Nan , He Kuang , Arnaldo Carvalho de Melo , Daniel Borkmann , netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: Alexei Starovoitov Return-path: Content-Disposition: inline In-Reply-To: <1445396556-4854-3-git-send-email-ast@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Tue, Oct 20, 2015 at 08:02:34PM -0700, Alexei Starovoitov wrote: > +static const struct bpf_func_proto bpf_perf_event_output_proto = { > + .func = bpf_perf_event_output, > + .gpl_only = false, Oh ? > + .ret_type = RET_INTEGER, > + .arg1_type = ARG_PTR_TO_CTX, > + .arg2_type = ARG_CONST_MAP_PTR, > + .arg3_type = ARG_ANYTHING, > + .arg4_type = ARG_PTR_TO_STACK, > + .arg5_type = ARG_CONST_STACK_SIZE, > +};