Vitaliy Cherepanov [Wed, 24 Jul 2013 09:04:26 +0000 (13:04 +0400)]
[PROTO] daemon exit criteria change
- There should be only 2 cases, when the daemon exits:
- 1. If there is no connection from host during 5 min after launch, then
exit.
- 2. If the host disconnected.
- In all other cases daemon must report an error and continue the loop.
proto discussion on 2013/07/18
Vitaliy Cherepanov [Tue, 23 Jul 2013 12:22:55 +0000 (16:22 +0400)]
[FIX] response to control socket on ioctl error
- if ioctl_send_msg failed then send ACK to host with
error code ERR_CANNOT_START_PROFILING
Vitaliy Cherepanov [Tue, 23 Jul 2013 11:54:58 +0000 (15:54 +0400)]
Merge branch 'swap_protocol' of 106.109.8.71:/srv/git/sdk/dynamic-analysis-manager into swap_protocol
Vitaliy Cherepanov [Tue, 23 Jul 2013 11:53:07 +0000 (15:53 +0400)]
[FIX] transfer thread exit fix
- if splice is failed then close pipe and exit thread
Vyacheslav Cherkashin [Tue, 23 Jul 2013 07:05:06 +0000 (11:05 +0400)]
Merge branch 'swap_protocol' of 106.109.8.71:/srv/git/sdk/dynamic-analysis-manager into swap_protocol
Vyacheslav Cherkashin [Tue, 23 Jul 2013 06:56:06 +0000 (10:56 +0400)]
[PROTO] expand field 'use_features' 8 --> 16 byte
Nikita Kalyazin [Mon, 22 Jul 2013 11:07:16 +0000 (15:07 +0400)]
[PROTO] remove app type from process info
Dmitry Bogatov [Fri, 19 Jul 2013 13:49:59 +0000 (17:49 +0400)]
[REFACTOR] Simplify `initialize_log' function
Vitaliy Cherepanov [Mon, 22 Jul 2013 10:30:33 +0000 (14:30 +0400)]
[FIX] fix prevent error
- merge tizen 2.2 (commit
eba26853bd9fb9fa6b278541a9784e011e76b587)
Vitaliy Cherepanov [Mon, 22 Jul 2013 08:10:40 +0000 (12:10 +0400)]
[STYLE] some long code lines divided
Vitaliy Cherepanov [Mon, 22 Jul 2013 07:39:45 +0000 (11:39 +0400)]
[FIX] add getversion command in da_command
- merge (commit
953a7c778bee4ae07e42b6a9407c412d22965ead)
- add getversion command for future compatibility
- remove unnecessary command (runevent)
Vitaliy Cherepanov [Fri, 19 Jul 2013 14:13:16 +0000 (18:13 +0400)]
Vitaliy Cherepanov [Fri, 19 Jul 2013 14:11:01 +0000 (18:11 +0400)]
[FIX] tizen 2.2 merge
-change some capi related system info (commit
5804417c4554b592660c5b2830e5ca90046ae70d,
cb9a92e5db205f3f6fa26af18cf84e5c6082dec4,
a6398a8438a9003cbaef5e3e63c6eae20bc7cca6)
- some constants are not available anymore.
- SYSTEM_INFO_KEY_BLUETOOTH_SUPPORTED, SYSTEM_INFO_KEY_CAMERA_COUNT,
SYSTEM_INFO_KEY_GPS_SUPPORTED, SYSTEM_INFO_KEY_NETWORK_TYPE,
SYSTEM_INFO_KEY_WIFI_SUPPORTED
- we change this apis to other apis.
Vitaliy Cherepanov [Thu, 18 Jul 2013 16:35:24 +0000 (20:35 +0400)]
[FIX] change is_same_app_process function (commit
b075358bc9a451f6fd34ae33530e51529fcd4bd2)
- merge with tizen 2.2
- previously, in /proc/<pid>/cmdline, exe file and non-exe file is
treated as different process.
- now, we compare 'appPath' and '/proc/<pid>/cmdline' with the name to
remove the extensions
Vitaliy Cherepanov [Wed, 17 Jul 2013 16:55:52 +0000 (20:55 +0400)]
Merge branch 'swap_protocol' of 106.109.8.71:/srv/git/sdk/dynamic-analysis-manager into swap_protocol
Vitaliy Cherepanov [Wed, 17 Jul 2013 16:53:48 +0000 (20:53 +0400)]
[FIX] startup application time fix
- process info message start time field fix
Nikita Kalyazin [Tue, 16 Jul 2013 07:48:58 +0000 (11:48 +0400)]
Merge branch 'proto_1' into swap_protocol
Vitaliy Cherepanov [Mon, 15 Jul 2013 16:50:21 +0000 (20:50 +0400)]
[FIX] complile with DEB_PRINTBUF disabled fix
Nikita Kalyazin [Mon, 15 Jul 2013 15:59:02 +0000 (19:59 +0400)]
[IMPROVE] insmod/rmmod via start/stop scripts
Vitaliy Cherepanov [Mon, 15 Jul 2013 13:17:12 +0000 (17:17 +0400)]
[FIX] change LOGE definition
Vitaliy Cherepanov [Mon, 15 Jul 2013 11:48:02 +0000 (15:48 +0400)]
[FIX] by default enabled WRN and ERR debugs
- to enable debugs make target "debug"
Vitaliy Cherepanov [Mon, 15 Jul 2013 10:15:09 +0000 (14:15 +0400)]
Merge branch 'swap_protocol' of 106.109.8.71:/srv/git/sdk/dynamic-analysis-manager into swap_protocol
Vitaliy Cherepanov [Mon, 15 Jul 2013 10:11:16 +0000 (14:11 +0400)]
[FEATURE] add make target "nologs" for disabling LOGI("INF") logs
- use: in build section of swap-manager.spec replace make to make
nologs
- only warning and error message logs will be availible
Nikita Kalyazin [Mon, 15 Jul 2013 07:54:31 +0000 (11:54 +0400)]
[COPYRIGHT] updated authors
Nikita Kalyazin [Sun, 14 Jul 2013 17:58:05 +0000 (21:58 +0400)]
[IMPROVE] tune buffer size
Nikita Kalyazin [Sun, 14 Jul 2013 17:55:34 +0000 (21:55 +0400)]
[FEATURE] add send process info
Nikita Kalyazin [Sun, 14 Jul 2013 07:05:57 +0000 (11:05 +0400)]
[IMPROVE] add force stop for transfer thread
Vitaliy Cherepanov [Fri, 12 Jul 2013 14:28:59 +0000 (18:28 +0400)]
[CLEAN] ioctl_commands.h
Vitaliy Cherepanov [Fri, 12 Jul 2013 14:25:37 +0000 (18:25 +0400)]
[FIX] add beyond buffer parse checking
Vitaliy Cherepanov [Fri, 12 Jul 2013 12:05:57 +0000 (16:05 +0400)]
[FIX] ioctl send message fix
- ioctl defines changed
- ioctl call fixed
Vitaliy Cherepanov [Thu, 11 Jul 2013 16:21:04 +0000 (20:21 +0400)]
[FIX] replay events seq parse fix when enabled is 0
Vitaliy Cherepanov [Thu, 11 Jul 2013 13:18:20 +0000 (17:18 +0400)]
[COPYRIGHT] copyright update
Nikita Kalyazin [Wed, 10 Jul 2013 13:11:13 +0000 (17:11 +0400)]
[IMPROVE] handle absence of freq files
Nikita Kalyazin [Wed, 10 Jul 2013 13:10:29 +0000 (17:10 +0400)]
[IMPROVE] return 0 if data source file absents
Nikita Kalyazin [Wed, 10 Jul 2013 07:14:12 +0000 (11:14 +0400)]
[FIX] replay: us -> ns
Nikita Kalyazin [Wed, 10 Jul 2013 06:47:06 +0000 (10:47 +0400)]
[IMPROVE] add check for modules insert/remove
Nikita Kalyazin [Wed, 10 Jul 2013 05:26:37 +0000 (09:26 +0400)]
[RPM] rename dynamic-analysis-manager -> swap-manager
Changes:
- spec and manifest files renamed;
- spec: version 2.1.1 -> 3.0, description updated;
- manifest: domain name changed to swap.
Vitaliy Cherepanov [Mon, 8 Jul 2013 17:14:44 +0000 (21:14 +0400)]
[IMPROVE] exec application with timer check
- default waiting time is 6 sec
Vitaliy Cherepanov [Mon, 8 Jul 2013 12:30:36 +0000 (16:30 +0400)]
[FIX] segmentation fault on disconnet without stop message
Vitaliy Cherepanov [Mon, 8 Jul 2013 08:45:00 +0000 (12:45 +0400)]
[IMPROVE] add debugs for sampling and replay threads
- use: enable THREAD_SAMPLING_DEBUG and THREAD_REPLAY_DEBUG definitions
- default disabled
Nikita Kalyazin [Sun, 7 Jul 2013 10:10:26 +0000 (14:10 +0400)]
[IMPROVE] increase buffer size to 16 * 64Kb
Nikita Kalyazin [Sun, 7 Jul 2013 10:06:13 +0000 (14:06 +0400)]
[FIX] add check for system cpu freq
Nikita Kalyazin [Sun, 7 Jul 2013 10:05:42 +0000 (14:05 +0400)]
[FIX] add check for recv
Nikita Kalyazin [Sun, 7 Jul 2013 10:05:20 +0000 (14:05 +0400)]
[FIX] remove meaningless logs
Nikita Kalyazin [Sun, 7 Jul 2013 10:04:45 +0000 (14:04 +0400)]
[REFACTOR] remove useless free_sys_info
There is reset_system_info() doing exactly the same.
Nikita Kalyazin [Sun, 7 Jul 2013 10:03:59 +0000 (14:03 +0400)]
[FIX] add reset system info
Nikita Kalyazin [Sun, 7 Jul 2013 09:37:04 +0000 (13:37 +0400)]
Merge branch 'swap_protocol' of ssh://106.109.8.71/srv/git/sdk/dynamic-analysis-manager into swap_protocol
Nikita Kalyazin [Sun, 7 Jul 2013 09:34:59 +0000 (13:34 +0400)]
[FEATURE] ugly probe messages support
They will be sent by probe.so.
I added filtering for such messages and writing them to the buffer.
Thus, probe.so isn't writing to the buffer. Instead it sends probe
messages to manager.
Nikita Kalyazin [Sun, 7 Jul 2013 09:11:59 +0000 (13:11 +0400)]
[IMPROVE] transfer thread: add splice write result check
Vitaliy Cherepanov [Thu, 4 Jul 2013 16:13:38 +0000 (20:13 +0400)]
[FIX] ioctl fix.
- transport start,stop,config,swap_inst_add,swap_inst_remove messages
to driver
- cat replays events from start message before send to drv
- print buffer debug improved
Vitaliy Cherepanov [Thu, 4 Jul 2013 13:34:49 +0000 (17:34 +0400)]
[FIX] add swap_message_parser.ko to insert and remove daemon functions
Vitaliy Cherepanov [Thu, 4 Jul 2013 10:24:09 +0000 (14:24 +0400)]
[FIX] segmentaion fault
- try send corrupted data
Vitaliy Cherepanov [Thu, 4 Jul 2013 10:17:26 +0000 (14:17 +0400)]
[FIX] release allocated memory
- release sys_info structure in get_system_info
in case fail get some system information
Vitaliy Cherepanov [Thu, 4 Jul 2013 10:12:23 +0000 (14:12 +0400)]
[FIX] msg_t type change
- char *payload changed to payload[0]
Vitaliy Cherepanov [Wed, 3 Jul 2013 14:15:12 +0000 (18:15 +0400)]
Merge branch 'swap_protocol' of 106.109.8.71:/srv/git/sdk/dynamic-analysis-manager into swap_protocol
Conflicts:
daemon/da_protocol.c
daemon/transfer_thread.c
Nikita Kalyazin [Wed, 3 Jul 2013 13:49:46 +0000 (17:49 +0400)]
[FIX] duplicated events from sampling thread
Nikita Kalyazin [Wed, 3 Jul 2013 13:49:19 +0000 (17:49 +0400)]
[FEATURE] add reconfigure
Vitaliy Cherepanov [Wed, 3 Jul 2013 13:07:33 +0000 (17:07 +0400)]
[FUATERE] add ioctl send
- ioctl add
- debugs move to debug.c debug.h
Nikita Kalyazin [Wed, 3 Jul 2013 12:19:40 +0000 (16:19 +0400)]
[FEATURE] add on/off of cpu/memory and recording features
Also refactoring and style.
Nikita Kalyazin [Wed, 3 Jul 2013 11:31:55 +0000 (15:31 +0400)]
[REFACTOR] extract method: exec_app
Nikita Kalyazin [Wed, 3 Jul 2013 09:32:27 +0000 (13:32 +0400)]
[FIX] transfer thread warnings
Nikita Kalyazin [Wed, 3 Jul 2013 09:32:06 +0000 (13:32 +0400)]
[FIX] move replay_thread uninit
Nikita Kalyazin [Wed, 3 Jul 2013 09:31:40 +0000 (13:31 +0400)]
[FIX] warnings in system_info_get_value_*
Nikita Kalyazin [Wed, 3 Jul 2013 09:31:10 +0000 (13:31 +0400)]
[FIX] add send result check
Nikita Kalyazin [Wed, 3 Jul 2013 09:30:36 +0000 (13:30 +0400)]
[FIX] spontaneous crashes: wrong free
Nikita Kalyazin [Wed, 3 Jul 2013 09:29:06 +0000 (13:29 +0400)]
[REFACTOR] _msg_t -> msg_reply_t
Nikita Kalyazin [Wed, 3 Jul 2013 09:27:52 +0000 (13:27 +0400)]
[CLEAN] remove useless stuff
Nikita Kalyazin [Wed, 3 Jul 2013 07:38:50 +0000 (11:38 +0400)]
[FIX] add checks when starting transfer thread
Nikita Kalyazin [Wed, 3 Jul 2013 07:38:25 +0000 (11:38 +0400)]
[FIX] move sampling stop after terminate app
Nikita Kalyazin [Wed, 3 Jul 2013 07:12:52 +0000 (11:12 +0400)]
[FIX] add kill app before profiling
Nikita Kalyazin [Tue, 2 Jul 2013 14:56:35 +0000 (18:56 +0400)]
[FIX] target info: storage size mb -> b
Nikita Kalyazin [Tue, 2 Jul 2013 14:49:44 +0000 (18:49 +0400)]
[FIX] target info update
Nikita Kalyazin [Tue, 2 Jul 2013 14:48:18 +0000 (18:48 +0400)]
[FIX] get binary info (forgotten return id)
Nikita Kalyazin [Tue, 2 Jul 2013 10:09:53 +0000 (14:09 +0400)]
[CLEAN] da_protocol.c
Nikita Kalyazin [Tue, 2 Jul 2013 10:01:50 +0000 (14:01 +0400)]
[FIX] uninit functions for prof session
Nikita Kalyazin [Tue, 2 Jul 2013 09:59:31 +0000 (13:59 +0400)]
[FIX] func count of args + args -> args (string)
Proto change from 2013/07/02
Dmitry Bogatov [Tue, 2 Jul 2013 08:45:19 +0000 (12:45 +0400)]
[IMPROVE] install path: heuristic for Win like paths
Dmitry Bogatov [Tue, 2 Jul 2013 08:43:41 +0000 (12:43 +0400)]
[FEATURE] install path extraction
Nikita Kalyazin [Tue, 2 Jul 2013 07:55:04 +0000 (11:55 +0400)]
[FEATURE] add MSG_TERMINATE generation
Nikita Kalyazin [Tue, 2 Jul 2013 07:54:23 +0000 (11:54 +0400)]
[FIX] us -> ns + refactoring
Nikita Kalyazin [Tue, 2 Jul 2013 07:23:22 +0000 (11:23 +0400)]
[FIX] replay thread cancellation
Also:
- build warnings;
- start and stop when primary app appears and disappears.
Nikita Kalyazin [Tue, 2 Jul 2013 07:23:08 +0000 (11:23 +0400)]
[FIX] update todos
Nikita Kalyazin [Tue, 2 Jul 2013 07:22:33 +0000 (11:22 +0400)]
[FIX] transfer thread minor fixes
Nikita Kalyazin [Tue, 2 Jul 2013 07:21:51 +0000 (11:21 +0400)]
[FIX] error return values
Nikita Kalyazin [Mon, 1 Jul 2013 16:03:36 +0000 (20:03 +0400)]
[FIX] multistart fix (mostly transfer thread)
- removed redundant terminate_all notifications (though one of them
still somehow comes to our daemonLoop() as "unknown socket";
- added blocking reading from buffer at first;
- do not exit daemonLoop() after stop command coming.
Nikita Kalyazin [Mon, 1 Jul 2013 16:02:36 +0000 (20:02 +0400)]
[FIX] more correct modules removal
Nikita Kalyazin [Mon, 1 Jul 2013 16:02:09 +0000 (20:02 +0400)]
[FIX] remove text send to host
Nikita Kalyazin [Mon, 1 Jul 2013 16:00:30 +0000 (20:00 +0400)]
[FIX] transfer thread minor fixes
Nikita Kalyazin [Mon, 1 Jul 2013 15:59:02 +0000 (19:59 +0400)]
[FIX] memory related fd leak
Nikita Kalyazin [Mon, 1 Jul 2013 15:58:25 +0000 (19:58 +0400)]
[FIX] replay thread reset
Nikita Kalyazin [Mon, 1 Jul 2013 15:57:58 +0000 (19:57 +0400)]
[FIX] recover mistakenly deleted array
Nikita Kalyazin [Mon, 1 Jul 2013 06:06:28 +0000 (10:06 +0400)]
[FIX] remove debug print
Nikita Kalyazin [Mon, 1 Jul 2013 06:06:14 +0000 (10:06 +0400)]
[FIX] Increase subbuf size
Nikita Kalyazin [Mon, 1 Jul 2013 06:05:38 +0000 (10:05 +0400)]
[FIX] Add forgotten transfer thread
Nikita Kalyazin [Sun, 30 Jun 2013 14:38:42 +0000 (18:38 +0400)]
[FIX] add transfer thread (works with real buffer)
Nikita Kalyazin [Sun, 30 Jun 2013 12:55:14 +0000 (16:55 +0400)]
Nikita Kalyazin [Sun, 30 Jun 2013 12:54:38 +0000 (16:54 +0400)]
[FIX] add insert buffer modules + refactor
Nikita Kalyazin [Sun, 30 Jun 2013 12:42:01 +0000 (16:42 +0400)]
[REFACTOR] separate buffer code
Nikita Kalyazin [Sun, 30 Jun 2013 11:27:15 +0000 (15:27 +0400)]
[FIX] replay + refactoring
Nikita Kalyazin [Sun, 30 Jun 2013 09:38:39 +0000 (13:38 +0400)]
[FIX] add wrapper for replay thread
In
6275401408a39c745c7c800539251178af988052 it executed in main thread