Message ID | 20221022225637.1406715-1-jim.cromie@gmail.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1382083wrr; Sat, 22 Oct 2022 15:58:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7cFuEuvwwHXw4VU1AnlO91wNKo5VQXr2Skkeznhy8mYwZ9V7lykLdw7YtHP+mNywR6BNSC X-Received: by 2002:a17:907:2cf7:b0:78d:c7fc:29ff with SMTP id hz23-20020a1709072cf700b0078dc7fc29ffmr21996174ejc.748.1666479519999; Sat, 22 Oct 2022 15:58:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666479519; cv=none; d=google.com; s=arc-20160816; b=Ni9HZkgJ/aKRIrBQ/ZHodaF2wpUsziYQRaG7/pY8BJnPgVpzOdfvRM9jQDzijsGbwb 4mvRKgNYYGJMfsK9pHJ6PHNfT0K1K/8maSie1172vUS2LgMLhgAGT/ZWc/jRaZBZG13Z Ez37MUpopMT/9nVCyy45MQTPzeUwSwLdC1b9yv9uKGRwNbH+HQl7vsGhRE8qnPryGP3a JV0PcrkPeXFnh4nuIftesak4TPMIKR34Xc+JzQEmvZ9IgmI9AOd7b5o6qPT4a5ns+fxk RC+Wnvgn0qX4S/vXezRihErI8+W+oi/KXHXw7hXF/n+8L4hxPelGjVsGJtW8a/czSFXb ScZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=jM5meo0ZGZ7KJu4pnBNKRi5tHBVhOfktKQt8N819UHU=; b=PlwXCoUK8qAIyO/rxgYBuC2wK24rnbrTD28XU/fFBnbZ906tNDvVfcp0c5RBfIkVm7 AxL3xtiKJnm8iuQfcMDDv92KA5rPs6Kpogg6b4pMKXl/yewUtNJg6gKm4JJ9gITA/hHk t36fItSpwm4rgDMNXtqfxducULAfjEa3YbyZMT2JXi0VSbtSB2wdVyeuOkw6Aj3SCQ1l XTqBdkXgG9wp/Md9Y34nGYn0qfB9or7uu9pn9ZHSPv4YTAeRg4j1e8vD/ahJI+h0BoIy r4Mtk8bXr5xL19qHcErKl0hzeHp1ZR6c/uwgwP+tkqBPJg/6wmBhINhzpIn/ovHOk4gm N60g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=adnVfAeG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho19-20020a1709070e9300b00782bb167cb6si26737818ejc.80.2022.10.22.15.58.13; Sat, 22 Oct 2022 15:58:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=adnVfAeG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229937AbiJVW4q (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Sat, 22 Oct 2022 18:56:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229853AbiJVW4n (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 22 Oct 2022 18:56:43 -0400 Received: from mail-il1-x134.google.com (mail-il1-x134.google.com [IPv6:2607:f8b0:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8558883F17 for <linux-kernel@vger.kernel.org>; Sat, 22 Oct 2022 15:56:41 -0700 (PDT) Received: by mail-il1-x134.google.com with SMTP id o13so3476415ilc.7 for <linux-kernel@vger.kernel.org>; Sat, 22 Oct 2022 15:56:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jM5meo0ZGZ7KJu4pnBNKRi5tHBVhOfktKQt8N819UHU=; b=adnVfAeGxOj0UswBzcj1+5i/PyYahRvmFbir6YJQTWn5ocQ/nw3rgXNRdBwk2RFcGC oEpq4Oj9tRr4HVV8xlv46a/LtzWA5y6IeO4FlfwQPeXVMpkzmmQ0HMqUuoWd+DulQhKS EZNvWz5Pf8o4qa3AjG9kJbErg1+ac8Fy0RgNBuiDza0/Sv2hylLhSJRwPbozt9Av+UD4 f82wU/bIz1BaSPhkujYHYqWpLKN36QKuwTRkddP5nXlviMLOu2Tw+FN93aLsuqhpVfWi wdKsOjS+Wn8vZ9zJ495k5SqSN0KxbyJyBMMHPT5luHgn/ACpgkiY2wE5HEy3OiUhBqAq BHJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jM5meo0ZGZ7KJu4pnBNKRi5tHBVhOfktKQt8N819UHU=; b=3Kv7dYs7zh886BOXLX6Zov/sAoAx0pdK5Als9AuGIWCVYupeURAsi1qGoj0/lYOURr vcGgCFDXG+S+3+M6qjxn4TCHIDVf2wz8s9SLsuFRBSSVsDOj2aR7VpMDITzcD56Y8FiO t2ER/qZ6nAnRFIhF2agU11LKtWhutRzkiSPpWeRam1Mb3jyyc5NAH7eEkzxFZhrY/rRN XnVJ3EbeFPMsG0dutENzOIaKsqUh4R/Cn5SqTzZtP0711Chfx4Zfk4kvE2htUBLn9iy3 1+igncp2TvyO1FBJZ/g9Pp4Rqt5wRh3z9FYQ1Xw5e12yomD7HvFqz0p4yLtpAe/gonMA DmSA== X-Gm-Message-State: ACrzQf3YF181LcFZBPD86+Ulq2Hnjz9iAC3hqfQYs2DjKNFeRUw9tZ6o 24IdCUbXo3ncRC3VnVEf011xVyIw1aw= X-Received: by 2002:a05:6e02:1ba3:b0:2fa:3547:477a with SMTP id n3-20020a056e021ba300b002fa3547477amr18811281ili.34.1666479399788; Sat, 22 Oct 2022 15:56:39 -0700 (PDT) Received: from frodo.. (c-73-78-62-130.hsd1.co.comcast.net. [73.78.62.130]) by smtp.googlemail.com with ESMTPSA id o9-20020a927309000000b002fc323a2902sm2492267ilc.62.2022.10.22.15.56.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Oct 2022 15:56:39 -0700 (PDT) From: Jim Cromie <jim.cromie@gmail.com> To: linux-kernel@vger.kernel.org, jbaron@akamai.com, gregkh@linuxfoundation.org Cc: Jim Cromie <jim.cromie@gmail.com>, Suren Baghdasaryan <surenb@google.com>, Kent Overstreet <kent.overstreet@linux.dev> Subject: [PATCH 0/2] RESEND vmlinux.lds.h tweaks Date: Sat, 22 Oct 2022 16:56:35 -0600 Message-Id: <20221022225637.1406715-1-jim.cromie@gmail.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747430429327890050?= X-GMAIL-MSGID: =?utf-8?q?1747430429327890050?= |
Series |
RESEND vmlinux.lds.h tweaks
|
|
Message
Jim Cromie
Oct. 22, 2022, 10:56 p.m. UTC
hi Greg,
this time w/o the stale patch 2.
These 2 patches are "no functional change", but they are a simple step
towards de-duplicating the repetitive columms in the __dyndbg section.
For a DYNAMIC_DEBUG=y kernel with 5k pr_debugs/drm.debugs, the
footprint reduction should be ~100 KiB
Jim Cromie (2):
vmlinux.lds.h: add BOUNDED_SECTION* macros
vmlinux.lds.h: place optional header space in BOUNDED_SECTION
include/asm-generic/vmlinux.lds.h | 221 +++++++++++-------------------
1 file changed, 81 insertions(+), 140 deletions(-)
CC: Suren Baghdasaryan <surenb@google.com>
CC: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Comments
On Sat, Oct 22, 2022 at 04:56:35PM -0600, Jim Cromie wrote: > hi Greg, > > this time w/o the stale patch 2. > > These 2 patches are "no functional change", but they are a simple step > towards de-duplicating the repetitive columms in the __dyndbg section. > > For a DYNAMIC_DEBUG=y kernel with 5k pr_debugs/drm.debugs, the > footprint reduction should be ~100 KiB Cool stuff, let me add it to my tree and see what breaks! :) greg k-h
On Thu, Nov 10, 2022 at 11:09 AM Greg KH <gregkh@linuxfoundation.org> wrote: > > On Sat, Oct 22, 2022 at 04:56:35PM -0600, Jim Cromie wrote: > > hi Greg, > > > > this time w/o the stale patch 2. > > > > These 2 patches are "no functional change", but they are a simple step > > towards de-duplicating the repetitive columms in the __dyndbg section. > > > > For a DYNAMIC_DEBUG=y kernel with 5k pr_debugs/drm.debugs, the > > footprint reduction should be ~100 KiB > > Cool stuff, let me add it to my tree and see what breaks! :) > > greg k-h very good, thnks. on a rev2, I'd change _s_ _e_ macro vars, maybe _BEGIN_, _END_, or _1ST_, _LAST_ and maybe expand the commit-msgs for more explanation.
hi Greg, You recently applied to driver-core-next: 2 vmlinux.lds.h patches from me. The 2nd has a subtle error, placing the optional header KEEP in with the data. 1st patch fixes it by dropping the extra KEEP, restoring basic behavior. 2nd redoes the HEADERD_SECTION idea with separate macros, so it cant affect the basic case. HEADERD_SECTION is not the name in code, maybe it should be ? Also, 2nd is NOT in real/purposeful use yet. I should have stared at this patchset longer before sending. sorry about that. Jim Cromie (2): vmlinux.lds.h: fix BOUNDED_SECTION_(PRE|POST)_LABEL macros vmlinux.lds.h: add BOUNDED_SECTION_(PRE|POST)_LABEL_HDR macros include/asm-generic/vmlinux.lds.h | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-)