Received: by 10.223.185.116 with SMTP id b49csp3254632wrg; Mon, 12 Feb 2018 23:31:28 -0800 (PST) X-Google-Smtp-Source: AH8x224u78qMSyhn3lJlrWUR2XEOi4RYR3Btxo/+v5X6/xYNFgTDEzD87sXf84O9GnFHASyqwjFq X-Received: by 2002:a17:902:428:: with SMTP id 37-v6mr274649ple.63.1518507088695; Mon, 12 Feb 2018 23:31:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518507088; cv=none; d=google.com; s=arc-20160816; b=CWPvqZXw2rpY7pPBQYwCfMmaQqA4pHAKRxk+FGWDJp/pMoEYStde7Sjn/zcY2kb/zF MFO0pgq2Lqjsdif0v6Re8zata7nclNmB5kO30AIusjuRkLEbECqHGSUW6nAza0bObJkk IOOW1W6IaxGU5v7gjXt/0yK7yHo6RV42JZINy2nnX7WWSqdbFgS4fmMOhSnzNCLu1YXE ydQN9DuUoF8gPlTL93JjMZ1RxRusog79JUNFwxr5GvRDQ7dV1sQysm9+1EPDOw9fNUaI hQFgyx3kXT19MwLnxgLpAopWeCByyEsI/Cb4pTS1CBotOZzWa6df9NekBGlglHEEq9Iq GRRA== 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:arc-authentication-results; bh=HWDgvfqjWNYEp0RdJZ/K+zP2yqTy84nOnG5MnOe6a/g=; b=ga87cIufUO+M68UGlH7E/SBCWzxUUTlI7+sLzbV16Ss5kQJVGmC8ygbCmj52Qm09pX Jn4NepWhPP89Q+/NvMqW8Mas21eI9jMfYrO+5yXz1BcAql2tBis8GuB/0dgu4ybHiEJU hGJP7Iq5WR2WGGbvbq1YQCeJKYwjdCZXYkpVw1fwoWTXna0DP9B6rQKDXJi52f0wbCAb sNIR7otobZzqLeabuHkXhsrB16J/de2++t2WDp3nJTP+XetnFFpfIX+VS+dSwPvLoSdZ Xbogn2KQrHRxWAzhOXq6OelvuwGXtoE1pSjFDLkRMu/JfO62atKu/p3Wn+46+b0v1jKD PNfQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e27si5479593pfk.256.2018.02.12.23.31.14; Mon, 12 Feb 2018 23:31:28 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933542AbeBMHaa (ORCPT + 99 others); Tue, 13 Feb 2018 02:30:30 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:40930 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933468AbeBMHa3 (ORCPT ); Tue, 13 Feb 2018 02:30:29 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 05C18404084B; Tue, 13 Feb 2018 07:30:29 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-60.pek2.redhat.com [10.72.12.60]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 43FD12017DE6; Tue, 13 Feb 2018 07:30:25 +0000 (UTC) Date: Tue, 13 Feb 2018 15:30:22 +0800 From: Dave Young To: Sergey Senozhatsky Cc: Steven Rostedt , Petr Mladek , linux-kernel@vger.kernel.org, akpm@linux-foundation.org, Andi Kleen Subject: Re: [PATCH] printk: move dump stack related code to lib/dump_stack.c Message-ID: <20180213073022.GA24783@dhcp-128-65.nay.redhat.com> References: <20180209080624.GA2607@dhcp-128-65.nay.redhat.com> <20180209081604.GE689@jagdpanzerIV> <20180209082743.GA14845@dhcp-128-65.nay.redhat.com> <20180209084235.GF689@jagdpanzerIV> <20180209085116.GB5454@dhcp-128-65.nay.redhat.com> <20180209090018.GA7129@dhcp-128-65.nay.redhat.com> <20180209091531.GG689@jagdpanzerIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180209091531.GG689@jagdpanzerIV> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 13 Feb 2018 07:30:29 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 13 Feb 2018 07:30:29 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dyoung@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/09/18 at 06:15pm, Sergey Senozhatsky wrote: > On (02/09/18 17:00), Dave Young wrote: > [..] > > > > > > I'm hesitating to add #ifdef CONFIG_PRINTK in lib/dump_stack.c. > > Agreed. > > > Maybe conditionally build dump_stack.o only when CONFIG_PRINTK is true, > > but not sure if there are some historic reason this is not done before, > > will do some testing see if it works. > > > > Thanks. > > Was thinking about the same thing - dump_stack() without CONFIG_PRINTK > doesn't make that much sense anyway. Well, maybe it does in some weird > case... Need to check. But it seems that we probably can just make the > dependency, which already exists, explicit. Did some testing on x86_64 and s390, I did not find any breakage, sent the V2 just now. > > -ss Thanks Dave