summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaliy Cherepanov <v.cherepanov@samsung.com>2014-05-13 17:24:03 +0400
committerVitaliy Cherepanov <v.cherepanov@samsung.com>2014-05-13 17:24:03 +0400
commit6df27ea139a40fbe792f1c4fdcbd4daed4921d3f (patch)
tree8170124efe97edd680159b4aacfeace203cdc3d6
parent423fe95b84ad04aa831b8a41f3a307a19455e12e (diff)
downloadswap-manager-6df27ea139a40fbe792f1c4fdcbd4daed4921d3f.tar.gz
swap-manager-6df27ea139a40fbe792f1c4fdcbd4daed4921d3f.tar.bz2
swap-manager-6df27ea139a40fbe792f1c4fdcbd4daed4921d3f.zip
[FIX] LD_PRELOAD for 3 app type (common app)
Change-Id: I09138e7792ee0deec8f302301041b0bad92f4ac9 Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
-rw-r--r--daemon/utils.c2
-rw-r--r--daemon/utils.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/daemon/utils.c b/daemon/utils.c
index 6bf8bf4..a2c1a28 100644
--- a/daemon/utils.c
+++ b/daemon/utils.c
@@ -174,7 +174,7 @@ int exec_app_common(const char* exec_path)
return -1;
}
- sprintf(command, "%s %s", DA_PRELOAD_OSP, exec_path);
+ sprintf(command, "%s %s", DA_PRELOAD_TIZEN, exec_path);
LOGI("cmd: %s\n", command);
pid = fork();
diff --git a/daemon/utils.h b/daemon/utils.h
index de4dea1..7f1f770 100644
--- a/daemon/utils.h
+++ b/daemon/utils.h
@@ -48,9 +48,7 @@ extern "C" {
#define WRT_LAUNCHER_KILL "-k"
#define LAUNCH_APP_SDK "__AUL_SDK__"
#define DA_PRELOAD_EXEC "DYNAMIC_ANALYSIS"
-#define DA_PRELOAD(AppType) AppType ? DA_PRELOAD_OSP : DA_PRELOAD_TIZEN
#define DA_PRELOAD_TIZEN "LD_PRELOAD=/usr/lib/da_probe_tizen.so"
-#define DA_PRELOAD_OSP "LD_PRELOAD=/usr/lib/da_probe_osp.so"
#define BATT_LOG_FILE "/home/developer/sdk_tools/da/battery/"
#define SHELL_CMD "/bin/sh"