Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4949900imu; Mon, 12 Nov 2018 21:32:49 -0800 (PST) X-Google-Smtp-Source: AJdET5cSKpkxm+2pRM/de+DvvEenseXTQUI4EoxtoRWXcdya1IMAyQUlq0CIu3TmerqKdrZiN0DI X-Received: by 2002:a62:75d1:: with SMTP id q200mr3756307pfc.254.1542087169128; Mon, 12 Nov 2018 21:32:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542087169; cv=none; d=google.com; s=arc-20160816; b=fO58VPLAvtUR5m/KZe25PjbiNMflNqhBanO20bcvMOZh+2BoobukitMsKmzIDoVXTg I/0mpU46Bct6pe4VnFEaTuQtqYNMFyK6bj5H3DSnkq2H6tNIw5tQnO91uZpZyt09Gxkl 7w9od47VjhU+fRer50Vl9xXprmVupxIDyHaX8CsLLc88dlyyWYUF7JT7LZEd2gnahBA3 iL5hwck/zr6VaXGPREvpt5hk1UVV1MKKCWy2B4KIxe5e8GfP7lfa2HuYG6j4eRx8JsXd HbLjYkk20rD2fWDsbh7x46Xlkq20BuRa0lyIvj2lWZeHOz0rN+nfsqJMsuUb4nx7GQ1p UMXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=Ah6QgjCbZKAe9zJAGzhG775rKzDuvbWbCBJw99HrcT8=; b=sGth8f30kVWk+ey44CxBiIQK9ZJ9Cn+j4+QGeGGyedf5jgdck0jXk/a3NaLoEmFxU9 hRYvqSZdk25mLJa0IejyhpY6yjVzDUkfSf+ly3MWnc63YrAXnwGV8xis5+7m7aHLgogT oRzb2Vi3WsoIVQwY4IgdkYRlNA86OtK9/TkfAnqzRXyFx6kJDxh9Z2wlzkkdThPQHJou bq264120lFyHS5UuNqbbGD5g09UuVMLCz14lZNaz/RSEbHHvIAzeC1rSue/G6WTYKwIg /RunSTE1CuvAV8Rqb+HmazpNm3Vax9daxdEUY0CaSQ36VVqqNIhVp/h8Qi2R/f7Ohkry hA0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 30-v6si21427951pla.56.2018.11.12.21.32.33; Mon, 12 Nov 2018 21:32:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728334AbeKMP2j (ORCPT + 99 others); Tue, 13 Nov 2018 10:28:39 -0500 Received: from smtprelay0090.hostedemail.com ([216.40.44.90]:48502 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726217AbeKMP2j (ORCPT ); Tue, 13 Nov 2018 10:28:39 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id 30588182CF668; Tue, 13 Nov 2018 05:32:14 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:599:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:2194:2199:2393:2553:2559:2562:2692:2828:3138:3139:3140:3141:3142:3355:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4250:4321:5007:6119:7903:7904:8660:10004:10400:10848:11026:11232:11473:11658:11914:12438:12663:12740:12760:12895:13137:13148:13150:13161:13229:13230:13231:13439:13997:14039:14096:14097:14659:21080:21433:21451:21627:21740:21795:30012:30034:30051:30054:30070:30089:30090:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:28,LUA_SUMMARY:none X-HE-Tag: beds12_10e8887c7f730 X-Filterd-Recvd-Size: 3646 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf15.hostedemail.com (Postfix) with ESMTPA; Tue, 13 Nov 2018 05:31:56 +0000 (UTC) Message-ID: <678d66cc417323f248f721cc8e4d271fe8ac80fb.camel@perches.com> Subject: Re: [PATCH] xfs: Remove noinline from #define STATIC From: Joe Perches To: Dave Chinner Cc: "Theodore Y. Ts'o" , Eric Sandeen , "Darrick J. Wong" , Christoph Hellwig , linux-xfs@vger.kernel.org, LKML Date: Mon, 12 Nov 2018 21:31:51 -0800 In-Reply-To: <20181113052651.GR19305@dastard> References: <7302f4a13c1cbf62b07f636878ce25fcca84b6c4.camel@perches.com> <6420cf91-89c8-a876-7a0d-25ab8ba428b8@sandeen.net> <20181112214515.GN19305@dastard> <20181113011804.GP19305@dastard> <20181113015410.GB30750@thunk.org> <20181113030926.GQ19305@dastard> <20181113052651.GR19305@dastard> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-11-13 at 16:26 +1100, Dave Chinner wrote: > On Mon, Nov 12, 2018 at 08:23:42PM -0800, Joe Perches wrote: > > On Tue, 2018-11-13 at 14:09 +1100, Dave Chinner wrote: > > > On Mon, Nov 12, 2018 at 08:54:10PM -0500, Theodore Y. Ts'o wrote: > > > > On Tue, Nov 13, 2018 at 12:18:05PM +1100, Dave Chinner wrote: > > > > > I'm not interested in making code fast if distro support engineers > > > > > can't debug problems on user systems easily. Optimising for > > > > > performance over debuggability is a horrible trade off for us to > > > > > make because it means users and distros end up much more reliant on > > > > > single points of expertise for debugging problems. And that means > > > > > the majority of the load of problem triage falls directly on very > > > > > limited resources - the core XFS development team. A little bit of > > > > > thought about how to make code easier to triage and debug goes a > > > > > long, long way.... > > > > > > > > So at least in my experience, if the kernels are compiled with > > > > CONFIG_DEBUG_INFO and/or CONFIG_DEBUG_INFO_REDUCED, > > > > scripts/decode_stracktrace.sh seems to do a very nice job with inlined > > > > > > That doesn't help with kernel profiling and other such things that > > > are based on callgraphs... > > > > If that's really the case: > > > > I rather suspect the xfs static v STATIC function marking is not > > particularly curated and the marking is somewhat arbitrary. > > That's a common opinion for an outsider to form when they come > across something unfamiliar they don't really understand. "I don't > understand this, so I must rewrite it" is an unfortunate habit that > programmers have. Silly. > > So perhaps given the large number of static, but not STATIC > > functions, perhaps a sed of s/static/STATIC/ should be done > > when it's not inline for all xfs functions. > > That's just as bad as removing them all, if not worse. Why? > If you are writing new code or reworking existing code, then we'll > consider the usage of STATIC/static in the context of that work. > Otherwise, we leave it alone. If your statement is as described above, and the STATIC use to enable call stack tracing i useful, why shouldn't it be systemic? > It if ain't broke, don't fix it. A generically lazy statement.