From e4adb5c1c167986118844feb4fd488f7c4bfbdcb Mon Sep 17 00:00:00 2001 From: Ming Wang Date: Wed, 21 May 2025 10:02:45 +0800 Subject: [PATCH] LoongArch: Set the NR_CPUS macro in the crash tool to 2048 to match the kernel's value Signed-off-by: Ming Wang (cherry picked from commit ecb5dccfe7177f4c1de7635e56c8b431a41da4e6) --- 0003-crash-8.0.4-add-support-for-loongarch64.patch | 2 +- crash.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/0003-crash-8.0.4-add-support-for-loongarch64.patch b/0003-crash-8.0.4-add-support-for-loongarch64.patch index fad45fe..c4d8c20 100644 --- a/0003-crash-8.0.4-add-support-for-loongarch64.patch +++ b/0003-crash-8.0.4-add-support-for-loongarch64.patch @@ -288,7 +288,7 @@ index deef1d5..2d1ef9a 100644 #define NR_CPUS (256) #endif +#ifdef LOONGARCH64 -+#define NR_CPUS (256) ++#define NR_CPUS (2048) +#endif #ifdef SPARC64 #define NR_CPUS (4096) diff --git a/crash.spec b/crash.spec index 9713006..6ba8a7a 100644 --- a/crash.spec +++ b/crash.spec @@ -1,6 +1,6 @@ Name: crash Version: 8.0.4 -Release: 13 +Release: 14 Summary: Linux kernel crash utility. License: GPLv3 URL: https://crash-utility.github.io @@ -101,6 +101,9 @@ install -D -m 0644 defs.h %{buildroot}%{_includedir}/%{name}/defs.h %{_mandir}/man8/crash.8* %changelog +* Wed May 21 2025 Ming Wang - 8.0.4-14 +- Set the NR_CPUS macro in the crash tool to 2048 to match the kernel's value + * Tue May 20 2025 zhangjian - 8.0.4-13 - fix ps error when mm_struct.rss_stat is lazy initialized -- Gitee