kexec-tools/SOURCES/orabug30352094-makedumpfile-Mark-mem-usage-option-unsupported-for-a.patch

31 lines
1.0 KiB
Diff

From 9a81be0511c005216217fffc757804c9b8485817 Mon Sep 17 00:00:00 2001
From: Darren Archibald <darren.archibald@oracle.com>
Date: Thu, 5 May 2022 02:32:37 -0700
Subject: [PATCH]
orabug30352094-makedumpfile-Mark-mem-usage-option-unsupported-for-a
Signed-off-by: Darren Archibald <darren.archibald@oracle.com>
---
makedumpfile-1.7.1/makedumpfile.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/makedumpfile-1.7.2/makedumpfile.c b/makedumpfile-1.7.2/makedumpfile.c
index 3ad4443..51f863c 100644
--- a/makedumpfile-1.7.2/makedumpfile.c
+++ b/makedumpfile-1.7.2/makedumpfile.c
@@ -12022,6 +12022,11 @@ main(int argc, char *argv[])
MSG("\n");
MSG("The dmesg log is saved to %s.\n", info->name_dumpfile);
} else if (info->flag_mem_usage) {
+#ifdef __aarch64__
+ MSG("mem-usage not supported for arm64 architecure.\n");
+ goto out;
+#endif
+
if (!check_param_for_creating_dumpfile(argc, argv)) {
MSG("Commandline parameter is invalid.\n");
MSG("Try `makedumpfile --help' for more information.\n");
--
2.27.0