[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2fec8c50c271dff59f0177ff0884b6c374486ba5.1736327770.git.christophe.leroy@csgroup.eu>
Date: Wed, 8 Jan 2025 10:17:54 +0100
From: Christophe Leroy <christophe.leroy@...roup.eu>
To: Namhyung Kim <namhyung@...nel.org>,
Arnaldo Carvalho de Melo <acme@...hat.com>,
Adrian Hunter <adrian.hunter@...el.com>
Cc: Christophe Leroy <christophe.leroy@...roup.eu>,
linux-kernel@...r.kernel.org,
linuxppc-dev@...ts.ozlabs.org,
linux-perf-users@...r.kernel.org
Subject: [PATCH] kallsyms: Always include _edata
Since commit 69a87a32f5cd ("perf machine: Include data symbols in the
kernel map"), perf needs _edata symbol.
Make sure it is always included in /proc/kallsyms and not only when
CONFIG_KALLSYMS_ALL is selected.
Signed-off-by: Christophe Leroy <christophe.leroy@...roup.eu>
Fixes: 69a87a32f5cd ("perf machine: Include data symbols in the kernel map")
---
scripts/kallsyms.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
index 03852da3d249..391ab7ebce7f 100644
--- a/scripts/kallsyms.c
+++ b/scripts/kallsyms.c
@@ -215,6 +215,8 @@ static int symbol_valid(const struct sym_entry *s)
if (string_starts_with(name, "__start_") ||
string_starts_with(name, "__stop_"))
return 1;
+ if (!strcmp(name, "_edata"))
+ return 1;
if (symbol_in_range(s, text_ranges,
ARRAY_SIZE(text_ranges)) == 0)
--
2.47.0
Powered by blists - more mailing lists