[rocprofv3] Sanitize string of command in rocpd (#467)

Sanitize string of command in rocpd

Co-authored-by: Huanran Wang <huanrwan@amd.com>

[ROCm/rocprofiler-sdk commit: 5c45c77ec7]
이 커밋은 다음에 포함됨:
Wang, Huanran그리고Huanran Wang 작성하고 GitHub가 2025-07-15 13:01:14 -04:00를 커밋함
1 부모 b439b4e719
커밋 f96cafaa60
1 파일이 변경됨
+2 -1
+2 -1
파일 보기
@@ -811,6 +811,7 @@ write_rocpd(
auto command = fmt::format(
"{}",
fmt::join(tool_metadata.command_line.begin(), tool_metadata.command_line.end(), " "));
auto _command = sanitize_sql_string(command);
auto stmt = get_insert_statement("rocpd_info_process{{uuid}}",
{
@@ -822,7 +823,7 @@ write_rocpd(
insert_value("fini", tool_metadata.process_end_ns),
insert_value("start", tool_metadata.process_start_ns),
insert_value("end", tool_metadata.process_end_ns),
insert_value("command", command),
insert_value("command", _command),
insert_value("environment", json_env),
insert_value("extdata", json_cfg),
});