From nobody Mon Oct 6 06:43:02 2025 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 E2EDC2E62AD for ; Thu, 24 Jul 2025 13:56:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753365399; cv=none; b=IkL6k/znRmKn/Tb6DEkLc0FL4pqjLUWDJdoccVcYFnWNV/m0Adjtz4S/q08jQ+AKvs/bmz5pGeRfBjORS614W7vC5EBdAeKFy6qvhQjbklaPIusCdFKanb6X4iwXk1EZ6nvDRZ+i+PR5hTRDthv4vlBmdTDFgUy8rKLMpj67gH0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753365399; c=relaxed/simple; bh=Zu6zHICMsbDr9iEKVVQXs5NvRmjCVnu1EFLIYvz+qoQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nZQ1q7YHO0HKjTejnRBs/eTevJV6VvgMmXzqK1JHVpFRUnqwEAIW/KwrL8VOEqUF9EPOl8K1gXAQyk05XQFTgbeR8vhYQ7jEY8jePYPLOtjhrysg0L8+ZRj+D9cVX1jAjBVasTu+sstBMuwyrzqueP0wjNC6SHagMnaWhNwHHp4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=UKo7RQFf; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="UKo7RQFf" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4561a4a8bf2so11782555e9.1 for ; Thu, 24 Jul 2025 06:56:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753365395; x=1753970195; 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=hQxVhQs93RF2j5r69/kyB3XsN/D2SLMeChyoBk7vwm4=; b=UKo7RQFf1yxGOBkJXGeh+sfBmBXkK1H+4dY0li35Yw+u8GlIDgctfLJSJ4gGAGBQ2e GpkP54mAuQWTEzVRa637gLECXTG4LBD+H2Zf/5hnwBXl+0qVNriDWLr6BaX2ks2iEWBV Mv0LJV9V0FGC4soAaRZCjk8RfDbvKEMAJLRjcque3PsP8alr8TJvWdUYjSqS+DRr7vxH eLswUfmFOgcFn+aCBJClnkAnPFfGh/e2rEOVqJpIN08L56pFgqzxoVpF4AU3+fyoZ+1U +4/H2qvGelbzeKomwnogICW0n8OA9YwHGMszLF3omZ4MskFKLs2D5R7Q/FM2tWps4Txx N1Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753365395; x=1753970195; 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=hQxVhQs93RF2j5r69/kyB3XsN/D2SLMeChyoBk7vwm4=; b=F6nTQEaY+61XU5j/D3nXcMSUk+B90gFYm5mPBaQiz7NPtGtk/J4Ob4xHe77hm50dnZ NI6ejeYVDwwtUzmDa9W+6aONaIqbx9EpPVOk9pfVClJHAosa6dXsqK+7XY2QhojXm3q7 QXHu0quTSZlTDSbR57CrDpRzGLAgSjJlzykNPzcC7QvYFxQIBsL1LKevy3EI7hjE39gC s+jFyjfhBUgki8GMUCcJyG0ELrRlmSuqNGd+YWGX9l5aF3ALvqNrUz+I5RXlQhNW6ljc 04+35M14TMtD8VyEr95ju2ZHjBqxU3zoiDp/En635RfBnDixKHWCW73eYJGvdYtLNLPj 3KOw== X-Gm-Message-State: AOJu0Yyr7cWwcNHJtt9BGZa1UO0M0n9hL5h9xkoJDjrU29glNa04Hozc +3qjhBGlObrN7IKZifwmvumin71XeVbYaLIhskUazjB1cJOFz49KQmQ5ntI9lq56YIpAzAi6rLt zAlOYcQo= X-Gm-Gg: ASbGncvWJhlZbpoR3w6SjB6YRzE3HDWgl7wfRTg8DR6/GiFLhmOzKlgz4nz1YdNNeAP l3fnEmBRLD3K0qkBsVCVPNi6CrGP/AsGLVPApi7HiWaeIHS5eYJQS3M/wkFOzneCyPseZNu9oTi kL7VVDLk5L8sDZcuQhVVCX6ZQ1TrAGLkmDrTLhRucxtQ7iW6U+v8/2CjZIXLJhGjZdDnmoKtLKI iSf05W7Y3w3bkVmZs81qAxIANbYfkWugVFd+SbrJpHvBTCFQWrTLUiXWNGC7/infhje/DKRoflt 18ys9SfVJRB52YN43x++mI35tuEBbIeKL6fsXqRnWJCrJ/XwDMHJAGp2roQn8VLj44ol77Nvrwd QfvgX0ED0HL1shy+8SM/Npsqh75C23ak6l6oPTnH/Coa9kWWfcUYnqEvEMbEO37qtB4kVBfJC/c 9RPAXsCTIfLwhn X-Google-Smtp-Source: AGHT+IGhn2BhSHWFDoozkG8rL01GLeqFkYg2AyJwTWU+9+XF/fbe0VNyrElgCTmDYeBHx6jzMQbcKw== X-Received: by 2002:a05:600c:4e4e:b0:456:1bca:7faf with SMTP id 5b1f17b1804b1-45868cf76e4mr72058865e9.16.1753365394813; Thu, 24 Jul 2025 06:56:34 -0700 (PDT) Received: from eugen-station.. (cpc148880-bexl9-2-0-cust354.2-3.cable.virginm.net. [82.11.253.99]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4587054e37dsm20889375e9.14.2025.07.24.06.56.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jul 2025 06:56:34 -0700 (PDT) From: Eugen Hristev To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, tglx@linutronix.de, andersson@kernel.org, pmladek@suse.com Cc: linux-arm-kernel@lists.infradead.org, linux-hardening@vger.kernel.org, eugen.hristev@linaro.org, corbet@lwn.net, mojha@qti.qualcomm.com, rostedt@goodmis.org, jonechou@google.com, tudor.ambarus@linaro.org Subject: [RFC][PATCH v2 14/29] mm/page_alloc: Annotate static information into Kmemdump Date: Thu, 24 Jul 2025 16:54:57 +0300 Message-ID: <20250724135512.518487-15-eugen.hristev@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250724135512.518487-1-eugen.hristev@linaro.org> References: <20250724135512.518487-1-eugen.hristev@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Annotate vital static information into kmemdump: - node_states Information on these variables is stored into dedicated kmemdump section. Signed-off-by: Eugen Hristev --- mm/page_alloc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index fa09154a799c..5f0015e27a30 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -55,6 +55,7 @@ #include #include #include +#include #include #include "internal.h" #include "shuffle.h" @@ -207,6 +208,7 @@ nodemask_t node_states[NR_NODE_STATES] __read_mostly = =3D { #endif /* NUMA */ }; EXPORT_SYMBOL(node_states); +KMEMDUMP_VAR_CORE(node_states, sizeof(node_states)); =20 gfp_t gfp_allowed_mask __read_mostly =3D GFP_BOOT_MASK; =20 --=20 2.43.0