Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp680387rdb; Thu, 30 Nov 2023 15:42:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IHUzKfvcAmf2otmW7GuwCyw8QRixYQU7mWFxI8wr5n90tRBBT5Q2CABjtH/s8zIkG4VFyuB X-Received: by 2002:a17:903:1103:b0:1ce:6312:537c with SMTP id n3-20020a170903110300b001ce6312537cmr25031416plh.10.1701387746230; Thu, 30 Nov 2023 15:42:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701387746; cv=none; d=google.com; s=arc-20160816; b=Ej8CkIyfBw8pySDcwiNQnvqDvu//B5C8Tp4yrnF5oFzLJ3oQAp1csz8XiPcB8wM8Se LCvwyVXRQ4T9dC/J7OUkJ18CL6c95wRRBmm7PD2Cbzo3jMe96RINmV+qTHjNhEoCpEBb Yqy/S8PDoQIqFJq7ygO5ds3eMqP+fSSD5C5JhOhVH0HjXSaeAe3CmXqDkIlAxK2Wuf7T PEhP6+ux0Sw1yV/24iyBL6CCMXtE8l7o6fuqHQ90C421vbqhaDRbx+mZMLHlILIFQMqU 1LK3HncITBh6dUmdGcmowoDTkjGKfuTX5FYigV47h468Jbo2+3eP79uWBmtYdo4eXDdd s1zw== 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=ZU2G2uffAM4O6Nhks/FhUry7Vyfirnbj/6Fsp1kfUEw=; fh=Xr9EZaLbYspLudo3lCz3I6iQD6BKril0MIzT5DobTXc=; b=YtTEDJIbEZ+Lyub5OdCYHxVN5cXXsCSK9l09wr7fL2HLj3fSiIKqOyNSH58dAorYLz KIa/cAf66W5c8nujAcL5i1Hbsvu8qHjTTjXoNpJAebzAko7mBIwS70vdMZLpCO2AabSP bhSWkv1ML2tdt5np5H2yB/a9Y6njfhXImcHYNfZMx1Nddz631m4MjVGm5qmcR1VDpT7e gq7JC7g2MbP7rRR+ux9A2/dGrfpuMGfJfHmuGfpU7ZfdQ5JNHiY/G05IGQ3VY3b4F0Xu azZrnEaY+sgke3PjamXgmdGBdgRDKI0AfwcVIKyh/Ri2A2yhKrTXKwd00mE8y6+AhB/l YGsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=CJZ0nT80; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=semihalf.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id n7-20020a170902d2c700b001cfb6a76794si2311263plc.397.2023.11.30.15.42.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 15:42:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=CJZ0nT80; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=semihalf.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 404B08095813; Thu, 30 Nov 2023 15:42:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377387AbjK3Xll (ORCPT + 99 others); Thu, 30 Nov 2023 18:41:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377343AbjK3Xli (ORCPT ); Thu, 30 Nov 2023 18:41:38 -0500 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5EA21704 for ; Thu, 30 Nov 2023 15:41:44 -0800 (PST) Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2c9d33f049cso12466311fa.0 for ; Thu, 30 Nov 2023 15:41:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; t=1701387703; x=1701992503; 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=ZU2G2uffAM4O6Nhks/FhUry7Vyfirnbj/6Fsp1kfUEw=; b=CJZ0nT8023vEoKuowScpPmN7nUj933x4BU1+flrpiY7P+xYBmIYqfsYbSVCB/JApB+ oRSJpqn6IH+eWSONpXFjV8xcRWtm49++4HhBWiQROzD/D/ThyOYuTPuB0OvpVX0p06Zd NQEhrPTEHv1lmQTvQnf0Fuo5IuDA4PsXjIGZBI0p01hsraigq/E4XtNJ9CxVpqJgM86U OfSdDRYya9EIl13keenl6IcmaIGjMgTln+EwMUq3H1joktHqsjppCGdC1MTMR4ARh1Ti kCd1I39fwP6/nuOPjHGsEK5bBzrXInW31Z9GPFXZp2V2XuGrtW7fzzAMfp0GRDmRRWrk /bLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701387703; x=1701992503; 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=ZU2G2uffAM4O6Nhks/FhUry7Vyfirnbj/6Fsp1kfUEw=; b=DGLdL/B/uHgx7vOq0YlX9XN/V7vq7j/I2lJTh5Cq1K5Z+MHbE4cdyGvM4KWo17yXU5 Ot82Yk7RbCyilhyR4Ye5Y/yveBDNTH4VFjO/F1eHp/K07LnrAVK2iKt2mrQUErkaBOZX ydvWx/NHVBXd9o+kBF1Q0iciGtOY6NNEytFwci+4t8MtyIvd0RL/sWOBgbDddG/Xx64P +8VtKfREqKo+U5FUnrC93rg6EY3+JlaPDiDEKqNO5oWTBqFcQAN3buJtUAd2R7JsRuuP I3QkCvxOd+xp5Nqd/waOmSsHUwec59Ra+kzeH7z//Lthpene/DpkSPrlyr2UbMJYSjP0 ixeQ== X-Gm-Message-State: AOJu0Yx4kgLaKSMA5oWDwbB4+rANcdVTmEuXfZusWa8o5zGX4SZP6DAR Ull5mfG/4VOeFCoJxIGUnCLQ X-Received: by 2002:a2e:9083:0:b0:2c9:bb40:21f3 with SMTP id l3-20020a2e9083000000b002c9bb4021f3mr194433ljg.30.1701387702926; Thu, 30 Nov 2023 15:41:42 -0800 (PST) Received: from ukaszb-l.semihalf.net (public-gprs368940.centertel.pl. [37.47.72.109]) by smtp.gmail.com with ESMTPSA id 9-20020a170906100900b009ddaf5ebb6fsm1210175ejm.177.2023.11.30.15.41.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 15:41:42 -0800 (PST) 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 v2 07/15] dyndbg: repack _ddebug structure Date: Fri, 1 Dec 2023 00:40:40 +0100 Message-ID: <20231130234048.157509-8-lb@semihalf.com> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog In-Reply-To: <20231130234048.157509-1-lb@semihalf.com> References: <20231130234048.157509-1-lb@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Thu, 30 Nov 2023 15:42:18 -0800 (PST) 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 { -- 2.43.0.rc2.451.g8631bc7472-goog