From patchwork Sat Feb 10 23:49:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?=C5=81ukasz_Bartosik?= X-Patchwork-Id: 199331 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1700679dyd; Sat, 10 Feb 2024 15:52:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IHvj7aXxXgDQE/ExWTn+agUBs0vRloG1M9zvyrXtPX7OICzxqkdsv+pd+D3fiLF/stFJxVj X-Received: by 2002:a05:6358:8421:b0:178:68c4:5c18 with SMTP id b33-20020a056358842100b0017868c45c18mr5520547rwk.10.1707609152182; Sat, 10 Feb 2024 15:52:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707609152; cv=pass; d=google.com; s=arc-20160816; b=aH+iNrynDu2+JpUzFEpaYJ7w+w3yVwhAx+9xWAD4FjW6g2LoSLwK+ZRgM3IJG7JFcm P00HRJh5NBNjMoPPyg3PGUx8Dn/WaYKM/W3KlX7jTPOp0QDbB37ebf+aqWJ2c5M9CPss SLM3LEB6QlxG3SgiUKd+XP6yo7Grm7hDJCSBEo6W0QqcH8Ue+33NED0l768oOr0jq/+j zdle5NAFaqkbTVOUS/K3nWhEEGs5bN/L0AGCo/lWogVwMrS0Bo8jz9Aie1fX5z+rCpop gDv9IAXSjePuwgjupEzyEmw9QA3qI3na9omFL2QhcCZYujTwephZkvErO1+YbMRE2U3o TNDw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=wHpG276MmElKepXhunEl7bkyaSWvxSiZXup8NnNdSuc=; fh=2Z+WPToD2mU5inIEuChB1KKbk9xuOfpUBKWIeBM20nw=; b=wU6l3HJW/i3wjRo/kOQjpbkM0O1/LTvSVHgEIS0yjPTa0Bla9RUfc/BCILRr+oSvXW UQkE3ADA9HZfodGL3vPGLvGp3edfkrNHhRvDryat39T8NcTmKXp/5n+EcH/7A2mvOJmB 54AFZ/Lq84+DgPfER2ewmVRvLt5eUVD2I5DbuoflGCqhLoGo8VjkE8iSsHEueuKeW0s0 /L040w8qXe9eRT8Eib3TyNboRLiuxzJUDiEfqc75AbENvqR3SpW7fD8oy75sLbk/pRcz iy1LnzPZBoYm/VlkxF+9NloXdJPQL4cI2kPoY6FLIAJi5VG9sg2zXCYeIdH2NN12uYNq i6gg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XXrkXuw5; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-60590-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60590-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org X-Forwarded-Encrypted: i=2; AJvYcCX+Q5Su0NfV1IdDfZYJAaWdnjWPBTweEf21UMbbcSNVheATVvQM8MO5MatRqWY9AAjxix7mkFo2EjHWl4t26NgzeIDkEg== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u24-20020a17090ae01800b00290c6b287a6si3933007pjy.56.2024.02.10.15.52.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 15:52:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60590-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XXrkXuw5; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-60590-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60590-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E7B07283C92 for ; Sat, 10 Feb 2024 23:52:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 90B616089A; Sat, 10 Feb 2024 23:50:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="XXrkXuw5" Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0BF5605AB for ; Sat, 10 Feb 2024 23:50:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707609044; cv=none; b=BnN7rdJAZAV4cEm8gZs173LEg7Qb8QqMbzce4TDKIbNKkkCJTDGZchTyXz+q9Ceq+wAxSAjKvznEUJ+3ZMwHyz0aSbaW9PZFGeVsYq6l4CYndtAYP4TIro3egzEKFFDcWOcFuIggYE9QgpejUxcuigJ6Flj2j0v7eiXr9Lq1HuI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707609044; c=relaxed/simple; bh=PKIPCdVpIuUn/00YwCRKhljNgiSyRdjJyytN1tq9BaQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=W6Fx+IE6vNO5YvRXQqN9b0tJg0afyK1LhwMloK4qHRRQbcU88fotetBbSJZIh8VdZkuaKT/yCUdMWoe8AGRwoho1bB/sYs74vs2Han3QPohNniWWz5tJR8wVEhkY0kBTyut88xK8KIwyaegcsX8iIpGrIm7YxEf6h/pyTW2B0YY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=XXrkXuw5; arc=none smtp.client-ip=209.85.167.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-5101cd91017so2348452e87.2 for ; Sat, 10 Feb 2024 15:50:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1707609041; x=1708213841; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wHpG276MmElKepXhunEl7bkyaSWvxSiZXup8NnNdSuc=; b=XXrkXuw5amxDB1i/GGDQsUqAAlmsPklnIIoxdJYS3v2b7eottwGsfgsRPdpq3g/Hgn UGJ78SKGREnDpwObfm5yCjp5AV32mgAo2xtSRAiV2b038MnEjasuovWUdrBGFmVFGC+5 teN4oCZ1IWrulbn2xgVLC1dI6WCgiVlTXTQuA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707609041; x=1708213841; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wHpG276MmElKepXhunEl7bkyaSWvxSiZXup8NnNdSuc=; b=CPnCPTbzodaacQzi26ZcUOi4VSBrOieXuOdqElFjYe6+vM7jZKYRmjVYNLFUf1MFi3 7FeIn+vyXhg4Cgzj2Y8I5zRDacxCjrMhQkG1LrBIU0cyNoVlDyDfXfeTHmRYCkh4CMZp DVHffz4BHjHjaFiEoRBXwLtJ9vVKMojBvtytW9bRc6EQwFE/KDETltLKolgiVb3udhfZ O+uuaAyJ0FyF6yqFovwLhmokMbYRVVWxn7923AumhDW+h/pZBJ0vdbKHOy353c/tRj9h SZ8w3D65XrqKFla0aJRygwd3MNPMJTEgMB2VhaWgGIATZvBuw70fjTBWf20klJ0OKlr7 EsLg== X-Gm-Message-State: AOJu0YyjFGc7/F93VBOGiCmVAwncQYjcJB2HVSFA+nwzrJ8l34DoSBs6 rmRrgS4Q16tIE+znYpp8lNJGRQviX2VMvndFN4mV1CAksmiSFStS1qM+Bf+S X-Received: by 2002:a05:6512:3246:b0:511:882e:aa2f with SMTP id c6-20020a056512324600b00511882eaa2fmr249269lfr.50.1707609041040; Sat, 10 Feb 2024 15:50:41 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVXzcfxvl53b0KUr1AgxRUitK73QLnppDlhHkKvnYnab4XlZzdLWCQtiWNZTYX4A42GkbmGlrcniR/8P9q9qsEfn5rnazlCjGxZ/7GZ12O3O7hHnIetYy+tHDPpZWSkRdAF5LGaz9p1aSZi1NwR6pRUq8VdmvotG8GZ+nFvPdc7wHduqJbYT7MpMjfz2E4YKzn6X/JFh9qgWcm/tO2BQYHs7QM+9nsK0KxXA0BTFqZit1tt2d0Ucftula3JtEJPHSXiffMXkeAEId7sF6lSGVsHXSEOE5XcWFnnwNo3CIpLB1CiLs0wh79FheTZivU2sASNqFuDMzszhOH2rpWy2aMx6fDsmIN68V+MLmEOcfQzAqBUegcMlfV0NEFW/44q9cqHla+NQuJZUbi/6dHGkSqSlKIhkoVjfhIZeNoF8EZ4ALwrOR9kCjxXMrTyG5D6BA+59BZXkaYVzqzIHFlHupE3DCLtEcs8Cttack5ZOZpHdgEg91o79IUTbfMHMYjG+gl1uXliMCJAcsevu4KzWWKJ+U36DbxTZE9kWRnYZC8FuRWU8Yf6oOZU/vGU8pVxS5FQsBKTDr1mgLhGyiWyb1JjeTkakLsk2B9EJX7djmTZFOY50Q== Received: from ukaszb-l.roam.corp.google.com (alfa56.extreme-net.one.pl. [213.77.89.56]) by smtp.gmail.com with ESMTPSA id o27-20020a056512051b00b0051179ae1846sm365561lfb.280.2024.02.10.15.50.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 15:50:40 -0800 (PST) From: =?utf-8?q?=C5=81ukasz_Bartosik?= To: Jason Baron , Jim Cromie , Greg Kroah-Hartman , Andrew Morton , Kees Cook , Douglas Anderson Cc: Guenter Roeck , Yaniv Tzoreff , Benson Leung , Steven Rostedt , Vincent Whitchurch , Pekka Paalanen , Sean Paul , Daniel Vetter , Simon Ser , John Ogness , Petr Mladek , Sergey Senozhatsky , linux-kernel@vger.kernel.org, upstream@semihalf.com Subject: [PATCH v4 07/39] dyndbg: repack _ddebug structure Date: Sun, 11 Feb 2024 00:49:37 +0100 Message-ID: <20240210235009.2405808-8-ukaszb@chromium.org> X-Mailer: git-send-email 2.43.0.687.g38aa6559b0-goog In-Reply-To: <20240210235009.2405808-1-ukaszb@chromium.org> References: <20240210235009.2405808-1-ukaszb@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790557974174043216 X-GMAIL-MSGID: 1790557974174043216 From: Jim Cromie Move the JUMP_LABEL to the top of the struct, since they're both align(8) and this closes a pahole (unfortunately trading for padding, but still). Signed-off-by: Jim Cromie --- include/linux/dynamic_debug.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/linux/dynamic_debug.h b/include/linux/dynamic_debug.h index 497130816e9c..b9237e4ecd1b 100644 --- a/include/linux/dynamic_debug.h +++ b/include/linux/dynamic_debug.h @@ -14,6 +14,12 @@ * the special section is treated as an array of these. */ struct _ddebug { +#ifdef CONFIG_JUMP_LABEL + union { + struct static_key_true dd_key_true; + struct static_key_false dd_key_false; + } key; +#endif /* * These fields are used to drive the user interface * for selecting and displaying debug callsites. @@ -53,12 +59,6 @@ struct _ddebug { #define _DPRINTK_FLAGS_DEFAULT 0 #endif unsigned int flags:8; -#ifdef CONFIG_JUMP_LABEL - union { - struct static_key_true dd_key_true; - struct static_key_false dd_key_false; - } key; -#endif } __attribute__((aligned(8))); enum class_map_type {