1 Star 0 Fork 26

znzjugod / rasdaemon

forked from src-openEuler / rasdaemon 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0009-rasdaemon-ras-mc-ctl-Updated-HiSilicon-platform-name.patch 4.40 KB
一键复制 编辑 原始数据 按行查看 历史
From df6011fed2bb45989f9e5c2ea30b33937b08d06c Mon Sep 17 00:00:00 2001
From: Shiju Jose <shiju.jose@huawei.com>
Date: Thu, 28 Apr 2022 18:58:43 +0100
Subject: [PATCH 09/10] rasdaemon: ras-mc-ctl: Updated HiSilicon platform name
Updated the HiSilicon platform name as KunPeng9xx.
Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
---
util/ras-mc-ctl.in | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/util/ras-mc-ctl.in b/util/ras-mc-ctl.in
index 75981a0..1cc19b3 100755
--- a/util/ras-mc-ctl.in
+++ b/util/ras-mc-ctl.in
@@ -1529,7 +1529,7 @@ sub errors
# Definitions of the vendor platform IDs.
use constant {
- HISILICON_KUNPENG_9XX => "Kunpeng9xx",
+ HISILICON_KUNPENG_9XX => "KunPeng9xx",
};
sub vendor_errors_summary
@@ -1552,7 +1552,7 @@ sub vendor_errors_summary
my $dbh = DBI->connect("dbi:SQLite:dbname=$dbname", "", "", {});
- # HiSilicon Kunpeng9xx errors
+ # HiSilicon KunPeng9xx errors
if ($platform_id eq HISILICON_KUNPENG_9XX) {
$found_platform = 1;
$query = "select err_severity, module_id, count(*) from hip08_oem_type1_event_v2 group by err_severity, module_id";
@@ -1569,7 +1569,7 @@ sub vendor_errors_summary
$out .= "\t$module_id: $count\n";
}
if ($out ne "") {
- print "HiSilicon Kunpeng9xx OEM type1 error events summary:\n$out\n";
+ print "HiSilicon KunPeng9xx OEM type1 error events summary:\n$out\n";
}
$query_handle->finish;
@@ -1587,7 +1587,7 @@ sub vendor_errors_summary
$out .= "\t$module_id: $count\n";
}
if ($out ne "") {
- print "HiSilicon Kunpeng9xx OEM type2 error events summary:\n$out\n";
+ print "HiSilicon KunPeng9xx OEM type2 error events summary:\n$out\n";
}
$query_handle->finish;
@@ -1605,7 +1605,7 @@ sub vendor_errors_summary
$out .= "\t$sub_module_id: $count\n";
}
if ($out ne "") {
- print "HiSilicon Kunpeng9xx PCIe controller error events summary:\n$out\n";
+ print "HiSilicon KunPeng9xx PCIe controller error events summary:\n$out\n";
}
$query_handle->finish;
@@ -1623,7 +1623,7 @@ sub vendor_errors_summary
$out .= "\t$module_id: $count\n";
}
if ($out ne "") {
- print "HiSilicon Kunpeng9xx common error events summary:\n$out\n";
+ print "HiSilicon KunPeng9xx common error events summary:\n$out\n";
}
$query_handle->finish;
}
@@ -1660,7 +1660,7 @@ sub vendor_errors
my $dbh = DBI->connect("dbi:SQLite:dbname=$dbname", "", "", {});
- # HiSilicon Kunpeng9xx errors
+ # HiSilicon KunPeng9xx errors
if ($platform_id eq HISILICON_KUNPENG_9XX) {
$found_platform = 1;
$query = "select id, timestamp, version, soc_id, socket_id, nimbus_id, module_id, sub_module_id, err_severity, regs_dump from hip08_oem_type1_event_v2 order by id, module_id, err_severity";
@@ -1684,7 +1684,7 @@ sub vendor_errors
}
}
if ($out ne "") {
- print "HiSilicon Kunpeng9xx OEM type1 error events:\n$out\n";
+ print "HiSilicon KunPeng9xx OEM type1 error events:\n$out\n";
}
$query_handle->finish;
@@ -1709,7 +1709,7 @@ sub vendor_errors
}
}
if ($out ne "") {
- print "HiSilicon Kunpeng9xx OEM type2 error events:\n$out\n";
+ print "HiSilicon KunPeng9xx OEM type2 error events:\n$out\n";
}
$query_handle->finish;
@@ -1736,7 +1736,7 @@ sub vendor_errors
}
}
if ($out ne "") {
- print "HiSilicon Kunpeng9xx PCIe controller error events:\n$out\n";
+ print "HiSilicon KunPeng9xx PCIe controller error events:\n$out\n";
}
$query_handle->finish;
@@ -1767,7 +1767,7 @@ sub vendor_errors
}
}
if ($out ne "") {
- print "HiSilicon Kunpeng9xx common error events:\n$out\n";
+ print "HiSilicon KunPeng9xx common error events:\n$out\n";
}
$query_handle->finish;
}
@@ -1784,7 +1784,7 @@ sub vendor_errors
sub vendor_platforms
{
print "\nSupported platforms for the vendor-specific errors:\n";
- print "\tHiSilicon Kunpeng9xx, platform-id=\"", HISILICON_KUNPENG_9XX, "\"\n";
+ print "\tHiSilicon KunPeng9xx, platform-id=\"", HISILICON_KUNPENG_9XX, "\"\n";
print "\n";
}
--
2.25.1
1
https://gitee.com/znzjugod/rasdaemon.git
git@gitee.com:znzjugod/rasdaemon.git
znzjugod
rasdaemon
rasdaemon
master

搜索帮助