Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions lnt/server/ui/static/lnt_profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,16 @@ InstructionSetParser.prototype = {
// TODO: add all control-flow-changing instructions.
],

RISCVJumpTargetRegexps: [
// (regexp, noFallThru?)
// branch conditional:
[new RegExp("^\\s*b[a-z]+\\s+.*(0x[0-9a-f]+)\\s+<.+>"), false],
// jumps:
[new RegExp("^\\s*(?:jal|j|call|tail)\\s+.*(0x[0-9a-f]+)\\s+<.+>"), true],
// indirect jumps:
[new RegExp("^\\s*(?:jalr|jr|ret)"), true]
],

X86_64JumpTargetRegexps: [
// (regexp, noFallThru?)
// branch conditional:
Expand Down Expand Up @@ -513,6 +523,9 @@ Profile.prototype = {
else if (this.instructionSet == 'aarch32t32')
instructionParser = new InstructionSetParser(
InstructionSetParser.prototype.AArch32T32JumpTargetRegexps);
if (this.instructionSet == 'riscv')
instructionParser = new InstructionSetParser(
InstructionSetParser.prototype.RISCVJumpTargetRegexps);
else if (this.instructionSet == 'x86_64')
instructionParser = new InstructionSetParser(
InstructionSetParser.prototype.X86_64JumpTargetRegexps);
Expand Down
1 change: 1 addition & 0 deletions lnt/server/ui/templates/v4_profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ <h3>Performance profile: {{ test.name }}
<option value="cfg-aarch64">Control-Flow Graph (AArch64)</option>
<option value="cfg-aarch32t32">Control-Flow Graph (AArch32-T32)</option>
<option value="cfg-aarch32a32">Control-Flow Graph (AArch32-A32)</option>
<option value="cfg-riscv">Control-Flow Graph (RISC-V)</option>
<option value="cfg-x86_64">Control-Flow Graph (X86-64)</option>
</select>
</div>
Expand Down