fix roctx range markers not paired correctly in rocpd output (#2793)

## Motivation

Fix roctx range markers (Push/Pop, Start/Stop) not being displayed correctly in rocpd output. The Visualizer was showing only Stop/Pop events as instant markers instead of proper duration ranges with labels, while Perfetto output displayed them correctly.

## Technical Details

In `tool_tracing_callback_stop()`, the rocpd/database output was using `user_data->value` (timestamp of the Pop/Stop event) instead of `begin_ts` (corrected timestamp from the corresponding Push/Start event) when calling `cache_region()`.

The Perfetto output already used `begin_ts` correctly (line 818). This change aligns the rocpd output with the Perfetto behavior by using `begin_ts` instead of `user_data->value` (line 887).

Updated rocpd validation rules
Dieser Commit ist enthalten in:
habajpai-amd
2026-01-23 10:17:43 +05:30
committet von GitHub
Ursprung 6cf9b217d3
Commit 3318c540ea
4 geänderte Dateien mit 21 neuen und 6 gelöschten Zeilen
@@ -884,7 +884,7 @@ tool_tracing_callback_stop(
record, iterate_args_callback, 2, &args);
auto call_stack = get_backtrace(_bt_data);
uint64_t _beg_ts = user_data->value;
uint64_t _beg_ts = begin_ts;
uint64_t _end_ts = ts;
{