[FIX] replay events timing 81/44181/2
authorVitaliy Cherepanov <v.cherepanov@samsung.com>
Fri, 17 Jul 2015 11:59:56 +0000 (14:59 +0300)
committerVitaliy Cherepanov <v.cherepanov@samsung.com>
Fri, 17 Jul 2015 12:56:12 +0000 (15:56 +0300)
Change-Id: I6a9b8a702955583566b69849df8aaea1a4d3600b
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
daemon/da_protocol.c
daemon/daemon.c

index c8d34e0..907458d 100644 (file)
@@ -1023,6 +1023,12 @@ static int process_msg_start(struct msg_buf_t *msg_control)
                goto send_ack;
        }
 
+       /* TODO move it back */
+       if (start_replay() != 0) {
+               LOGE("Cannot start replay thread\n");
+               goto send_ack;
+       }
+
        running_status_on(&prof_session);
 
        if (start_profiling() < 0) {
index e71f128..aaea1b6 100644 (file)
@@ -656,10 +656,6 @@ static int target_event_pid_handler(struct target *target)
                return -1;
        }
 
-       if (start_replay() != 0) {
-               LOGE("Cannot start replay thread\n");
-               return -1;
-       }
        /* posible need some process check right there before start_replay << */
 
        target->initial_log = 1;