Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp467571rdf; Fri, 3 Nov 2023 06:12:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE1eRgfV6GHml8P2Eznw2pHu52HK10/OD/IseoT6ChEV90gOwpJPLlHpHL6Du22b95BxgKz X-Received: by 2002:a05:6e02:3288:b0:359:3920:f943 with SMTP id bk8-20020a056e02328800b003593920f943mr13375993ilb.27.1699017151580; Fri, 03 Nov 2023 06:12:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699017151; cv=none; d=google.com; s=arc-20160816; b=cLl17oZ9/Qn1HrLeV7LjF4G+IqoV+FQEqxT6Pw6qOuRtit9cxs4aTt6yHQ6tyobD7C 3j8iGla/2hJo4O9X6guzJKr5KlZBpxj+0/CwHrXNIHwKko1VGooYQazmp6Xnvs128qdG JWJGAXhtHRKpsJLE2YXoILad1yfl9z3bPsr6Gws94wwLI3U7YxE9QCxCUs+K1u/PEBmF kJ2/PSbYC5CAq1sqEEPf5aCWocW6Q6POtk59IqZpysUj9f1P9DsTezoKN4sTYrU4isjR 1PcjLXx8hfhOjDtoLQm19PS3Z+qy8fbt58w75bF4v7I6t1cWVnK+POLpGip36jjbxF9w yEKg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wc5ZJr+XZL17m3pVsUYEvFhpTqfft7OhKC8WZHCW6XE=; fh=Xr9EZaLbYspLudo3lCz3I6iQD6BKril0MIzT5DobTXc=; b=VK3DNwi5F2sS4DVkhXVH1k5rW2MmDpsFmXOFijCi0Tfkr9Zd4coM3+7kHyn2BlqLzQ icwB46+mqo07BsleEsdnbg9h7zVKZxrYwtH9vzMjps6A1BbLq2EvupE0Z4JFEdAYd1yW vKmXxaUeZTBKg9RZBf+sPBvNDyiqpkukyXSWfGVDeXNBrYskRPO4cc3gt7BhXW2CahcG Sa63dkTi5jhx7rtDrT/lXvGwrrIj7jcZtaEqq1QUqhaxvWuBomy2u0xZrJ3r1KukuT0E nxsWTeS9OOaLLPL1LhvtEg2pElmIgY7aPYboH3kXrsrHg2/g8GflNkfBYKRLmJkdpZUj /54A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=RmwMeWxB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=semihalf.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id x191-20020a6386c8000000b005bd3ca6c398si645451pgd.736.2023.11.03.06.12.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 06:12:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=RmwMeWxB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=semihalf.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id EE01980657FF; Fri, 3 Nov 2023 06:11:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377683AbjKCNKy (ORCPT + 99 others); Fri, 3 Nov 2023 09:10:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233264AbjKCNKb (ORCPT ); Fri, 3 Nov 2023 09:10:31 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61596111 for ; Fri, 3 Nov 2023 06:10:24 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-507bd19eac8so2575376e87.0 for ; Fri, 03 Nov 2023 06:10:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; t=1699017022; x=1699621822; 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=wc5ZJr+XZL17m3pVsUYEvFhpTqfft7OhKC8WZHCW6XE=; b=RmwMeWxBocntJ4o8D4jsOmlsc464F2oBSCW/PHzreT0wdvWku1WmxNbt+5BcSvkNI0 fYuzQhXi7qeLZQW46f+nM6HW/AOZDnFKjqtDrCvCJ8vktNOpHwU1L9Xvh9itEL8JUd7g As60TGBCJ/c7IWKHISJp1hUvkcBtks+k2K0XR0tahqD5AxcgvXbwWduHKcHsNGZ+hoI+ QvFUFGBrISrONI8QHClaWwK2H7S4mfXyEUNAGj6Ea/OmWMTgjdv1ddGh5fj43raBYcZB GB/rb+VDtb75O4vVzB+CsAXd1EHIUwWRg5+efEOE+50t6FivN0yGtSU1R17pLpCuoxTm U+uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699017022; x=1699621822; 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=wc5ZJr+XZL17m3pVsUYEvFhpTqfft7OhKC8WZHCW6XE=; b=KwPxsRS1IlEth/zfrVS0myPF3cndsCnayhxaiuXxjP9WjBrvQEWCiJ7dAx/Mvk7xZU pa2+EMGb8f5mqHjlzL6MzQTTQktAFuCwQdk6bMJtwfjlxmObLyAAytxcqilqEAh3EW/c 8m8DbZhSx6UReolEhotH98IjUjMLB0MCWLAJboOMvJVnvHPmq7KL/svsZnXzAw+X8j1G o4rOEJbys7j9vwYwWiOG4GVVY6YbHrtFjh/k0eGXwasmOx0tIs7vss3S7Of4/WkAvmOO kT8K3bltSfRCCpcNEzDve2N/tYI5UV6UrYYotlerID+rUnu9c6PYjmZBWYb9Stj46PXT dLgw== X-Gm-Message-State: AOJu0YyY/0NxCbEenw4JyuhDK42FYy1nJs0vYDGCO8XD7NGruvALsw3p +2J7Nh6BEyGNDwhqih+nL/orepsYZJq6OyFw+QiF X-Received: by 2002:ac2:446e:0:b0:4fe:2f8a:457e with SMTP id y14-20020ac2446e000000b004fe2f8a457emr16338981lfl.43.1699017022670; Fri, 03 Nov 2023 06:10:22 -0700 (PDT) Received: from ukaszb-l.wifi.semihalf.net ([83.142.187.85]) by smtp.gmail.com with ESMTPSA id f21-20020ac25335000000b00507a69a4799sm216336lfh.270.2023.11.03.06.10.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 06:10:21 -0700 (PDT) From: =?UTF-8?q?=C5=81ukasz=20Bartosik?= To: Jason Baron , Jim Cromie , Andrew Morton , Kees Cook , Douglas Anderson Cc: Guenter Roeck , Yaniv Tzoreff , Benson Leung , Steven Rostedt , Vincent Whitchurch , Pekka Paalanen , Sean Paul , Daniel Vetter , linux-kernel@vger.kernel.org, upstream@semihalf.com Subject: [PATCH v1 07/12] dyndbg: repack struct _ddebug Date: Fri, 3 Nov 2023 14:10:06 +0100 Message-Id: <20231103131011.1316396-8-lb@semihalf.com> X-Mailer: git-send-email 2.38.3 In-Reply-To: <20231103131011.1316396-1-lb@semihalf.com> References: <20231103131011.1316396-1-lb@semihalf.com> 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,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 03 Nov 2023 06:11:06 -0700 (PDT) From: Jim Cromie Move the JUMP_LABEL to the top of the struct, since theyre 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 { -- 2.42.0.869.gea05f2083d-goog