summaryrefslogtreecommitdiff
path: root/tools/proxyclient/hv/trace_all_more.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/proxyclient/hv/trace_all_more.py')
-rw-r--r--tools/proxyclient/hv/trace_all_more.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/proxyclient/hv/trace_all_more.py b/tools/proxyclient/hv/trace_all_more.py
new file mode 100644
index 0000000..7296075
--- /dev/null
+++ b/tools/proxyclient/hv/trace_all_more.py
@@ -0,0 +1,23 @@
+# 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)