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

Issue 317950043: i#2006 generalize drcachesim: set drmemtrace dr_client_main as a weak symbol

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

Description

Commit log for first patchset: --------------- i#2006 generalize drcachesim: set drmemtrace dr_client_main as a weak symbol For the case of the application statically linking drmemtrace for profiling, we want to use drmemtrace as the default client and support other profiling clients. We sets dr_client_main in drmemtrace as a weak symbol so that it can be replaced if necessary by linking another client. ---------------

Patch Set 1 #

Patch Set 2 : add dr_client_main_memtrace #

Total comments: 8

Patch Set 3 : update comment #

Patch Set 4 : Committed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -1 line) Patch
M clients/drcachesim/tracer/tracer.cpp View 1 2 3 2 chunks +18 lines, -1 line 0 comments Download

Messages

Total messages: 7
zhaoqin
7 years, 5 months ago (2016-11-21 19:27:47 UTC) #1
zhaoqin
Commit log for latest patchset: --------------- i#2006 generalize drcachesim: set drmemtrace dr_client_main as a weak ...
7 years, 4 months ago (2016-12-01 16:32:49 UTC) #2
bruening
I have several comments about this being very specific and manual and whether it should ...
7 years, 4 months ago (2016-12-01 22:44:25 UTC) #3
bruening
https://codereview.appspot.com/317950043/diff/20001/clients/drcachesim/tracer/tracer.cpp File clients/drcachesim/tracer/tracer.cpp (right): https://codereview.appspot.com/317950043/diff/20001/clients/drcachesim/tracer/tracer.cpp#newcode813 clients/drcachesim/tracer/tracer.cpp:813: dr_client_main_memtrace(client_id_t id, int argc, const char *argv[]) If we ...
7 years, 4 months ago (2016-12-01 22:44:32 UTC) #4
zhaoqin
https://codereview.appspot.com/317950043/diff/20001/clients/drcachesim/tracer/tracer.cpp File clients/drcachesim/tracer/tracer.cpp (right): https://codereview.appspot.com/317950043/diff/20001/clients/drcachesim/tracer/tracer.cpp#newcode813 clients/drcachesim/tracer/tracer.cpp:813: dr_client_main_memtrace(client_id_t id, int argc, const char *argv[]) On 2016/12/01 ...
7 years, 4 months ago (2016-12-02 16:25:36 UTC) #5
zhaoqin
Commit log for latest patchset: --------------- i#2006 generalize drcachesim: set drmemtrace dr_client_main as a weak ...
7 years, 4 months ago (2016-12-02 16:29:28 UTC) #6
zhaoqin
7 years, 4 months ago (2016-12-06 13:37:46 UTC) #7
Committed as
https://github.com/DynamoRIO/dynamorio/commit/2f7bebcc36b52a3a321676c6af9b070...

Final commit log: 
---------------
i#2006 generalize drcachesim: set drmemtrace dr_client_main as a weak symbol

Adds drmemtrace_client_main as the real drmemtrace initialization
function.

Sets dr_client_main as a weak symbol so that it can be replaced in the
case of the application statically linking multiple clients.

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

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