2
0
Fork 0
mirror of https://github.com/AsahiLinux/m1n1 synced 2024-12-24 20:33:10 +00:00
m1n1/proxyclient/hv/trace_all_more.py
Asahi Lina 6e99fde8f2 hv/trace_all_more.py: Trace more stuff
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:17:10 +09:00

23 lines
528 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.ASYNC)
# 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/aic", False)
trace_device("/arm-io/spi1", False)