pc sampling integration fix

[ROCm/roctracer commit: d2243ef1ec]
This commit is contained in:
Evgeny
2020-03-07 19:09:54 -06:00
parent acb2bcc0fe
commit bc7acebcea
4 changed files with 86 additions and 48 deletions
@@ -184,8 +184,12 @@ class TraceBuffer : protected TraceBufferBase {
if (is_flushed == false) {
for (flush_prm_t* prm = flush_prm_arr_; prm < flush_prm_arr_ + flush_prm_count_; prm++) {
// Flushed entries type
uint32_t type = prm->type;
// Flushing function
callback_t fun = prm->fun;
if (fun == NULL) FATAL("flush function is not set");
pointer_t pointer = 0;
for (Entry* ptr : buf_list_) {
Entry* end = ptr + size_;