m1n1/proxyclient/hv/trace_all.py
Hector Martin 927c12ad53 hv/trace_all.py: Trace all I/O ranges using the arm-io prop
Signed-off-by: Hector Martin <marcan@marcan.st>
2021-11-10 20:43:51 +09:00

25 lines
608 B
Python

# SPDX-License-Identifier: MIT
from m1n1.utils import irange
# Map the entire MMIO range as traceable
for r in hv.adt["/arm-io"].ranges:
trace_range(irange(r.parent_addr, r.size), mode=TraceMode.SYNC)
# Skip some noisy devices
try:
trace_device("/arm-io/usb-drd0", False)
except KeyError:
pass
try:
trace_device("/arm-io/usb-drd1", False)
except KeyError:
pass
try:
trace_device("/arm-io/uart2", False)
except KeyError:
pass
trace_device("/arm-io/error-handler", False)
trace_device("/arm-io/aic", False)
trace_device("/arm-io/spi1", False)
trace_device("/arm-io/pmgr", False)