m1n1/proxyclient/hv/trace_dart.py
Hector Martin 42b7adad06 m1n1.trace.dart: Add DART tracer/handler
Signed-off-by: Hector Martin <marcan@marcan.st>
2021-06-22 01:39:38 +09:00

27 lines
510 B
Python

# SPDX-License-Identifier: MIT
from m1n1.trace.dart import DARTTracer
DARTTracer = DARTTracer._reloadcls()
DEVICES = [
"/arm-io/dart-pmp",
"/arm-io/dart-sep",
"/arm-io/dart-sio",
"/arm-io/dart-usb1",
"/arm-io/dart-disp0",
"/arm-io/dart-dcp",
"/arm-io/dart-dispext0",
"/arm-io/dart-dcpext",
"/arm-io/dart-scaler",
]
dart_tracers = {}
for i in DEVICES:
tracer = DARTTracer(hv, i, verbose=3)
tracer.start()
dart_tracers[i.split("-")[-1]] = tracer
del tracer