Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp270409imm; Wed, 18 Jul 2018 01:42:45 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdSF959vjurHJZG974ROhwwyOem2M1GJ7tqvdYoEddAcNmkVtbsuVa7pJZEAHHXwA3gQSJA X-Received: by 2002:a63:7d7:: with SMTP id 206-v6mr4903953pgh.137.1531903365341; Wed, 18 Jul 2018 01:42:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531903365; cv=none; d=google.com; s=arc-20160816; b=daIF/CaaIu4t0tIS3qU1rjdJI80rkdELbf2rlKkRGVKn9O9scXG+026Zk4dDuEYFOE 1cFApC2ShhygZ3Ea3wLFX5C+T0DXpL0BVElnry/ldUY5yGG4BhanvjQQ9Hn3NPIbU1nc JzXVBNeqlWk8Ux2BBtnB3aiDmO79CJHgewJ9mXC4gKRVdgxlufZW0PJ5cCKdCRwS7aiP 7nN7OWy3GO/lxeQL3ImAc71gGZGwwrw4aA/yYIKXFdaY8VB+ZXM3UjXSJ81esaE4qeH7 vJw1rVJ9shlruDwJcuRb6OA2MSVQB7u8Q5j2D4rwFGXcLsVDFEdd1CEYD7lTFL6SrQJH 7uQg== 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 :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=36XXKzqjYvcPRZjP1x7Up1JBLyvP3MUlVKLuKLmF3rM=; b=hEYAYX3UZId7H+DAYZJzrw7S93/YI8vOiP5P1ub23GToft9GJuW6GoHL8y34UOjDHx vu1/bHSwB3ivtSqoTyfMsY/ifTylgf/mTR3RBxaKNpUxuDv/qfD6A0CpNuHZKD2ssWfP BYTu0OCDu8nxN8k3cRwZ+JHqXzqL4vhPlf6V5NCBmwz7y9Vc6lEzkSiIOnlyAecPkWMU cLRDqdBF+VKwpJqGt57ItCQ3QQ/gWAHqOTr0OVeKYteLFUnfQ59FLgW/gq0Pre2U1y1w PRzW4JoO7nbCQ4zdE2g/67ySRg0nCsI2VaCSbZVoKLyBHFi7WhsBGWJVEc+kHtLI9Zqu ee7w== 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 d2-v6si2703882pla.359.2018.07.18.01.42.30; Wed, 18 Jul 2018 01:42:45 -0700 (PDT) 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 S1730433AbeGRJSA (ORCPT + 99 others); Wed, 18 Jul 2018 05:18:00 -0400 Received: from smtprelay0046.hostedemail.com ([216.40.44.46]:43251 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726180AbeGRJSA (ORCPT ); Wed, 18 Jul 2018 05:18:00 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id 6894218033786; Wed, 18 Jul 2018 08:41:10 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::,RULES_HIT:41:355:379:541:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2693:2828:3138:3139:3140:3141:3142:3352:3622:3866:3867:3868:4321:5007:6119:7808:7903:10004:10400:10848:11026:11232:11658:11914:12296:12438:12533:12740:12760:12895:13069:13311:13357:13439:14659:14721:21080:21451:21627:30003:30054: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:24,LUA_SUMMARY:none X-HE-Tag: soup81_271360bbf9a47 X-Filterd-Recvd-Size: 2194 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf03.hostedemail.com (Postfix) with ESMTPA; Wed, 18 Jul 2018 08:41:08 +0000 (UTC) Message-ID: <93d979554b031755fafc03ded90560d3aaec40a3.camel@perches.com> Subject: Re: [PATCH] x86: Avoid pr_cont() in show_opcodes() From: Joe Perches To: Tetsuo Handa , Rasmus Villemoes , Ingo Molnar Cc: mingo@redhat.com, linux-kernel@vger.kernel.org, Andy Lutomirski , Borislav Petkov , Josh Poimboeuf , Linus Torvalds , Peter Zijlstra , Thomas Gleixner Date: Wed, 18 Jul 2018 01:41:07 -0700 In-Reply-To: <8e7a3e658dbb928477639e0da67a5a204456b065.camel@perches.com> References: <1530943625-3288-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp> <20180707111209.GA27768@gmail.com> <12409dc4-c10a-d77a-f88d-165aa92b489e@rasmusvillemoes.dk> <218baff7-9473-ac1e-2449-13de98fa6dc9@rasmusvillemoes.dk> <2c8fe03e-36f5-5126-283c-cabc358a7d52@i-love.sakura.ne.jp> <8e7a3e658dbb928477639e0da67a5a204456b065.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 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-07-17 at 14:19 -0700, Joe Perches wrote: > diff --git a/arch/x86/kernel/dumpstack.c b/arch/x86/kernel/dumpstack.c > [] > > @@ -93,26 +93,15 @@ static void printk_stack_address(unsigned long address, int reliable, > > */ > > void show_opcodes(u8 *rip, const char *loglvl) > > { > > - unsigned int code_prologue = OPCODE_BUFSIZE * 2 / 3; > > + const unsigned int prologue = OPCODE_BUFSIZE * 2 / 3; > > And this might be better as a #define to avoid > a few more bytes of stack consumption. Apologies for this silly suggestion. automatics are not structs and gcc will eliminate this declaration at all compiler optimization levels.