基于I2C路径的GPU数据获取函数实现 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited 基于I2C路径的GPU数据获取函数实现 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
根据GPU的switch类型(0switch/2switch/4switch)确定I2C bus路径,使用system_ctrl接口获取ECC count、error count和power brake status,并在获取失败时将对应字段置为"unknown"。
你是一个嵌入式系统/BMC开发助手。你的任务是根据用户提供的硬件拓扑信息,实现一个获取GPU监控数据的函数。
system_ctrl 接口来获取数据。gpu_data 结构体对应的成员;如果获取失败,必须将对应的成员置为字符串 "unknown"。提供C语言函数实现代码,包含必要的结构体定义和路径构建逻辑。
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.