From nobody Tue Dec 2 02:30:45 2025 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 EB2E32EBB88 for ; Wed, 19 Nov 2025 15:45:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763567129; cv=none; b=ckdm5S00d2tDYos30BkUu/B5SR0/nVAh63dkE+hQmG3d6WsaKxfBIiOOBpfDt2JmEOQXxZ5fksL67x3xpwlDA2cxk2BUyW8Ju0QZwPDCdqdm2glDqnlMtB+BfWGhECerNui+356hoRyITZLp50Er5BSigRF/AObxoGGfQqjM858= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763567129; c=relaxed/simple; bh=T6SjDhmcY0qxcuyqrC2MrBGCJa3hOQc9OYm2K6gInfg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Nwe5G8OmVZJ5f5gUSFC0vGA0+6VjMlFdgZwuZq1vuMVGkNj2zv+8vmkyYZnXfNJSsgN0ZBtMKAJmRWi53zfpWdlcGB1h9yDpOlSfwJ5VLnCiK3fxsctgMkQQbedAXp2tFgv3SeF0/UReyLrSIn1uaQKI782g38M0G5ft9KQzavk= 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=FslOMpT0; arc=none smtp.client-ip=209.85.221.54 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="FslOMpT0" Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-42b3d7c1321so4797160f8f.3 for ; Wed, 19 Nov 2025 07:45:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1763567124; x=1764171924; 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=NCvJkYlF4keL+Fd6f7hwRGbLb7cgm1v1S6Qn3Ctc9SY=; b=FslOMpT0D6lQ2kcCfXCiK0uWzCKjdNJ+AScQFNAM8TZvG3xEM7hVRVsKm91uZMaTvz 4ob7Vilx6or0EGs2w+NmOwSkxBsRgfBYuD4SXQ1WbbhJKL95YIWP18GQZJrCJn4gXokf tudwNkwtKWBIJqQsMpTYbscsCy2OJigihpRNBGv+IyyKzjhSkKhfzVARu4Qyx6Hkq0mm 1I86zQNM4dXOBcXvNdoMUynBcD7yv7L6gKD5o1nmiPzDy6GzgNzrtWtBJYAKSrgDIaK6 pRjDKWJeLrjp7UAQu+Ih0+8lSAKK0ipcr5Lla6ZRc+MOkqYY/bqS7qUUjRISp7uAjz90 dUuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763567124; x=1764171924; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=NCvJkYlF4keL+Fd6f7hwRGbLb7cgm1v1S6Qn3Ctc9SY=; b=uSyqphp3kCCYvDBz0q47gLb3vJPYuYjt6D+um2CyUeXA+zu13nC6CHk+74NRu7vOYK rRjT3ua/V4v36eYm0SOtTTuOeMS29NJy6FctUxhO4yQQAiuwECsd7oFkEG5n2JJLrNEB f+7TLKfuwKwXPMSOP91XfhNfLsRa3xKlv+v0yL/kVraqey6yYKp69sRYScQj8xQDhA+a sYomgi9FbfB/LD3gXHOf8IIeuVdbHEUg6lBoxHwBvOztwj5Ow8unnOPjwHTfB7QGe5aW N5IuMIAHgPZE+tr+kPPVQA26jvkAYTaiAJC1TcczRvrqTmNFdlXEpZfEsTPhcZ1cwYQ4 aIJQ== X-Forwarded-Encrypted: i=1; AJvYcCVeE3+nxrFRcstRS4OaavEiwAmbeKlMXwwkhTRWeFGzUDMKuvTeRzzwphlT+99mkQGc9vVhnxVHIDwd5hU=@vger.kernel.org X-Gm-Message-State: AOJu0YxXI5wLYm4GQ+2KIOVht/LGwoj3cQy0cd2+7fdmYpknCGed+LEl 12jEv95hnhElaPxZuV9CLtTXgxNrUS9ESWLZTexFJ+Ng34qgf76ZAmAkA6Gb0Jbfcn4= X-Gm-Gg: ASbGnctmwAZQfpE09wQJW3JAV8YgKVuBzHeixyJZH24qkyyq/hWYQlAJydMJLZxxVeF ioo/0o4imfTJvE0Lxx9d/OiS8/yzsN1YHr7PIormNNwOKtU7CRgk9o0yE13MNxdbWXaekUdSrWG FjAjKt39y4zi2ZcAz0EMyfD9I48KExdyxU/PrlMFkNpE94LnCGuE6BqemRyIBcqP2LSn1b/TxZ9 tz8iu6ibZNKQlYiR9nqMQmnwH3KrXuKIyEkCuGwspxVEdeK4CCBnIWbzGp9trIXhJbNsn5TtWy3 wv0+/sAHpSbdM26E8kc/3O+p8UqTiavfcbwIO1cBqmqHsqUEXWUI7ZJYhfZ7+vEMfCadHuYc2wQ xZ864z9jU96kkSjcqHX0OZW2vUwroFWTBKu3HQ1+8S4tNzO/ly9Jl8DUE1oEh6na5Ql6qUDV9u5 Sxm4kxKjsLEfZmNAOi9KThVIuu5EZuTA== X-Google-Smtp-Source: AGHT+IFVCfX9pNo5qLPfR5wjMBWTLaRukJCHurtJsWmWrjGoOxpQq2PCC7itN5NhSfJZMSf9UOyBtQ== X-Received: by 2002:a05:6000:1ace:b0:42b:3366:632a with SMTP id ffacd0b85a97d-42b59386ademr21562007f8f.39.1763567123749; Wed, 19 Nov 2025 07:45:23 -0800 (PST) Received: from eugen-station.. ([82.76.24.202]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42b53dea1c9sm38765632f8f.0.2025.11.19.07.45.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Nov 2025 07:45:23 -0800 (PST) From: Eugen Hristev To: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, tglx@linutronix.de, andersson@kernel.org, pmladek@suse.com, rdunlap@infradead.org, corbet@lwn.net, david@redhat.com, mhocko@suse.com Cc: tudor.ambarus@linaro.org, mukesh.ojha@oss.qualcomm.com, linux-arm-kernel@lists.infradead.org, linux-hardening@vger.kernel.org, jonechou@google.com, rostedt@goodmis.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-arch@vger.kernel.org, tony.luck@intel.com, kees@kernel.org, Eugen Hristev Subject: [PATCH 04/26] cpu: Annotate static information into meminspect Date: Wed, 19 Nov 2025 17:44:05 +0200 Message-ID: <20251119154427.1033475-5-eugen.hristev@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251119154427.1033475-1-eugen.hristev@linaro.org> References: <20251119154427.1033475-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 inspection table: - __cpu_present_mask - __cpu_online_mask - __cpu_possible_mask - __cpu_active_mask Information on these variables is stored into dedicated inspection section. Signed-off-by: Eugen Hristev --- kernel/cpu.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/cpu.c b/kernel/cpu.c index db9f6c539b28..1f2df5a5b9ab 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -38,6 +38,7 @@ #include #include #include +#include =20 #include #define CREATE_TRACE_POINTS @@ -3089,18 +3090,22 @@ struct cpumask __cpu_possible_mask __ro_after_init struct cpumask __cpu_possible_mask __ro_after_init; #endif EXPORT_SYMBOL(__cpu_possible_mask); +MEMINSPECT_SIMPLE_ENTRY(__cpu_possible_mask); =20 struct cpumask __cpu_online_mask __read_mostly; EXPORT_SYMBOL(__cpu_online_mask); +MEMINSPECT_SIMPLE_ENTRY(__cpu_online_mask); =20 struct cpumask __cpu_enabled_mask __read_mostly; EXPORT_SYMBOL(__cpu_enabled_mask); =20 struct cpumask __cpu_present_mask __read_mostly; EXPORT_SYMBOL(__cpu_present_mask); +MEMINSPECT_SIMPLE_ENTRY(__cpu_present_mask); =20 struct cpumask __cpu_active_mask __read_mostly; EXPORT_SYMBOL(__cpu_active_mask); +MEMINSPECT_SIMPLE_ENTRY(__cpu_active_mask); =20 struct cpumask __cpu_dying_mask __read_mostly; EXPORT_SYMBOL(__cpu_dying_mask); --=20 2.43.0