Skip to content

Commit

Permalink
Add new topo_tree_dump.py
Browse files Browse the repository at this point in the history
This is useful for quickly searching for something in topologies.

Also a good starting point.
  • Loading branch information
marc-hb committed May 29, 2024
1 parent 3fa4a18 commit b3502d1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tools/topo_tree_dump.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env python3

"""
Do not make this script longer or more complicated. Use it as starting
point if needed.
Pro tip: try these commands _interactively_ from `ipython3`
"""

import sys
import tplgtool2

tplgFormat = tplgtool2.TplgBinaryFormat()

parsedTplg = tplgFormat.parse_file(sys.argv[1])

print(parsedTplg)

0 comments on commit b3502d1

Please sign in to comment.