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

Issue 272590043: i#1734 drfuzz: refact pre_fuzz, post_fuzz

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

Description

Commit log for first patchset: --------------- i#1734 drfuzz: refact pre_fuzz, post_fuzz - extract shadow state save/restore code from pre/post_fuzz into shadow_state_* routines - extract mutator code from pre/post_fuzz into fuzzer_mutator_* routines - move shadow_state_restore from post_fuzz to pre_fuzz ---------------

Patch Set 1 #

Patch Set 2 : change refact to refactor #

Total comments: 12

Patch Set 3 : Committed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -134 lines) Patch
M drmemory/fuzzer.c View 1 2 10 chunks +148 lines, -134 lines 0 comments Download

Messages

Total messages: 9
zhaoqin
8 years, 5 months ago (2015-11-20 21:43:48 UTC) #1
bruening
On 2015/11/20 21:43:48, zhaoqin wrote: > i#1734 drfuzz: refact pre_fuzz, post_fuzz "refact"?
8 years, 5 months ago (2015-11-20 21:51:40 UTC) #2
zhaoqin
Commit log for latest patchset: --------------- i#1734 drfuzz: refactor pre_fuzz, post_fuzz - extract shadow state ...
8 years, 5 months ago (2015-11-20 23:09:10 UTC) #3
bruening
On 2015/11/20 23:09:10, zhaoqin wrote: > Commit log for latest patchset: > --------------- > i#1734 ...
8 years, 5 months ago (2015-11-23 15:31:13 UTC) #4
zhaoqin
On 2015/11/23 15:31:13, bruening wrote: > On 2015/11/20 23:09:10, zhaoqin wrote: > > Commit log ...
8 years, 5 months ago (2015-11-23 15:58:32 UTC) #5
bruening
On 2015/11/23 15:58:32, zhaoqin wrote: > On 2015/11/23 15:31:13, bruening wrote: > > On 2015/11/20 ...
8 years, 5 months ago (2015-11-23 19:49:30 UTC) #6
bruening
LGTM w/ comments https://codereview.appspot.com/272590043/diff/20001/drmemory/fuzzer.c File drmemory/fuzzer.c (left): https://codereview.appspot.com/272590043/diff/20001/drmemory/fuzzer.c#oldcode990 drmemory/fuzzer.c:990: shadow_state_restore_stack_frame(&mc, shadow); I don't quite get ...
8 years, 5 months ago (2015-11-23 20:29:36 UTC) #7
zhaoqin
On 2015/11/23 19:49:30, bruening wrote: > On 2015/11/23 15:58:32, zhaoqin wrote: > > On 2015/11/23 ...
8 years, 5 months ago (2015-11-23 20:41:31 UTC) #8
zhaoqin
8 years, 5 months ago (2015-11-24 22:19:08 UTC) #9
Committed as
https://github.com/DynamoRIO/drmemory/commit/63581ad7bbf88be75045d40e4e6dfe0b...

Final commit log: 
---------------
i#1734 drfuzz: refactor pre_fuzz, post_fuzz

- remove shadow_config_t
- update shadow_state_save_stack_frame to save both arg and return slots
- update shadow_state_restore_stack_frame to restore both arg and return slots
- extract shadow state save code from pre_fuzz into shadow_state_init
- extract/merge shadow state restore code from pre_fuzz and post_fuzz
  into shadow_state_restore
- call shadow_state_restore from pre_fuzz only
- extract shadow state cleanup code from post_fuzz into shadow_state_exit
- extract mutator code from pre/post_fuzz into fuzzer_mutator_* routines

Review-URL: https://codereview.appspot.com/272590043
---------------
Sign in to reply to this message.

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