From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Olsa Subject: Re: [PATCH 1/2] bpf: Remove struct bpf_verifier_env argument from print_bpf_insn Date: Fri, 23 Mar 2018 10:09:27 +0100 Message-ID: <20180323090927.GA4096@krava> References: <20180321150212.5586-1-jolsa@kernel.org> <20180321183749.GF2707@krava> <20180322133222.GB3206@krava> <20180322155723.GD3206@krava> <96093da6-9e0f-5d6b-59a4-91a744ad64cb@iogearbox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Quentin Monnet , Jiri Olsa , Alexei Starovoitov , lkml , netdev@vger.kernel.org To: Daniel Borkmann Return-path: Content-Disposition: inline In-Reply-To: <96093da6-9e0f-5d6b-59a4-91a744ad64cb@iogearbox.net> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Thu, Mar 22, 2018 at 05:07:48PM +0100, Daniel Borkmann wrote: SNIP > >>> + va_end(args); > >>> +} > >>> EXPORT_SYMBOL_GPL(bpf_verifier_log_write); > >>> + > >>> +__printf(2, 3) static void print_ins(void *private_data, > >>> + const char *fmt, ...) > >> > >> Unless I am mistaken, you could just call this one "verbose()" and > >> simply remove the function alias? > > > > right you are ;-) I haven't realized that struct bpf_verifier_env *env > > will cleanly cast to void * > > > > new version attached.. I'll make some tests and send full patch > > When you do so, please make sure to send a full fresh series with the two > patches and also cover letter included, otherwise it's more fragile wrt > potentially applying the wrong patch from one of the replies. :-) will do, thanks jirka