mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-23 15:13:02 +00:00
hv/trace_all.py: Trace all I/O ranges using the arm-io prop
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
ae7228f398
commit
927c12ad53
1 changed files with 8 additions and 2 deletions
|
@ -1,7 +1,10 @@
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
from m1n1.utils import irange
|
||||||
|
|
||||||
# Map the entire MMIO range as traceable
|
# Map the entire MMIO range as traceable
|
||||||
trace_range(range(0x2_00000000, 0x7_00000000))
|
for r in hv.adt["/arm-io"].ranges:
|
||||||
|
trace_range(irange(r.parent_addr, r.size), mode=TraceMode.SYNC)
|
||||||
|
|
||||||
# Skip some noisy devices
|
# Skip some noisy devices
|
||||||
try:
|
try:
|
||||||
|
@ -12,7 +15,10 @@ try:
|
||||||
trace_device("/arm-io/usb-drd1", False)
|
trace_device("/arm-io/usb-drd1", False)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
trace_device("/arm-io/uart2", False)
|
try:
|
||||||
|
trace_device("/arm-io/uart2", False)
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
trace_device("/arm-io/error-handler", False)
|
trace_device("/arm-io/error-handler", False)
|
||||||
trace_device("/arm-io/aic", False)
|
trace_device("/arm-io/aic", False)
|
||||||
trace_device("/arm-io/spi1", False)
|
trace_device("/arm-io/spi1", False)
|
||||||
|
|
Loading…
Reference in a new issue