Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4946070imu; Mon, 12 Nov 2018 21:27:34 -0800 (PST) X-Google-Smtp-Source: AJdET5fqTaXf9G8I57LnXs8gTGfWHTiifmyGgRqba0VtGWa1wJJEz+zrgilr8Pt9lsqPQ3pLUNa9 X-Received: by 2002:a17:902:2867:: with SMTP id e94-v6mr3681648plb.317.1542086854165; Mon, 12 Nov 2018 21:27:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542086854; cv=none; d=google.com; s=arc-20160816; b=QGM2OmUvkgR3/VTzH+hR5jRzV5ek/sgiTkF7H3uALL/WfoPYhO0DHrz+VcbOMwxsjp /7jTW+xzykOONmYco3lz/hkW1T75veS2iq8oDKi+WbkKaxbMAUy2bOLFb/fuTLgyTf+i ORIrifaw0hOxMBCKMZf1jTbovlUHq4YKWxHVWvEn7TPLYzc07QLEDh/6ESUr3fZC9dYc ZuQLY9vggmy0sxnB3xkZvoKRJtMVBdlOFW56NmXFjKCn4KxhYsuvjhRA4GfeiJOyN4HR QNIPRzN6m7K/+kkpIWRiYTwOmEGcZwo+rmnXP/8aCWgD4TfYw6EJA9WeVARclA5W0DJr BwDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=JaUUSlfcBG2HqmtOGpZFFLgfjqRzNhNtOn5jabQIx94=; b=aTs5KVtQRFvbuz+I+8srBAzjKxwrvt4tVla8/yYSTAjchkr3eyETRV0dANLBMQValA E7AOmx6ESIPN3GIA1CoJDz5nfzoVgzgMhCQIx8EWnZQTJuy2j2OS5W2GivrlBhp4axcK vtG4RyCUkpfOans845oWv4FElD/qc5TDz44yxhjYh58MEsiAQx5WZ5YZ9ZEtybaqg/8W Z+6XXOSH/dJsbc4+6oZDqOToMeovXnxdPN/xq/ev6vguJaqUvtIHN/s+YonQ8glEeP5J oN9TqwnauP6JFGVElo9j7WXuTYPXNNTKnfqOn8Pp5IFm19cYI5LMAn20LKWxgxub7iYr k/7g== 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 l137-v6si24250828pfd.260.2018.11.12.21.27.16; Mon, 12 Nov 2018 21:27:34 -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 S1728378AbeKMPXT (ORCPT + 99 others); Tue, 13 Nov 2018 10:23:19 -0500 Received: from ipmail06.adl2.internode.on.net ([150.101.137.129]:7348 "EHLO ipmail06.adl2.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726217AbeKMPXT (ORCPT ); Tue, 13 Nov 2018 10:23:19 -0500 Received: from ppp59-167-129-252.static.internode.on.net (HELO dastard) ([59.167.129.252]) by ipmail06.adl2.internode.on.net with ESMTP; 13 Nov 2018 15:56:53 +1030 Received: from dave by dastard with local (Exim 4.80) (envelope-from ) id 1gMRDv-0007v0-I9; Tue, 13 Nov 2018 16:26:51 +1100 Date: Tue, 13 Nov 2018 16:26:51 +1100 From: Dave Chinner To: Joe Perches Cc: "Theodore Y. Ts'o" , Eric Sandeen , "Darrick J. Wong" , Christoph Hellwig , linux-xfs@vger.kernel.org, LKML Subject: Re: [PATCH] xfs: Remove noinline from #define STATIC Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > 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. 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. It if ain't broke, don't fix it. And it sure as hell isn't broken right now. We've got more than enough bugs to fix without having to deal with drive-by bikeshed painting... -Dave. -- Dave Chinner david@fromorbit.com