PC Sampling: fix potential_end_offset (#792)

* fix potential_end_offset

* format code: unrelated
This commit is contained in:
Fei Zheng
2025-07-08 06:52:01 -06:00
zatwierdzone przez GitHub
rodzic 239e6550f4
commit 1b7445faa4
2 zmienionych plików z 2 dodań i 1 usunięć
+1
Wyświetl plik
@@ -513,6 +513,7 @@ class OmniSoC_Base:
)
)
from rocprofv3_avail_module import avail
avail.loadLibrary.libname = str(
Path(self.get_args().rocprofiler_sdk_library_path).parent.parent
/ "libexec"
+1 -1
Wyświetl plik
@@ -1196,7 +1196,7 @@ def load_pc_sampling_data_per_kernel(
next_index = i + 1
if next_index < len(filtered_sorted_list): # Ensure the next item exists
next_item = filtered_sorted_list[next_index]
kernel_info["potential_end_offset"] = item[
kernel_info["potential_end_offset"] = next_item[
"kernel_code_entry_byte_offset"
]
else: