forked from OSchip/llvm-project
[msandr] Remove std::string in dr_init for optimized hybrid execution.
Patch by Qin Zhao. llvm-svn: 197029
This commit is contained in:
parent
638a424b56
commit
88adc5e815
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue