Check trace

From sebastianbiallas/pearpc · View interactive version

Check trace is an AI agent skill from the GitHub repository sebastianbiallas/pearpc. Analyze the JIT dispatch trace to diagnose boot stalls or crashes

How to use this skill

Skill file

Check JIT Dispatch Trace

Analyze jitc_trace.log for the pattern or address $ARGUMENTS.

If no argument, check the tail of the trace to diagnose what the CPU is doing.

Steps

  1. Check trace tail (last 30 lines):

```

tail -30 jitc_trace.log

```

  1. Identify the pattern:
  1. Count exception dispatches:

```

grep -c 'pa=00000300' jitc_trace.log # DSI count

grep -c 'pa=00000900' jitc_trace.log # DEC count

grep -c 'pa=00000c00' jitc_trace.log # SC count

```

  1. If argument is a hex address, search for dispatches to/from that address:

```

grep 'pa=ADDRESS\|ea=ADDRESS' jitc_trace.log | head -20

```

  1. Check DEC timer status:

```

grep '\[DEC\]' BOOT_LOG | tail -5

```

  1. Check WATCH events:

```

grep '\[WATCH\]' BOOT_LOG | tail -10

```

Key fields in trace lines

DISPATCH ea=EFFECTIVE_ADDR pa=PHYSICAL_ADDR msr=MSR_VALUE
SEQ_NUM pc=PA msr=MSR cr=CR lr=LR ctr=CTR r0=R0 r1=SP r2=R2 r3=R3 r4=R4 r5=R5 dec=DEC
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.