Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Issue 2790403002: [perf-prof] Fix erroneous code offsets in unwinding info (Closed)

Created:
3 years, 8 months ago by Pierre Langlois
Modified:
3 years, 8 months ago
Reviewers:
Jarin, danno
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[perf-prof] Fix erroneous code offsets in unwinding info The unwinding information we emit wrongly encodes code locations as relative offsets. If we look at the .eh_frame section of shared object generated by "perf inject" using "objdump -g": ~~~ 00000000 0000000000000018 00000000 CIE (snip) 0000001c 0000000000000028 00000020 FDE cie=00000000 pc=fffffffffffffee8..00000000000017f8 (snip) 00000048 ZERO terminator ~~~ We can see the range that the FDE entry covers is incorrect, it should point to where the .text section is, at address 0x40 on a 64-bit architecture. The reason for this was that the PerfJitLogger logs a code size that is different from the one we've used when encoding the unwinding information. The logger will ignore the safepoint table while the unwinding info assumes it is part of the code. BUG= Review-Url: https://codereview.chromium.org/2790403002 Cr-Commit-Position: refs/heads/master@{#44378} Committed: https://chromium.googlesource.com/v8/v8/+/21f064fcdceb162524ab1bc5ed2b8ff6a803c7b4

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M src/compiler/code-generator.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M src/perf-jit.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (5 generated)
Pierre Langlois
3 years, 8 months ago (2017-04-04 13:08:16 UTC) #3
danno
Thanks for the patch! Nice catch. Kudos for digging into the perf support and fixing ...
3 years, 8 months ago (2017-04-04 13:14:05 UTC) #4
Pierre Langlois
On 2017/04/04 13:14:05, danno wrote: > Thanks for the patch! Nice catch. Kudos for digging ...
3 years, 8 months ago (2017-04-04 13:21:45 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2790403002/1
3 years, 8 months ago (2017-04-04 13:22:03 UTC) #7
commit-bot: I haz the power
3 years, 8 months ago (2017-04-04 14:24:55 UTC) #10
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/v8/v8/+/21f064fcdceb162524ab1bc5ed2b8ff6a80...

Powered by Google App Engine
This is Rietveld 408576698