Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(9523)

Issue 278490043: i#1114 JIT optimization: cache consistency interface

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 4 months ago by Byron
Modified:
8 years, 4 months ago
Reviewers:
bruening
CC:
dynamorio-devs_googlegroups.com
Visibility:
Public.

Description

Commit log for first patchset: --------------- i#1114 JIT optimization: cache consistency interface Implements the annotations to un/manage a code area, and integrates the optimization with bb construction and vmarea management operations. ---------------

Patch Set 1 #

Patch Set 2 : fix enum alignment #

Total comments: 14

Patch Set 3 : Committed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -3 lines) Patch
M core/arch/interp.c View 2 chunks +6 lines, -0 lines 0 comments Download
M core/arch/x86/opcode.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M core/jit_opt.h View 1 chunk +6 lines, -0 lines 0 comments Download
M core/jit_opt.c View 1 2 2 chunks +32 lines, -2 lines 0 comments Download
M core/vmareas.h View 1 chunk +6 lines, -0 lines 0 comments Download
M core/vmareas.c View 1 2 9 chunks +69 lines, -1 line 0 comments Download

Messages

Total messages: 5
Byron
8 years, 4 months ago (2015-12-14 10:47:14 UTC) #1
Byron
Commit log for latest patchset: --------------- i#1114 JIT optimization: cache consistency interface Implements the annotations ...
8 years, 4 months ago (2015-12-14 10:51:08 UTC) #2
bruening
LGTM if fixed for ARM https://codereview.appspot.com/278490043/diff/20001/core/jit_opt.c File core/jit_opt.c (right): https://codereview.appspot.com/278490043/diff/20001/core/jit_opt.c#newcode16 core/jit_opt.c:16: LOG(GLOBAL, LOG_ANNOTATIONS, 1, Is ...
8 years, 4 months ago (2015-12-14 20:38:35 UTC) #3
Byron
Committed as https://github.com/DynamoRIO/dynamorio/commit/c11a8afb05da6750345c8e1f3728a467e77586aa Final commit log: --------------- i#1114 JIT optimization: cache consistency interface Implements the ...
8 years, 4 months ago (2015-12-15 00:08:20 UTC) #4
Byron
8 years, 4 months ago (2015-12-15 00:08:54 UTC) #5
https://codereview.appspot.com/278490043/diff/20001/core/jit_opt.c
File core/jit_opt.c (right):

https://codereview.appspot.com/278490043/diff/20001/core/jit_opt.c#newcode16
core/jit_opt.c:16: LOG(GLOBAL, LOG_ANNOTATIONS, 1,
On 2015/12/14 20:38:35, bruening wrote:
> Is 1 too low?

Done.

https://codereview.appspot.com/278490043/diff/20001/core/jit_opt.c#newcode31
core/jit_opt.c:31: LOG(GLOBAL, LOG_ANNOTATIONS, 1,
On 2015/12/14 20:38:34, bruening wrote:
> Is 1 too low?

Done.

https://codereview.appspot.com/278490043/diff/20001/core/jit_opt.c#newcode35
core/jit_opt.c:35: mutex_lock(&thread_initexit_lock);
On 2015/12/14 20:38:35, bruening wrote:
> Are annotations invoked straight from the cache?  If so, they are another new
> source of whereami==fcache running DR code, which will cause problems for
> prof_pcs even without a client.

Will fix in a separate CL by adding WHERE_CLEAN_CALLEE and setting it in the
clean call instrumentation (for -prof_pcs only).

https://codereview.appspot.com/278490043/diff/20001/core/vmareas.c
File core/vmareas.c (right):

https://codereview.appspot.com/278490043/diff/20001/core/vmareas.c#newcode468
core/vmareas.c:468: #define DEBUG_SIGILL_OPCODE 0x0b0f
On 2015/12/14 20:38:35, bruening wrote:
> This is x86-specific, and should be with the other raw sequences: add to
> RAW_OPCODE_ enum instead.

Done.

https://codereview.appspot.com/278490043/diff/20001/core/vmareas.c#newcode6277
core/vmareas.c:6277: vm_area_t *region;
On 2015/12/14 20:38:35, bruening wrote:
> Should this assert that -opt_jit was specified?

Done.

https://codereview.appspot.com/278490043/diff/20001/core/vmareas.c#newcode9005
core/vmareas.c:9005: *(ushort *) f->start_pc = DEBUG_SIGILL_OPCODE;
On 2015/12/14 20:38:35, bruening wrote:
> incorrect code for ARM

Done.

https://codereview.appspot.com/278490043/diff/20001/core/vmareas.c#newcode9159
core/vmareas.c:9159: *(ushort *) f->start_pc = DEBUG_SIGILL_OPCODE;
On 2015/12/14 20:38:35, bruening wrote:
> Ditto

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b