cpu_history
Retrieve recent PC traces from the CPU execution history ring buffer, with actions to enable, disable, start, stop, and clear recording.
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). |