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

Issue 317080043: i#1982 bbbuf.c: Fixes incorrect wrapping

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

Description

Commit log for first patchset: --------------- i#1982 bbbuf.c: Fixes incorrect wrapping Fixes the incorrect wrapping on the buffer by bbbuf.c. Previously it used a uqadd16, which saturates instead of wraps, resulting in the buffer never wrapping. We now use drx_buf which optimizes for buffers of 16KB to produce the same instrumentation. Also optimizes drx_buf to fast-fail any signal handlers if only the optimized circular buffer has been created. Fixes #1982 ---------------

Patch Set 1 #

Total comments: 12

Patch Set 2 : Committed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -127 lines) Patch
M api/samples/CMakeLists.txt View 1 chunk +1 line, -1 line 0 comments Download
M api/samples/bbbuf.c View 1 7 chunks +28 lines, -125 lines 0 comments Download
M ext/drx/drx_buf.c View 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 4
toshi
7 years, 3 months ago (2017-01-11 08:11:59 UTC) #1
bruening
LGTM w/ suggestions for more comments and some unused code removal https://codereview.appspot.com/317080043/diff/1/api/samples/bbbuf.c File api/samples/bbbuf.c (right): ...
7 years, 3 months ago (2017-01-11 17:18:25 UTC) #2
toshi
https://codereview.appspot.com/317080043/diff/1/api/samples/bbbuf.c File api/samples/bbbuf.c (right): https://codereview.appspot.com/317080043/diff/1/api/samples/bbbuf.c#newcode54 api/samples/bbbuf.c:54: #define MINSERT instrlist_meta_preinsert On 2017/01/11 17:18:25, bruening wrote: > ...
7 years, 3 months ago (2017-01-11 18:46:12 UTC) #3
toshi
7 years, 3 months ago (2017-01-11 19:05:11 UTC) #4
Committed as
https://github.com/DynamoRIO/dynamorio/commit/2380ed9e72b56acd07b51956d3b201c...

Final commit log: 
---------------
i#1982 bbbuf.c: Fixes incorrect wrapping

Fixes the incorrect wrapping on the buffer by bbbuf.c. Previously it
used a uqadd16, which saturates instead of wraps, resulting in the
buffer never wrapping. We now use drx_buf which optimizes for buffers of
16KB to produce the same instrumentation.

Also optimizes drx_buf to fast-fail any signal handlers if only the
optimized circular buffer has been created.

Fixes #1982

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

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