adding SPM test

Change-Id: I55dde52e668206e238ea860dd11e0ed5501a582a
This commit is contained in:
Evgeny
2019-06-04 15:29:37 -05:00
parent 6d6eb2b2d0
commit 988283533f
4 changed files with 16 additions and 11 deletions
+8 -5
View File
@@ -248,12 +248,15 @@ class TraceProfile : public Profile {
}
void Insert(const profile_info_t& info) {
Profile::Insert(info);
if (info.event != NULL) {
if (info.parameters != NULL) {
Profile::Insert(info);
for (unsigned j = 0; j < info.parameter_count; ++j) {
Config<parameter_t>(&profile_).Insert(info.parameters[j]);
}
} else if (info.event != NULL) {
Config<event_t>(&profile_).Insert(*(info.event));
}
for (unsigned j = 0; j < info.parameter_count; ++j) {
Config<parameter_t>(&profile_).Insert(info.parameters[j]);
} else {
EXC_ABORT(HSA_STATUS_ERROR, "invalid trace info inserted");
}
}