SWDEV-523436: Fix logging of code object id=0. Add perfevent test. (#318)
* SWDEV-523436: Fix logging of code object id=0. Add perfevent test.
* Apply suggestions from code review
---------
Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com>
[ROCm/rocprofiler-sdk commit: 48c672e23e]
Tento commit je obsažen v:
@@ -139,6 +139,8 @@ ATTDecoder::parse(const Fspath& input_dir,
|
||||
|
||||
for(const auto& file : codeobj_files)
|
||||
{
|
||||
if(file.id == 0 && file.name.empty()) continue;
|
||||
|
||||
if(file.name.find("memory://") == 0)
|
||||
{
|
||||
ROCP_WARNING << file.name << " was not loaded";
|
||||
|
||||
@@ -120,6 +120,14 @@ rocprofiler_att_decoder_parse_data(rocprofiler_att_decoder_se_data_callback_t se
|
||||
trace_callback(ROCPROFILER_ATT_DECODER_TYPE_WAVE, 0, waves.data(), waves.size(), userdata);
|
||||
}
|
||||
|
||||
{
|
||||
std::vector<att_perfevent_t> vec{};
|
||||
att_perfevent_t perf{.events0 = 1, .CU = 1, .bank = 1};
|
||||
vec.push_back(perf);
|
||||
vec.push_back(perf);
|
||||
trace_callback(ROCPROFILER_ATT_DECODER_TYPE_PERFEVENT, 0, vec.data(), vec.size(), userdata);
|
||||
}
|
||||
|
||||
return ROCPROFILER_ATT_DECODER_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Odkázat v novém úkolu
Zablokovat Uživatele