Use Internal Correlation ID values for Kernel Rename Feature (#397)

* Updated kernel rename service to use internal correaltion IDs for external correlation IDs and kernel rename values

* Updated for review comments

* Changed if-condition in generateJSON.cpp to check if string view is empty before calling get_entry
This commit is contained in:
Trowbridge, Ian
2025-05-19 01:34:44 -05:00
کامیت شده توسط GitHub
والد 7166b1ab58
کامیت afb27f3f1a
4فایلهای تغییر یافته به همراه44 افزوده شده و 17 حذف شده
@@ -137,12 +137,12 @@ write_json(json_output& json_ar,
auto _extern_corr_id_strings = std::map<size_t, std::string>{};
if(cfg.kernel_rename)
{
for(auto itr : tool_metadata.external_corr_ids.get())
for(const auto& itr : tool_metadata.kernel_rename_map.get())
{
if(itr > 0)
if(!itr.first.empty())
{
const auto* _str = tool_metadata.get_string_entry(itr);
if(_str) _extern_corr_id_strings.emplace(itr, *_str);
const auto* _str = common::get_string_entry(itr.first);
if(_str) _extern_corr_id_strings.emplace(itr.second, *_str);
}
}
}