ROCpd schema fetching from rocprofiler-sdk (#1501)

- Integrate rocprofiler-systems with rocprofiler-sdk-rocpd to fetch schema
- If rocprofiler-sdk-rocpd is not availabe, use embedded schema files. With this we provide rocpd format support even if ROCm is not available
- Include detection in CMake if rocprofiler-sdk-rocpd package is available (and valid), and build database class upon that
- Update embedded schema that is used as a fallback.
- Update some validation tests to account for schema changes.
此提交包含在:
Milan Radosavljevic
2025-11-07 15:45:29 +01:00
提交者 GitHub
父節點 b299eece9b
當前提交 a9082a7158
共有 12 個檔案被更改,包括 277 行新增329 行删除
+6 -18
查看文件
@@ -1,11 +1,13 @@
{
"required_tables": [
{
"name": "kernel_summary",
"name": "top_kernels",
"required_columns": [
"name",
"calls",
"DURATION (nsec)"
"total_calls",
"total_duration",
"average",
"percentage"
],
"validation_queries": [
{
@@ -13,14 +15,7 @@
"description": "Check for null function names",
"error_message": "Found API calls with null function names",
"expected_result": 0,
"query": "SELECT COUNT(*) as count FROM kernel_summary WHERE name IS NULL"
},
{
"comparison": "greater_than",
"description": "Check that we have some kernel calls",
"error_message": "No kernel calls found in summary",
"expected_result": 0,
"query": "SELECT COUNT(*) as count FROM kernel_summary"
"query": "SELECT COUNT(*) FROM top_kernels WHERE name IS NULL"
}
]
},
@@ -43,13 +38,6 @@
"expected_result": 0,
"query": "SELECT COUNT(*) as count FROM kernels WHERE name IS NULL"
},
{
"comparison": "greater_than",
"description": "Check that we have kernel entries",
"error_message": "No kernel entries found",
"expected_result": 0,
"query": "SELECT COUNT(*) as count FROM kernels"
},
{
"comparison": "equals",
"description": "Check for kernels with no active time",