From cc1284f264e09f67255a4094430bfe18f664bd39 Mon Sep 17 00:00:00 2001 From: Asahi Lina Date: Sat, 25 Feb 2023 16:06:08 +0900 Subject: [PATCH] hv/trace_agx_defer.py: Exclude context ID 1 (compositor) Signed-off-by: Asahi Lina --- proxyclient/hv/trace_agx_defer.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/proxyclient/hv/trace_agx_defer.py b/proxyclient/hv/trace_agx_defer.py index 257fdc51..175f91c8 100644 --- a/proxyclient/hv/trace_agx_defer.py +++ b/proxyclient/hv/trace_agx_defer.py @@ -13,8 +13,11 @@ agx_tracer = AGXTracer(hv, "/arm-io/gfx-asc", verbose=1) agx_tracer.pause_after_init = True agx_tracer.trace_usermap = False -agx_tracer.trace_kernmap = False +agx_tracer.trace_kernmap = True +agx_tracer.trace_userva = False +agx_tracer.trace_kernva = True agx_tracer.redump = True +agx_tracer.exclude_context_id = 1 agx_tracer.start() @@ -33,3 +36,10 @@ def pause_tracing(ctx): hv.add_hvcall(100, resume_tracing) hv.add_hvcall(101, pause_tracing) + +trace_device("/arm-io/sgx", True) +#trace_device("/arm-io/mcc", True) +node = hv.adt["/arm-io/sgx"] +addr, size = node.get_reg(0) +hv.trace_range(irange(addr, 0x1000000), TraceMode.SYNC, name="sgx") +hv.trace_range(irange(addr + 0x2408000, 0x4000), TraceMode.OFF, name="sgx")