From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755923AbdKNX4F (ORCPT ); Tue, 14 Nov 2017 18:56:05 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:47480 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752929AbdKNXz5 (ORCPT ); Tue, 14 Nov 2017 18:55:57 -0500 Date: Tue, 14 Nov 2017 15:55:55 -0800 From: Andrew Morton To: Yury Norov Cc: Alexey Dobriyan , linux-kernel@vger.kernel.org, Clement Courbet , Matthew Wilcox , Rasmus Villemoes Subject: Re: [PATCH] lib: test module for find_*_bit() functions Message-Id: <20171114155555.a9cb0898e257b0641b82e80b@linux-foundation.org> In-Reply-To: <20171114100730.fhqvupfa5oxmutfl@yury-thinkpad> References: <20171109140714.13168-1-ynorov@caviumnetworks.com> <20171109151520.053425b697cd808206996e07@linux-foundation.org> <20171114100730.fhqvupfa5oxmutfl@yury-thinkpad> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Nov 2017 13:07:30 +0300 Yury Norov wrote: > > Yyra, you can grab CONFIG_BENCHMARK_* namespace :-) > > There's no CONFIG_BENCHMARK_* namespace actually. Alexey means you can be the first user of CONFIG_BENCHMARK_*. > The 'CONFIG_*_BENCHMARK' is > referenced only 3 times in linux sources - CONFIG_RING_BUFFER_BENCHMARK, > CONFIG_TRACEPOINT_BENCHMARK and CONFIG_GUP_BENCHMARK, so I simply didn't know > about it. Some other tests like lib/rbtree_test.c also measure performance and > use TEST namespace, but if you think it's better, I don't object to change it. > > > Another thing: > > > > > + > > > + return 0; > > > +} > > > +module_init(find_bit_test); > > > + > > > +static void __exit test_find_bit_cleanup(void) > > > +{ > > > +} > > > +module_exit(test_find_bit_cleanup); > > > > module exit hook is entirely unnecessary as you can return -E from init hook. > > See lib/test-kstrtox.c > > Ack. > > I thought to send v3, but the patch is already in next tree, so I'll > send fix in separated patch. OK? Either approach is OK.