cpu_history
Access the CPU execution history ring buffer to retrieve recent program counter traces and manage recording actions like enable, start, and stop.
Instructions
Query the CPU execution history ring buffer (ZRCP cpu-history). History must be enabled and started first (action=enable then action=start). action=get returns a recent PC trace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | History action. get = recent PC trace (cpu-history get-pc); get-at/get-extended = registers at an index; size = element count; enable/disable/start/stop/clear manage recording. | get |
| start | No | Start position / index (0 = most recent). | |
| items | No | Number of items to return (get action only). |