[rocprofv3] Add check for Stream Stack Pointer before use (#465)

* Added null check for stream_stack before get_stream_id is called

* Rename function and add check for stream strack before pop

* Removed empty check for stream stack and adding error log for get_stream_id in stream.cpp

[ROCm/rocprofiler-sdk commit: 0904b6e34d]
Tá an tiomantas seo le fáil i:
Trowbridge, Ian
2025-06-30 17:49:48 -05:00
tiomanta ag GitHub
tuismitheoir 145944dc30
tiomantas e2bdebcb57
D'athraigh 4 comhad le 17 breiseanna agus 2 scriosta
@@ -490,7 +490,8 @@ set_kernel_rename_and_stream_correlation_id(rocprofiler_thread_id_t thr_id,
tool::get_config().kernel_rename && thread_dispatch_rename != nullptr &&
!thread_dispatch_rename->empty();
const bool hip_stream_enabled = !tool::get_config().group_by_queue;
const bool hip_stream_enabled =
!tool::get_config().group_by_queue && rocprofiler::tool::stream::stream_stack_not_null();
if(!kernel_rename_service_enabled && !hip_stream_enabled) return 1;