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

Issue 317090043: i#1834 memval: Adds memval sample

Can't Edit
Can't Publish+Mail
Start Review
Created:
7 years, 3 months ago by toshi
Modified:
7 years, 2 months ago
Reviewers:
toshi.piazza, edmund.grimley.evans, bruening
CC:
dynamorio-devs_googlegroups.com
Visibility:
Public.

Description

Commit log for first patchset: --------------- i#1834 memval: Adds memval sample Introduces a sample client which inserts instrumentation after the current instruction to dereference app memory, and to fill a per-thread buffer. Fixes #1834 ---------------

Patch Set 1 #

Total comments: 66

Patch Set 2 : Addresses reviewer concerns #

Patch Set 3 : Addresses optimization for gpr-sized writes only #

Total comments: 5

Patch Set 4 : Introduces correct load/store behavior in presence of E{BP,SI,DI} #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+591 lines, -7 lines) Patch
M api/samples/CMakeLists.txt View 1 2 chunks +2 lines, -1 line 0 comments Download
A api/samples/memval_simple.c View 1 2 1 chunk +438 lines, -0 lines 2 comments Download
M core/arch/arm/instr_create.h View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M core/arch/x86/instr_create.h View 1 2 3 1 chunk +10 lines, -0 lines 1 comment Download
M ext/drx/drx.h View 1 2 2 chunks +23 lines, -1 line 0 comments Download
M ext/drx/drx.c View 1 2 chunks +17 lines, -1 line 0 comments Download
M ext/drx/drx_buf.c View 1 2 3 3 chunks +91 lines, -4 lines 0 comments Download

Messages

Total messages: 23
toshi
7 years, 3 months ago (2017-01-12 12:04:44 UTC) #1
toshi
https://codereview.appspot.com/317090043/diff/1/api/samples/memval.c File api/samples/memval.c (right): https://codereview.appspot.com/317090043/diff/1/api/samples/memval.c#newcode222 api/samples/memval.c:222: dr_insert_clean_call(drcontext, ilist, where, (void *)memcpy, false, 3, Should we ...
7 years, 3 months ago (2017-01-12 12:12:57 UTC) #2
bruening
https://codereview.appspot.com/317090043/diff/1/api/samples/CMakeLists.txt File api/samples/CMakeLists.txt (right): https://codereview.appspot.com/317090043/diff/1/api/samples/CMakeLists.txt#newcode214 api/samples/CMakeLists.txt:214: add_sample_client(memval "memval.c;utils.c" "drmgr;drreg;drutil;drx") nit: align to match line below ...
7 years, 3 months ago (2017-01-12 20:31:50 UTC) #3
toshi
Responded to your immediate questions, and will mark Done to the style issues and comment ...
7 years, 3 months ago (2017-01-12 21:33:20 UTC) #4
bruening
https://codereview.appspot.com/317090043/diff/1/api/samples/memval.c File api/samples/memval.c (right): https://codereview.appspot.com/317090043/diff/1/api/samples/memval.c#newcode198 api/samples/memval.c:198: dr_restore_reg(drcontext, ilist, where, reg_tmp, slot_tmp); On 2017/01/12 21:33:20, toshi ...
7 years, 3 months ago (2017-01-12 23:11:01 UTC) #5
toshi
Done w/ all except the discussion on drx_buf_*_memcpy(). I'll write that up within the next ...
7 years, 3 months ago (2017-01-13 09:53:44 UTC) #6
toshi
Commit log for latest patchset: --------------- i#1834 memval: Adds memval sample Introduces a sample client ...
7 years, 3 months ago (2017-01-13 09:59:12 UTC) #7
bruening
https://codereview.appspot.com/317090043/diff/1/api/samples/memval.c File api/samples/memval.c (right): https://codereview.appspot.com/317090043/diff/1/api/samples/memval.c#newcode222 api/samples/memval.c:222: dr_insert_clean_call(drcontext, ilist, where, (void *)memcpy, false, 3, On 2017/01/13 ...
7 years, 3 months ago (2017-01-13 17:26:59 UTC) #8
bruening
https://codereview.appspot.com/317090043/diff/1/api/samples/memval.c File api/samples/memval.c (right): https://codereview.appspot.com/317090043/diff/1/api/samples/memval.c#newcode222 api/samples/memval.c:222: dr_insert_clean_call(drcontext, ilist, where, (void *)memcpy, false, 3, On 2017/01/13 ...
7 years, 3 months ago (2017-01-13 17:35:50 UTC) #9
toshi
On 2017/01/13 17:35:50, bruening wrote: > https://codereview.appspot.com/317090043/diff/1/api/samples/memval.c > File api/samples/memval.c (right): > > https://codereview.appspot.com/317090043/diff/1/api/samples/memval.c#newcode222 > ...
7 years, 3 months ago (2017-01-13 20:15:48 UTC) #10
toshi
Commit log for latest patchset: --------------- i#1834 memval: Adds memval sample Introduces a sample client ...
7 years, 3 months ago (2017-01-15 07:01:20 UTC) #11
toshi
Patch set message says it all, I implemented the optimization for gpr-sized writes instead of ...
7 years, 3 months ago (2017-01-15 07:24:35 UTC) #12
toshi
https://codereview.appspot.com/317090043/diff/40001/ext/drx/drx_buf.c File ext/drx/drx_buf.c (right): https://codereview.appspot.com/317090043/diff/40001/ext/drx/drx_buf.c#newcode695 ext/drx/drx_buf.c:695: /* This could happen if, for example we tried ...
7 years, 3 months ago (2017-01-16 01:55:43 UTC) #13
bruening
https://codereview.appspot.com/317090043/diff/40001/ext/drx/drx_buf.c File ext/drx/drx_buf.c (right): https://codereview.appspot.com/317090043/diff/40001/ext/drx/drx_buf.c#newcode653 ext/drx/drx_buf.c:653: insert_load(void *drcontext, instrlist_t *ilist, instr_t *where, On 2017/01/15 07:24:34, ...
7 years, 3 months ago (2017-01-16 20:22:51 UTC) #14
toshi
On 2017/01/16 20:22:51, bruening wrote: > https://codereview.appspot.com/317090043/diff/40001/ext/drx/drx_buf.c > File ext/drx/drx_buf.c (right): > > https://codereview.appspot.com/317090043/diff/40001/ext/drx/drx_buf.c#newcode653 > ...
7 years, 3 months ago (2017-01-18 04:17:14 UTC) #15
toshi
Commit log for latest patchset: --------------- i#1834 memval: Adds memval sample Introduces a sample client ...
7 years, 3 months ago (2017-01-18 04:23:27 UTC) #16
toshi
https://codereview.appspot.com/317090043/diff/60001/core/arch/x86/instr_create.h File core/arch/x86/instr_create.h (right): https://codereview.appspot.com/317090043/diff/60001/core/arch/x86/instr_create.h#newcode172 core/arch/x86/instr_create.h:172: * followed by a zextend. Oops, thinking about it, ...
7 years, 3 months ago (2017-01-18 04:25:19 UTC) #17
bruening
It's cleaner to separate each feature into its own CL: so the drx addition on ...
7 years, 3 months ago (2017-01-18 04:32:11 UTC) #18
toshi
On 2017/01/18 04:32:11, bruening wrote: > It's cleaner to separate each feature into its own ...
7 years, 3 months ago (2017-01-18 16:23:53 UTC) #19
Edmund.Grimley.Evans
https://codereview.appspot.com/317090043/diff/60001/api/samples/memval_simple.c File api/samples/memval_simple.c (right): https://codereview.appspot.com/317090043/diff/60001/api/samples/memval_simple.c#newcode142 api/samples/memval_simple.c:142: fprintf(data->logf, ""PFX": %s %2d %s\n", Putting no space between ...
7 years, 3 months ago (2017-01-19 09:15:26 UTC) #20
toshi
Derek: For memval Part 3, should I upload only the patchset related to drx_buf_insert_memcpy(), or ...
7 years, 3 months ago (2017-01-23 18:29:52 UTC) #21
bruening
On 2017/01/23 18:29:52, toshi wrote: > Derek: For memval Part 3, should I upload only ...
7 years, 3 months ago (2017-01-23 18:59:04 UTC) #22
toshi.piazza
7 years, 2 months ago (2017-02-13 05:53:47 UTC) #23
On 2017/01/23 18:59:04, bruening wrote:
> On 2017/01/23 18:29:52, toshi wrote:
> > Derek: For memval Part 3, should I upload only the patchset related to
> > drx_buf_insert_memcpy(), or should I upload all of memval_simple (i.e. this
> > patch w/o the zextend and drx padding stuff).
> 
> I guess it seems cleanest to have the drx_buf feature be separate with a test
of
> its own in suite/ and then have the new memval sample added in its own CL.  Of
> course that's easy for me to say, you're the one doing the work -- doesn't
seem
> so bad to combine them, but I would vote for separate.

Moved to GitHub UI: https://github.com/DynamoRIO/dynamorio/pull/2174
Sign in to reply to this message.

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