Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4644424yba; Wed, 10 Apr 2019 01:41:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+ueO8ODNcoVMvts6uICCq2swMTS6PKJbZxZWRls7HQA+K/qX2fCj9ekw46FACo7J2UBsD X-Received: by 2002:a63:195e:: with SMTP id 30mr39430624pgz.312.1554885695149; Wed, 10 Apr 2019 01:41:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554885695; cv=none; d=google.com; s=arc-20160816; b=im9E7HAWSk2n/HGk8bVvcULQUNpcysQqexiUujFQUo/j/kvFCYZ5Gp6FmIyg5pGUDO sfGfVGAoJOKwhnli9fwsHPrK1s74cIBPSWCcU0NjGsyHu0DHhEOv9M/JbimLRnfL/oDa TVsRzwubT2LxZ0VXwOt9QnaBSCysvHt5TcvIEcro7kMO1l6mHyQ00AulHnnmhWan1y7z yiBgOQU8NfXiDjODHX7iCyFcfhJtmz21VnMNZTfrvZpEOuXvPP59rPQ7hluac6a6RHh/ fk1JtpgZnbWJydrzRZrHZLOBEyvo9/TknLgRYtxCT0z/iUzZ+zpqTo0O8QnuaaeOUJO3 D7rg== 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:dkim-signature; bh=lkxUsR042gDEBBDHQwVljAED8SAFsJwRj7BhGYD8oFY=; b=DJqO6k09yoI7BXJ8JUOADbLPhYX6RuAoN5g6OqtqomcEBaAbB+wOv1SbdujcdBMWlf 4O7FfJbQCqSOSRGCpYOtniii6KID76TmfyDkf6K0zar7hl3CvDFf62KFIwe66Qrfiucr DDlou7LL481sVuTVwfNdvg7JhC0qQTkCJPfsrn18xIgTOt2bARii7xfIOMrhgwGb7tI+ LkjublDK1qwNcMApbsn22reGMxFdg3uOsltPO3Q2lFiMBqkifveDZBw4fe/C8sra5ZC1 p90Q7ahQJWIYvEi66Jftxs36De6RE40uAF+nyxYamU7QHmpoHGCSGCJATSI8C+vCQhjj wxGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=bCQDNkFT; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n9si30227344pgp.539.2019.04.10.01.41.19; Wed, 10 Apr 2019 01:41:35 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=bCQDNkFT; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728565AbfDJHbq (ORCPT + 99 others); Wed, 10 Apr 2019 03:31:46 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:33718 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726577AbfDJHbp (ORCPT ); Wed, 10 Apr 2019 03:31:45 -0400 Received: by mail-wr1-f66.google.com with SMTP id q1so1655508wrp.0 for ; Wed, 10 Apr 2019 00:31:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=lkxUsR042gDEBBDHQwVljAED8SAFsJwRj7BhGYD8oFY=; b=bCQDNkFTcxnBkzqv7mVRRSSIeEx0rhHSaQiQ2ka/5WwUlKeyusuCAOnRjmZ7Ccvv10 kT/Ku8NHq7DsPXSsp2/uGDRZAL0i14PT8fIep973IsVYAOLWKoM+w8cvuH0NKacVKHNw sQA10GOPKgeTYmisPfPz4QfebOG5L4nMIzrQx1hoNNJRavyl9xI/0twbOaYx27+Tvq7P rhTx84RZMLhD3B+0zpI9UswHuXatpeiLfGY9UKrfPpNEfNRqfpZGcQAzHuXzQNK5w+q6 62WIXfBQgdL6PrUej2qgiTH5pxMbMqNPl9/xRatPdlJ1xXSDQAtrJKJxkfRqCjn4GzOo CDRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=lkxUsR042gDEBBDHQwVljAED8SAFsJwRj7BhGYD8oFY=; b=TKMwgHturbp8/aP2eJTbQFPXib1+S6GXQmvV2igxgebkEl81nQ+ulgl/aBwFcPKJZn GY3nOCKUjJ4MkAMCY/8yhUpGVL22zSIODni20n7z+FHCIKvTOQWmL5srK9+qE4bUaajO mg6G9fpVi7pm861yRLPfdg2Yhao9qfbhPwAZuITLXbUHsGfCYCQUPhCvGO9rlGDBu5Z0 auqynzO/TSVNKLAroNVjOG3QqmuyVQ5SXmfvrefu0IlHMxoRnZZJQRIMeWiGJsY7iilA +w2wyAffbB6l7jVii+5+iOm9CGpveGkRX2bk1PH/qMSTb5RUWRcqdCKpBFJ3JQ/vB6Gd 69pg== X-Gm-Message-State: APjAAAVYr0qUlfWJcnHdcsJYgePyrs4fqJ2jWcF609BlUB5ejApWIlvk dHegqV5c1ZdHRjMCra8/eHM= X-Received: by 2002:a5d:4843:: with SMTP id n3mr20867606wrs.256.1554881503821; Wed, 10 Apr 2019 00:31:43 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id 7sm120341732wrc.81.2019.04.10.00.31.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Apr 2019 00:31:43 -0700 (PDT) Date: Wed, 10 Apr 2019 09:31:40 +0200 From: Ingo Molnar To: Rasmus Villemoes Cc: Andrew Morton , x86@kernel.org, Jason Baron , linux-kernel@vger.kernel.org, Ingo Molnar Subject: Re: [PATCH 08/10] x86-64: select DYNAMIC_DEBUG_RELATIVE_POINTERS Message-ID: <20190410073140.GA30370@gmail.com> References: <20190409212517.7321-1-linux@rasmusvillemoes.dk> <20190409212517.7321-9-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190409212517.7321-9-linux@rasmusvillemoes.dk> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Rasmus Villemoes wrote: > This reduces the size of struct _ddebug from 56 to 40 bytes. There's > one such struct for each pr_debug(), netdev_debug() etc. in a > CONFIG_DYNAMIC_DEBUG kernel. An Ubuntu 4.15 kernel has about 2550 > entries in the __verbose section of vmlinux, amounting to ~40K > saved. (Modules also become smaller, but it's harder to quantify how > much that yields at runtime.) > > For comparison, the __bug_table section of that Ubuntu kernel is 75576 > bytes, i.e. 6298 12-byte bug_entrys, so GENERIC_BUG_RELATIVE_POINTERS > saves ~50K. > > Due to the build-time sanity checks in asm-generic/dynamic_debug.h, we > need to add another #undef to vclock_gettime.c. > > Signed-off-by: Rasmus Villemoes > --- > arch/x86/Kconfig | 1 + > arch/x86/entry/vdso/vdso32/vclock_gettime.c | 1 + > arch/x86/include/asm/Kbuild | 1 + > 3 files changed, 3 insertions(+) > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 5ad92419be19..eb5488b4577d 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -30,6 +30,7 @@ config X86_64 > select SWIOTLB > select X86_DEV_DMA_OPS > select ARCH_HAS_SYSCALL_WRAPPER > + select DYNAMIC_DEBUG_RELATIVE_POINTERS Acked-by: Ingo Molnar Thanks, Ingo