SWDEV-516846: Fix serialization services conflicts and ATT counter streaming (#230)
* Update TT API * Rework serialization * update att_core * Fix tests * Fix tool * Formatting * Fix perfcounter * Formatting * Rename agent TT * Format * Workaround for codeQL alert * Tidy fix * Fix compiler error * Tidy * Fix some tests * Fixing some tests * formatting * Fixing ATT serialization * Format * Fix test commandline * Fixing init order * Format * Tidy fixes * Removing unused sample * Fix tests and schema * Added ATT + PMC test * Fix mode * Fix file mode * Review comments * Fix typo * Review comments * Review comments * Fix missing id inc after review comment * Review comments * Suggested Fixes * Testing changes * Test fix * Build fixes * Minor build fix --------- Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com> Co-authored-by: Benjamin Welton <bewelton@amd.com> Co-authored-by: Welton, Benjamin <Benjamin.Welton@amd.com>
This commit is contained in:
48 files changed
+763
-1525
No files matched your search
@@ -23,6 +23,7 @@
|
||||
#include "metadata.hpp"
|
||||
|
||||
#include "lib/common/filesystem.hpp"
|
||||
#include "lib/common/logging.hpp"
|
||||
#include "lib/common/string_entry.hpp"
|
||||
#include "lib/output/agent_info.hpp"
|
||||
#include "lib/output/host_symbol_info.hpp"
|
||||
@@ -31,6 +32,7 @@
|
||||
|
||||
#include <rocprofiler-sdk/fwd.h>
|
||||
#include <rocprofiler-sdk/rocprofiler.h>
|
||||
#include <cstdint>
|
||||
#include <rocprofiler-sdk/cxx/details/tokenize.hpp>
|
||||
|
||||
#include <fmt/core.h>
|
||||
@@ -246,7 +248,20 @@ metadata::get_code_object_load_info() const
|
||||
return _info;
|
||||
});
|
||||
|
||||
return _data;
|
||||
uint64_t _sz = 0;
|
||||
for(const auto& itr : _data)
|
||||
_sz = std::max(_sz, itr.id);
|
||||
|
||||
ROCP_WARNING_IF((_sz + 1) - _data.size() > 1000) << fmt::format(
|
||||
"Spares index detected for code object load info: {} < {}", _data.size(), _sz);
|
||||
|
||||
auto _code_obj_data = std::vector<rocprofiler::att_wrapper::CodeobjLoadInfo>{};
|
||||
_code_obj_data.resize(_sz + 1, rocprofiler::att_wrapper::CodeobjLoadInfo{});
|
||||
// index by the code object id
|
||||
for(auto& itr : _data)
|
||||
_code_obj_data.at(itr.id) = itr;
|
||||
|
||||
return _code_obj_data;
|
||||
}
|
||||
|
||||
std::vector<std::string>
|
||||
|
||||
Reference in new issue
Block a user