Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755828AbbEZQEy (ORCPT ); Tue, 26 May 2015 12:04:54 -0400 Received: from smtprelay0210.hostedemail.com ([216.40.44.210]:53224 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755063AbbEZQEv (ORCPT ); Tue, 26 May 2015 12:04:51 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 50,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:967:973:988:989:1260:1263:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2525:2553:2560:2563:2682:2685:2740:2859:2919:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3622:3742:3867:3868:3870:3871:3872:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:4605:5007:6119:6261:7875:7903:8603:8957:9007:9025:9388:10004:10400:10482:10848:10967:11026:11232:11473:11658:11914:12043:12114:12517:12519:12555:12740:13069:13311:13357:14093:14094:19901:19997:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: fall83_29f041155e64e X-Filterd-Recvd-Size: 2458 Date: Tue, 26 May 2015 12:04:46 -0400 From: Steven Rostedt To: Denys Vlasenko Cc: "Paul E. McKenney" , Josh Triplett , Mathieu Desnoyers , Lai Jiangshan , Tejun Heo , Oleg Nesterov , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] rcu: Deinline rcu_read_lock_sched_held() if DEBUG_LOCK_ALLOC Message-ID: <20150526120446.21c33307@gandalf.local.home> In-Reply-To: <1432655314-10097-1-git-send-email-dvlasenk@redhat.com> References: <1432655314-10097-1-git-send-email-dvlasenk@redhat.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; 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 Content-Length: 1592 Lines: 40 On Tue, 26 May 2015 17:48:34 +0200 Denys Vlasenko wrote: > DEBUG_LOCK_ALLOC=y is not a production setting, but it is > not very unusual either. Many developers routinely > use kernels built with it enabled. > > Apart from being selected by hand, it is also auto-selected by > PROVE_LOCKING "Lock debugging: prove locking correctness" and > LOCK_STAT "Lock usage statistics" config options. > LOCK STAT is necessary for "perf lock" to work. > > I wouldn't spend too much time optimizing it, but this particular > function has a very large cost in code size: when it is deinlined, > code size decreases by 830,000 bytes: > > text data bss dec hex filename > 85674192 22294776 20627456 128596424 7aa39c8 vmlinux.before > 84837612 22294424 20627456 127759492 79d7484 vmlinux > > (with this config: http://busybox.net/~vda/kernel_config) > > Signed-off-by: Denys Vlasenko > CC: "Paul E. McKenney" > CC: Josh Triplett > CC: Steven Rostedt > CC: Mathieu Desnoyers > CC: Lai Jiangshan > CC: Tejun Heo > CC: Oleg Nesterov > CC: linux-kernel@vger.kernel.org Reviewed-by: Steven Rostedt -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/