Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4350436imj; Tue, 12 Feb 2019 14:25:16 -0800 (PST) X-Google-Smtp-Source: AHgI3IZPBfVNEqhrTranF4RUpQyUbeh3ZfCaKkXaTJ1pppRikER1YhTFaSgKZZ4GIANAaXGcTsiH X-Received: by 2002:a62:1bd4:: with SMTP id b203mr6156141pfb.144.1550010316780; Tue, 12 Feb 2019 14:25:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550010316; cv=none; d=google.com; s=arc-20160816; b=BwRIu5FC1dCXq7mio3wq20GrCkBW34QEqhi1MuphhNhKCUc96ZmebdK3X4p4AMuYa3 KX1HYnx+E8epsVzuLB0ibE+/yQbe8wTbTPYkKzlxbiDUJjObNPQso3KUVMhlWsnnq9IV ocgaMHwzrCOOa5MMpr8VVuC881cB3ZwaPC5iYmHQAQdyVpaUswYZ/8NJQM3NuDgwSnMy i7iwzbgVc0RjOeVd1ls1IaYML8mEHtMpvbdt8H20NF1U/xWUSNaPfz5D0n1/TEAVH/yO BfIX5ZnLKOqyCG1oDu+JWtOhMLwuOQKJ8G6s/Jjjn/mfEXjGRCBvimyYV4x5y71TbBZ1 2TWA== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=q299i7b4D1aHhBrLyv9qe98k821Ph08ofif5+bJaMdI=; b=hqJwqhE3DJGcNaShaWaXK8A8Jpmfs99gic8AGa+ajEpvq8ux8984ebI2TKDDd/7D/Y y7PszPATxgVAZDeeflC4KxpJ+uz1WltRh3xvsR7wyijjX9w29SbYDFqoiVPVGXFbJyA1 YGq9OsjN/2jiId9izd1BDfBfoTD3Tgvu884KQ4qM/+IFhKEJTMPdglhrELfQQtamTGhp zK8PzVfhZ0MwdNRZXB4tVJCD0KT8DopWREBTpNuVbM5Qo0TZddkD/2Ekfl0AkwRcI2me 0hg4tGWQXoOPTHnlRCscjS7UX8WNsAwIU+nnIOy+D7tayL2z3SV6Z11O9+41OFh4q2pH WRYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=WLVhYF4w; 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 l61si15300085plb.6.2019.02.12.14.25.01; Tue, 12 Feb 2019 14:25:16 -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; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=WLVhYF4w; 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 S1730214AbfBLVl6 (ORCPT + 99 others); Tue, 12 Feb 2019 16:41:58 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:39101 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728269AbfBLVl6 (ORCPT ); Tue, 12 Feb 2019 16:41:58 -0500 Received: by mail-ed1-f65.google.com with SMTP id b14so166008edt.6 for ; Tue, 12 Feb 2019 13:41:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=q299i7b4D1aHhBrLyv9qe98k821Ph08ofif5+bJaMdI=; b=WLVhYF4wqbHkVOecv7rjfd2U/bnhBKufPQiy6IdNaSgJagEEB4HxurBaDJX7p92ZK3 c+EPJwjFNEhPTj/7ZpejS0/Zy4fdDMmbK/xtDxGlPpKVL6PpC1PeUk5SaRKrduWmcz6b NIfeyRsk4a6OI3ZqmIEN6kZL8hax9ARe0vE84= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=q299i7b4D1aHhBrLyv9qe98k821Ph08ofif5+bJaMdI=; b=IDofcyQfmxLXGfs9iH6xA6u1S8FO2VpVxa05cF3G9sFjLKrHUqc0/FTaNoXi0LgTj0 X/8AgcLNN5fFPZCQLNrCWFe80MWLZiOtd7IS9UX8wpNZGlWAmFJ4z+woYw6+eYeot8YE MqGYhuSyBDl0Ev+ts0onLlsmUlfuN5ZI5Npog7wTvYwSx4hOSmIM7eeWGboBhn6KX5RH jKHXTFi5NvbB0SRg3ulrCg+8UR4dMCS33dQW86NHM7X9QK6mQJDCIztQvtoATfWbMTjh CwaV3W7/rmSg+XjKlHy3Zsexn+miFcrIdgA//pYoCyFAaxzREGCzExv9novCrO5JWfM5 Zokw== X-Gm-Message-State: AHQUAubAfY3074/G9mhFyJgKw7zCrWtNfENgF0mH7Z3F68OaasbLgHpl ZecQtPHSNMNSjMgG/OCN4NNRAw== X-Received: by 2002:a17:906:2296:: with SMTP id p22mr4251731eja.92.1550007716024; Tue, 12 Feb 2019 13:41:56 -0800 (PST) Received: from prevas-ravi.waoo.dk (ip-5-186-119-174.cgn.fibianet.dk. [5.186.119.174]) by smtp.gmail.com with ESMTPSA id v1sm3697607eds.47.2019.02.12.13.41.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Feb 2019 13:41:54 -0800 (PST) From: Rasmus Villemoes To: Andrew Morton , Jason Baron Cc: linux-kernel@vger.kernel.org, Rasmus Villemoes , David Sterba , Petr Mladek , "Rafael J . Wysocki" , linux-acpi@vger.kernel.org, linux-btrfs@vger.kernel.org, netdev@vger.kernel.org, Steven Rostedt , x86@kernel.org, Greg Kroah-Hartman , Ingo Molnar Subject: [PATCH v4 00/14] various dynamic_debug patches Date: Tue, 12 Feb 2019 22:41:36 +0100 Message-Id: <20190212214150.4807-1-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20181109231021.11658-1-linux@rasmusvillemoes.dk> References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This started as an experiment to see how hard it would be to change the four pointers in struct _ddebug into relative offsets, a la CONFIG_GENERIC_BUG_RELATIVE_POINTERS, thus saving 16 bytes per pr_debug site (and thus exactly making up for the extra space used by the introduction of jump labels in 9049fc74). I stumbled on a few things that are probably worth fixing regardless of whether that goal is deemed worthwhile. Back at v3 (in November), I redid the implementation on top of the fancy new asm-macros stuff. Luckily enough, v3 didn't get picked up, since the asm-macros were backed out again. I still want to do the relative-pointers thing eventually, but we're close to the merge window opening, so here's just most of the "incidental" patches, some of which also serve as preparation for the relative pointers. I'm not sure how long an Ack/Reviewed-by is good for, but OTOH it also feels rude to just drop them on the floor. I've kept those tags since the rebasing to current master went completely smooth. Andrew, please pick these up for soaking in -next. v3 series: lkml.kernel.org/r/20181109231021.11658-1-linux@rasmusvillemoes.dk v2 series: lkml.kernel.org/r/20181009112013.14238-1-linux@rasmusvillemoes.dk Rasmus Villemoes (14): linux/device.h: use DYNAMIC_DEBUG_BRANCH in dev_dbg_ratelimited linux/net.h: use DYNAMIC_DEBUG_BRANCH in net_dbg_ratelimited linux/printk.h: use DYNAMIC_DEBUG_BRANCH in pr_debug_ratelimited dynamic_debug: consolidate DEFINE_DYNAMIC_DEBUG_METADATA definitions dynamic_debug: don't duplicate modname in ddebug_add_module dynamic_debug: use pointer comparison in ddebug_remove_module dynamic_debug: remove unused EXPORT_SYMBOLs dynamic_debug: move pr_err from module.c to ddebug_add_module dynamic_debug: add static inline stub for ddebug_add_module dynamic_debug: refactor dynamic_pr_debug and friends btrfs: implement btrfs_debug* in terms of helper macro ACPI: use proper DYNAMIC_DEBUG_BRANCH macro ACPI: remove unused __acpi_handle_debug macro ACPI: implement acpi_handle_debug in terms of _dynamic_func_call fs/btrfs/ctree.h | 34 ++++-------- include/linux/acpi.h | 11 +--- include/linux/device.h | 2 +- include/linux/dynamic_debug.h | 102 +++++++++++++++++++--------------- include/linux/net.h | 2 +- include/linux/printk.h | 2 +- kernel/module.c | 6 +- lib/dynamic_debug.c | 22 ++++---- 8 files changed, 84 insertions(+), 97 deletions(-) -- 2.20.1