[compiler-rt] r197029 - [msandr] Remove std::string in dr_init for optimized hybrid execution.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Wed Dec 11 03:36:05 PST 2013


Author: eugenis
Date: Wed Dec 11 05:36:05 2013
New Revision: 197029

URL: http://llvm.org/viewvc/llvm-project?rev=197029&view=rev
Log:
[msandr] Remove std::string in dr_init for optimized hybrid execution.

Patch by Qin Zhao.

Modified:
    compiler-rt/trunk/lib/msandr/msandr.cc

Modified: compiler-rt/trunk/lib/msandr/msandr.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msandr/msandr.cc?rev=197029&r1=197028&r2=197029&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msandr/msandr.cc (original)
+++ compiler-rt/trunk/lib/msandr/msandr.cc Wed Dec 11 05:36:05 2013
@@ -792,6 +792,8 @@ DR_EXPORT void dr_init(client_id_t id) {
   drmgr_init();
   drutil_init();
 
+#ifndef MSANDR_NATIVE_EXEC
+  // We should use drconfig to ignore these applications.
   std::string app_name = dr_get_application_name();
   // This blacklist will still run these apps through DR's code cache.  On the
   // other hand, we are able to follow children of these apps.
@@ -802,6 +804,7 @@ DR_EXPORT void dr_init(client_id_t id) {
       app_name == "sh" || app_name == "true" || app_name == "exit" ||
       app_name == "yes" || app_name == "echo")
     return;
+#endif /* !MSANDR_NATIVE_EXEC */
 
   drsys_options_t ops;
   memset(&ops, 0, sizeof(ops));





More information about the llvm-commits mailing list