1. Modify the recording format of the Hisilicon Kunpeng9xx common errors in the rasdaemon.
2. In the ras-mc-ctl,
2.1. Modify the error statistics for the HiSilicon Kunpeng9xx common errors to display
the statistics and error info based on the module and the error severity..
2.2. Add support to display the vendor-errors for a specified module.
2.3. Add printing usage if the necessary parameters are not passed for the
vendor-errors options.
2.4. Reformat error info of the HiSilicon Kunpeng920.
2.5. Relocate reading and display Kunpeng920 errors to under Kunpeng9xx.
Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
(cherry picked from commit ca01a3db7b2b002855070d02a095296680325354)
37 lines
999 B
Diff
37 lines
999 B
Diff
From 623e85c07ab21ccc89ffe2bb444eb000a2664a9d Mon Sep 17 00:00:00 2001
|
|
From: Shiju Jose <shiju.jose@huawei.com>
|
|
Date: Sat, 5 Mar 2022 17:01:35 +0000
|
|
Subject: [PATCH 4/6] rasdaemon: ras-mc-ctl: Add printing usage if necessary
|
|
parameters are not passed for the HiSilicon vendor-errors options
|
|
|
|
Add printing usage if necessary parameters are not passed for the HiSilicon vendor-errors options of the ras-mc-ctl.
|
|
|
|
Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
|
|
---
|
|
util/ras-mc-ctl.in | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/util/ras-mc-ctl.in b/util/ras-mc-ctl.in
|
|
index eeaf885..0e32cb1 100755
|
|
--- a/util/ras-mc-ctl.in
|
|
+++ b/util/ras-mc-ctl.in
|
|
@@ -1542,6 +1542,7 @@ sub vendor_errors_summary
|
|
if ($num_args ne 0) {
|
|
$platform_id = $ARGV[0];
|
|
} else {
|
|
+ usage(1);
|
|
return;
|
|
}
|
|
|
|
@@ -1649,6 +1650,7 @@ sub vendor_errors
|
|
if ($num_args ne 0) {
|
|
$platform_id = $ARGV[0];
|
|
} else {
|
|
+ usage(1);
|
|
return;
|
|
}
|
|
|
|
--
|
|
2.25.1
|
|
|