Skip to content

Commit

Permalink
tools: Show entire queues, annotate signal # in cmdstream dump
Browse files Browse the repository at this point in the history
Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com>
  • Loading branch information
laanwj committed Oct 24, 2017
1 parent 2e0d751 commit f21e941
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/dump_cmdstream.py
Expand Up @@ -374,6 +374,7 @@ def load_data_definitions(struct_file):
if struct['kind'] == 'structure_type':
patch_member_pointer(struct, 'logical', 'void')
patch_member_pointer(struct, 'queue', '_gcsQUEUE')
patch_member_pointer(struct, 'next', '_gcsQUEUE')

return d

Expand Down Expand Up @@ -631,6 +632,9 @@ def handle_comment(f, val, depth):
elif parent_type == '_gcsUSER_MEMORY_DESC':
if field == 'physical': # annotate addresses with unique identifier
return tracking.format_addr(val.value)
elif parent_type == '_gcsHAL_SIGNAL':
if field == 'signal':
return 'id = %d' % val.value
if field == 'node':
if val.value in tracking.nodes:
return tracking.nodes[val.value].name
Expand Down

0 comments on commit f21e941

Please sign in to comment.