From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexei Starovoitov Subject: Re: [PATCH v9 tip 5/9] tracing: allow BPF programs to call bpf_trace_printk() Date: Sun, 22 Mar 2015 11:05:41 -0700 Message-ID: <550F0475.7020206@plumgrid.com> References: <1426894210-27441-1-git-send-email-ast@plumgrid.com> <1426894210-27441-6-git-send-email-ast@plumgrid.com> <20150322111040.GA18695@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20150322111040.GA18695-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Ingo Molnar Cc: Steven Rostedt , Namhyung Kim , Arnaldo Carvalho de Melo , Jiri Olsa , Masami Hiramatsu , "David S. Miller" , Daniel Borkmann , Peter Zijlstra , linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-api@vger.kernel.org On 3/22/15 4:10 AM, Ingo Molnar wrote: > > * Alexei Starovoitov wrote: > >> +static const struct bpf_func_proto bpf_trace_printk_proto = { >> + .func = bpf_trace_printk, >> + .gpl_only = true, >> + .ret_type = RET_INTEGER, >> + .arg1_type = ARG_PTR_TO_STACK, >> + .arg2_type = ARG_CONST_STACK_SIZE, >> +}; > > A nit, please align such initializations vertically, for more > readability: > > static const struct bpf_func_proto bpf_trace_printk_proto = { > .func = bpf_trace_printk, > .gpl_only = true, > .ret_type = RET_INTEGER, > .arg1_type = ARG_PTR_TO_STACK, > .arg2_type = ARG_CONST_STACK_SIZE, > }; sure. will respin.