Skip to content

Commit

Permalink
Add Initialization state to thread name conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
julianneswinoga committed Jul 29, 2023
1 parent 9f1c4c8 commit 715b9d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tracex_parser/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,11 @@ def apply_object_registry(self, obj_reg_map: Dict[int, CStruct]):
print(f'Failed to map {arg_to_map} in {self.__class__.__name__}:{self.mapped_args}')

# Make the thread names nicer
# @see https://docs.microsoft.com/en-us/azure/rtos/tracex/chapter11#thread-pointer
if self.thread_ptr == 0xFFFFFFFF:
# @see https://docs.microsoft.com/en-us/azure/rtos/tracex/chapter11#thread-pointer
self.thread_name = 'INTERRUPT'
elif self.thread_ptr == 0xF0F0F0F0:
self.thread_name = 'INITIALIZATION'
else:
# Try to find time slice thread_ptr in the registry
obj_reg_name = self._map_ptr_to_obj_reg_name(obj_reg_map, self.thread_ptr)
Expand Down

0 comments on commit 715b9d4

Please sign in to comment.