Vitaliy Cherepanov [Fri, 2 Aug 2013 06:56:04 +0000 (10:56 +0400)]
[FIX] fix build with out DEVICE_ONLY cpp flag
Vitaliy Cherepanov [Thu, 1 Aug 2013 12:01:01 +0000 (16:01 +0400)]
Merge branch 'swap_protocol' of 106.109.8.71:/srv/git/sdk/dynamic-analysis-manager into swap_protocol
Conflicts:
daemon/sys_stat.c
Vitaliy Cherepanov [Thu, 1 Aug 2013 11:44:25 +0000 (15:44 +0400)]
[IMPROVE] data files for generation MSG_SYSTEM are open permanetly
- open files in init_system_file_descriptors
- files descriptors are in daemon.fd structure
Nikita Kalyazin [Thu, 1 Aug 2013 05:54:55 +0000 (09:54 +0400)]
[PROTO] flush buffer every time msg system is stored
Nikita Kalyazin [Tue, 30 Jul 2013 14:25:32 +0000 (18:25 +0400)]
Merge branch 'swap_protocol' of ssh://106.109.8.71/srv/git/sdk/dynamic-analysis-manager into swap_protocol
Nikita Kalyazin [Tue, 30 Jul 2013 14:23:25 +0000 (18:23 +0400)]
[PROTO] implement new features layout
Nikita Kalyazin [Tue, 30 Jul 2013 14:22:27 +0000 (18:22 +0400)]
[STYLE] terminate_all_target: alignment
Nikita Kalyazin [Tue, 30 Jul 2013 14:21:42 +0000 (18:21 +0400)]
[CLEAN] remove obsolete comments
Nikita Kalyazin [Tue, 30 Jul 2013 14:20:47 +0000 (18:20 +0400)]
[FIX] add check on dynamic data in MSG_SYSTEM
Nikita Kalyazin [Tue, 30 Jul 2013 14:19:58 +0000 (18:19 +0400)]
[FIX] pack_* macros
Vitaliy Cherepanov [Tue, 30 Jul 2013 12:46:20 +0000 (16:46 +0400)]
[FIX] audio status file name change (for MSG_SYSTEM)
Vitaliy Cherepanov [Mon, 29 Jul 2013 14:09:42 +0000 (18:09 +0400)]
[PROTO] MSG_SYSTEM format changed
Vitaliy Cherepanov [Mon, 29 Jul 2013 11:48:11 +0000 (15:48 +0400)]
[FEATURE] get_partition_sector_size function added
Vitaliy Cherepanov [Mon, 29 Jul 2013 10:13:23 +0000 (14:13 +0400)]
Merge branch 'swap_protocol' of 106.109.8.71:/srv/git/sdk/dynamic-analysis-manager into swap_protocol
Vitaliy Cherepanov [Mon, 29 Jul 2013 10:09:27 +0000 (14:09 +0400)]
[FIX] file descriptor leak fix
- get_network_stat close desc added
Nikita Kalyazin [Mon, 29 Jul 2013 09:14:25 +0000 (13:14 +0400)]
[CLEAN] remove useless debug (DEBUG_GSI)
Nikita Kalyazin [Mon, 29 Jul 2013 09:03:41 +0000 (13:03 +0400)]
[PROTO] implement new feature flags
Nikita Kalyazin [Fri, 26 Jul 2013 14:11:42 +0000 (18:11 +0400)]
[PROTO] update da_command version
Vitaliy Cherepanov [Fri, 26 Jul 2013 08:16:38 +0000 (12:16 +0400)]
[FIX] implement disk read/write, network send/recv data to message system
Vitaliy Cherepanov [Thu, 25 Jul 2013 14:03:19 +0000 (18:03 +0400)]
[FIX] actual shared mem value in MSG_SYSTEM message
Vitaliy Cherepanov [Thu, 25 Jul 2013 09:22:24 +0000 (13:22 +0400)]
[REFACTOR] add functions start_app_launch_timer stop_app_launch_timer
Vitaliy Cherepanov [Wed, 24 Jul 2013 16:42:30 +0000 (20:42 +0400)]
[FIX] build fix
- sendACKToHost function now is public
Nikita Kalyazin [Wed, 24 Jul 2013 10:00:47 +0000 (14:00 +0400)]
Merge branch 'swap_protocol' of ssh://106.109.8.71/srv/git/sdk/dynamic-analysis-manager into swap_protocol
Nikita Kalyazin [Wed, 24 Jul 2013 10:00:02 +0000 (14:00 +0400)]
Merge branch 'swap_protocol' of ssh://106.109.8.71/srv/git/sdk/dynamic-analysis-manager into swap_protocol
Conflicts:
daemon/daemon.c
Vitaliy Cherepanov [Wed, 24 Jul 2013 09:27:38 +0000 (13:27 +0400)]
[CLEAN] sendACKCodeToHost function remove
- old string protocol function sendACKCodeToHost remove
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
Nikita Kalyazin [Wed, 24 Jul 2013 07:41:58 +0000 (11:41 +0400)]
Merge branch 'swap_protocol' of ssh://106.109.8.71/srv/git/sdk/dynamic-analysis-manager into swap_protocol
Nikita Kalyazin [Wed, 24 Jul 2013 07:37:02 +0000 (11:37 +0400)]
Merge singleton fix related changes into swap_protocol
Conflicts:
daemon/main.c
Dmitry Bogatov [Tue, 23 Jul 2013 10:33:51 +0000 (14:33 +0400)]
[FIX] Fix more compiler warnings
Dmitry Bogatov [Tue, 23 Jul 2013 10:33:50 +0000 (14:33 +0400)]
[STYLE] Remove all trailing whitespaces
Dmitry Bogatov [Tue, 23 Jul 2013 10:33:49 +0000 (14:33 +0400)]
[REFACTOR] Refactor epoll set initialization.
Dmitry Bogatov [Tue, 23 Jul 2013 10:33:48 +0000 (14:33 +0400)]
[REFACTOR] Refactor host server socket creation
Dmitry Bogatov [Tue, 23 Jul 2013 10:33:47 +0000 (14:33 +0400)]
[REFACTOR] Refactor target sockets and sigmask initialization
Dmitry Bogatov [Tue, 23 Jul 2013 10:33:46 +0000 (14:33 +0400)]
[FIX] Fix duplicate instance issue
Dmitry Bogatov [Tue, 23 Jul 2013 10:33:45 +0000 (14:33 +0400)]
[IMPROVE] Increase launch timeout
Reason: 6 seconds are not enough on emulator,
huge value poses no treat as long application
actually launches.
Dmitry Bogatov [Tue, 23 Jul 2013 10:33:44 +0000 (14:33 +0400)]
[CLEAN] Remove unused constant
Dmitry Bogatov [Tue, 23 Jul 2013 10:33:43 +0000 (14:33 +0400)]
[FIX] Fix compiler warnings
Dmitry Bogatov [Tue, 23 Jul 2013 10:33:42 +0000 (14:33 +0400)]
[REFACTOR] Simplify Makefile
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_*