总条数: 9 条(6 个唯一 mergeKey,3 条在两个 taskId 下重复) taskId: 169ba56917aa4ed7ad2c1eee121277af(5条) + 5e2afabafd7d406093365811a9f58061(2条) + 7112d98f41a04cf08e53bd8a8dce90d0(2条) 涉及文件: aicpu_timeout_manager.h, aicpu_timeout_manager.cc, aicpu_timeout_control.cc
169ba56917aa4ed7ad2c1eee121277af
5e2afabafd7d406093365811a9f58061
7112d98f41a04cf08e53bd8a8dce90d0
aicpu_timeout 模块为新增文件(I330a112f08ab0629681a925559c67d7a28605a7b),不存在存量豁免考虑,尽量修复。
faultTaskPtr
UpdateAicpuTimeoutStateOnCqeReport
->type
->errorCode
const TaskInfo* const
MAX_UINT32_NUM
constexpr
initResult
constexpr uint32_t initResult
sizeof(uint32_t)
checkResultLen
CheckKernelSupportedConfig
sizeof(CheckKernelSupportedConfig)
argsSize
LaunchAicpuBuiltinKernel
sizeof(CloseAicpuMonitorArgs)
kernelName
nameLen
CheckKernelSupportedConfig.kernelNameLen
0811 告警分拣报告
总条数: 9 条(6 个唯一 mergeKey,3 条在两个 taskId 下重复)
taskId:
169ba56917aa4ed7ad2c1eee121277af(5条) +5e2afabafd7d406093365811a9f58061(2条) +7112d98f41a04cf08e53bd8a8dce90d0(2条)涉及文件: aicpu_timeout_manager.h, aicpu_timeout_manager.cc, aicpu_timeout_control.cc
Triage 摘要
改(5 条,3 个唯一 mergeKey)
faultTaskPtr在UpdateAicpuTimeoutStateOnCqeReport(.cc:90-91) 只读取->type/->errorCode,改const TaskInfo* const与 reportTask 一致faultTaskPtr只读访问,改const TaskInfo* constMAX_UINT32_NUM已是constexpr(base_info.hpp:48),initResult直接赋值该常量,改constexpr uint32_t initResult,一行不改(4 条)
sizeof(uint32_t)在任何平台上恒为 4,远小于 uint32_t 上界 2^32;checkResultLen为驱动 IPC 协议CheckKernelSupportedConfig成员,类型固定 uint32_tsizeof(CheckKernelSupportedConfig)为固定结构体大小(64 位下约 28 字节),远小于 2^32;argsSize参数类型为 uint32_t,LaunchAicpuBuiltinKernel接口要求 uint32_tsizeof(CloseAicpuMonitorArgs)为 4 字节结构体(3 个 uint8_t + 2 字节 rsv),远小于 2^32;argsSize参数类型为 uint32_t,接口要求 uint32_tkernelName为内核名称字符串,实际长度不超过数百字节,远小于 2^32;nameLen传入驱动 IPC 协议CheckKernelSupportedConfig.kernelNameLen(uint32_t),协议字段类型固定按规则汇总