Closed Bug 1442536 Opened 7 years ago Closed 6 months ago

ARM64 simulator: Implement single-step profiling

Categories

(Core :: JavaScript Engine: JIT, enhancement, P3)

ARM64
All
enhancement

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: lth, Assigned: yury)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Single-step profiling is used by several of the test cases and we can probably implement this fairly easily in the simulator (it is currently available on ARM and MIPS64). Rough work order: - enable in shell/jsshell.h (easy) - need hooks to read registers in js.cpp in SingleStepCallback (easy) - support single-stepping in simulator itself (a bit harder) - unknown wrinkles
Hardware: All → ARM64
Blocks: 1445162
No longer depends on: Rabaldr-ARM64
Attached file arm64.gdb

For your information, I do not think this is necessary. I have been debugging using the simulator with the following gdb file to be sourced when I start debugging a process with the ARM64 simulator and this works like a charm. The only trick is that to make it work with rr, you have to use rcc instead of rc.

This file adds a breakpoint at the location where the simulator is stepping, and enabling/disabling and displays the ARM64 instruction each time. The value of the registers are made available in the $x__ variables.

If needed we can move this file in the tree for a better debugging experience, but I do not think we need to add some interactive mode as part of the Simulator. From my experience, these interactive mode are worse than any integrated experience within gdb.

Since we all got ARM64 devices on hand, and the arm64.gdb script from the previous comment gives us enough tooling on top of the simulator, the simulator profiling (tracing) is no longer necessary.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME

We need this (for wasm stuff). I'll reopen it.

Assignee: nobody → ydelendik
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Attachment #9408268 - Attachment description: WIP: Bug 1442536 - Implement single-step profiling for arm64 → Bug 1442536 - Implement single-step profiling for arm64. r?jandem
Pushed by ydelendik@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/58b486985f5e Implement single-step profiling for arm64. r=jandem
Status: REOPENED → RESOLVED
Closed: 6 years ago6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: