m1n1/proxyclient/hv/trace_isp.py

14 lines
484 B
Python
Raw Normal View History

#!/usr/bin/env python3
# SPDX-License-Identifier: MIT
from m1n1.trace.isp import ISPTracer
# bootargs += camLogging=0xfffffffffffff
# all opcodes: https://pastebin.com/F8h7eDRB
dev_name = [node.name for node in u.adt["/arm-io"] if node.name.startswith("isp")][0]
dev_path = "/arm-io/%s" % (dev_name)
dart_dev_path = "/arm-io/dart-%s" % (dev_name)
print(dev_path, dart_dev_path)
tracer = ISPTracer(hv, dev_path, dart_dev_path, verbose=4)
tracer.start()
dart = tracer.dart_tracer.dart