From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756331Ab1C3Wa4 (ORCPT ); Wed, 30 Mar 2011 18:30:56 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:58819 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756282Ab1C3Way (ORCPT ); Wed, 30 Mar 2011 18:30:54 -0400 From: "Rafael J. Wysocki" To: Andrew Morton Subject: Re: [PATCH v2 typo-fixed] initcall: add config option for compiling initcall_debug Date: Thu, 31 Mar 2011 00:31:06 +0200 User-Agent: KMail/1.13.6 (Linux/2.6.38+; KDE/4.6.0; x86_64; ; ) Cc: Konstantin Khlebnikov , linux-kernel@vger.kernel.org, Tejun Heo , Arjan van de Ven References: <20110327115506.14008.17733.stgit@localhost6> <20110328075131.25063.93957.stgit@localhost6> <20110329155751.e7ba346a.akpm@linux-foundation.org> In-Reply-To: <20110329155751.e7ba346a.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201103310031.06374.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, March 30, 2011, Andrew Morton wrote: > On Mon, 28 Mar 2011 11:51:31 +0400 > Konstantin Khlebnikov wrote: > > > This patch adds bool config option CONFIG_INITCALL_DEBUG for > > compiling initcalls debuging, it on by default to keep current behaviour. > > > > With CONFIG_INITCALL_DEBUG=n bloat-o-meter shows: > > > > add/remove: 0/7 grow/shrink: 3/10 up/down: 88/-1448 (-1360) > > function old new delta > > device_resume 350 404 +54 > > __device_suspend 331 363 +32 > > device_resume_noirq 230 232 +2 > > kernel_init 355 354 -1 > > initcall_debug 4 - -4 > > __param_str_initcall_debug 15 - -15 > > dpm_suspend 431 415 -16 > > syscore_suspend 280 250 -30 > > syscore_shutdown 123 93 -30 > > __param_initcall_debug 32 - -32 > > syscore_resume 215 173 -42 > > static.initcall_debug_start 71 - -71 > > static.initcall_debug_report 102 - -102 > > legacy_resume 129 - -129 > > async_synchronize_cookie_domain 286 152 -134 > > legacy_suspend 135 - -135 > > async_run_entry_fn 348 188 -160 > > do_one_initcall 364 197 -167 > > pm_op 536 366 -170 > > pm_noirq_op 576 366 -210 > > Well. One hopes that most things which use initcall_debug are > marked __init or __initdata. > > I see that async and pm have borrowed inticall_debug for reasonably > appropriate reasons, but I wonder if all that is permanent code, or if > it will later get removed. Because if it gets removed, this patch > becomes rather pointless. This is permanent code, as far as PM is concerned. Thanks, Rafael