roctracer_stop() call in tool_load() function does nothing before
hsa activities registered. That forces tracing to be enabled from
start independently from option value. tool_load is called in
library constructor, activities are registered in library OnLoad()
callback, whih is called later by hsa_runtime.
Duplicated roctracer_stop() call in OnLoad() callback to fix this.
Fixed --trace-start on/of not working issue.
roctracer_stop() call in tool_load() function does nothing before hsa activities registered. That forces tracing to be enabled from start independently from option value. tool_load is called in library constructor, activities are registered in library OnLoad() callback, whih is called later by hsa_runtime.
Duplicated roctracer_stop() call in OnLoad() callback to fix this.
alexey.akimov@amd.com