Vitaliy Cherepanov [Tue, 15 Oct 2013 08:06:34 +0000 (12:06 +0400)]
[FIX] pid = -1 on message terminate
Change-Id: I18e64f3a7a1b930cb8b4016535566aa843f0c596
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Nikita Kalyazin [Fri, 11 Oct 2013 10:00:55 +0000 (14:00 +0400)]
[PROTO] message id update (starting from 0x0001)
Change-Id: I47d1c76e2f28f7e22d295ddbd5a981529133daa7
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Nikita Kalyazin [Fri, 11 Oct 2013 09:28:59 +0000 (13:28 +0400)]
[PROTO] energy: each sample contains diff value
Each system info calculates diff value (new - old) for every energy
paratemeter. Old value is stored in a static variable (which is not
good).
Change-Id: I41a0e2aa420123ee3058e017de1de9514826194f
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Anastasia Lyupa [Thu, 10 Oct 2013 10:49:13 +0000 (14:49 +0400)]
[PROTO] remove msg process info
it is done in modules since now
Change-Id: I18744c5ec729765dbec53b4ab5042703e2643060
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
Vitaliy Cherepanov [Thu, 10 Oct 2013 08:11:02 +0000 (12:11 +0400)]
[PROTO] library user space instrumentation are common for all applications
- convert new protocol to old format
in new protocol there are appinst list and libinst list
and libinst list is common for all app list
in old protocol there are differents libinst list for
each app
Change-Id: I1ac605b13a8c77afe598254d55f969f5b4d2dcc5
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Dmitry Bogatov [Mon, 30 Sep 2013 07:14:41 +0000 (11:14 +0400)]
[PROTO] Implement reading energy from sysfs
Change-Id: I5a81bede27bd0bd65a5190ded8693c22e18f9ef4
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
Dmitry Bogatov [Wed, 9 Oct 2013 06:18:14 +0000 (10:18 +0400)]
[PROTO] Add pid to MSG_TERMINATE
Change-Id: Ieace9f61cac0e6ba4ccd1ad995a10fe2d4f8eefb
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
Anastasia Lyupa [Wed, 9 Oct 2013 10:32:05 +0000 (14:32 +0400)]
[FIX] reconfigure: send new config to target
Change-Id: I6c7b8ec90cfa60574b3bd3604fa19b33e65fdb10
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
Dmitry Bogatov [Tue, 8 Oct 2013 12:39:02 +0000 (16:39 +0400)]
[PROTO] Update BINARY_INFO_ACK
Change-Id: I720ddff51d066fdd227b44bfe348d1d8b49b0d5a
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
Dmitry Bogatov [Tue, 8 Oct 2013 07:12:03 +0000 (11:12 +0400)]
[3RDPARTY] Add libmpd5-rfc sources
Change-Id: I627693401418fc8f4cbe0e574ce0e659da8a7407
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
Nikita Kalyazin [Sat, 5 Oct 2013 16:11:21 +0000 (20:11 +0400)]
[FIX] replay thread: wrong debug output
Change-Id: I2acde828d0d4b6a0bd9e8494331260fb27a5f979
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Nikita Kalyazin [Sat, 5 Oct 2013 16:09:40 +0000 (20:09 +0400)]
[FIX] replay event sequence: double free
This caused daemon crash when running with no replay enabled if there
was a launch with replay enabled.
Change-Id: Idf1628db3fdd65b6d0df418db07d2c3970b09e29
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Nikita Kalyazin [Sat, 5 Oct 2013 16:08:52 +0000 (20:08 +0400)]
[FIX] time parsing (fix sec/nsec order)
Change-Id: I6e24c39ce9ad53aa7eef6a3bdc2261d30944df23
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Alexander Aksenov [Wed, 2 Oct 2013 13:53:59 +0000 (17:53 +0400)]
[IMPROVE] Write to sysfs implement
Create new descriptor (user_ev_fd) in manager struct, now it points to
/sys/kernel/debug/swap/writer/raw
Change-Id: I38a06ae83d80b8856f168b30279678dddccfc177
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Nikita Kalyazin [Thu, 3 Oct 2013 06:19:47 +0000 (10:19 +0400)]
[PROTO] send MSG_STOP_ACK before everything stops
MSG_STOP_ACK is sent right after MSG_STOP received.
If an error occurs during stop it is reported via MSG_ERROR.
Change-Id: Ia012b4c27bd77a80ea0e939e6c4979ab4c186e81
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Anastasia Lyupa [Wed, 2 Oct 2013 08:52:27 +0000 (12:52 +0400)]
[FIX] replay for emulator
Change-Id: Ide9da0519b200e45965546f621959f3db5422dcd
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
Alexander Aksenov [Fri, 27 Sep 2013 12:44:29 +0000 (16:44 +0400)]
[FIX] Closing swap_driver descriptors
Now they are closed only in terminate() function
Change-Id: Ibfd480b68dd97d95b6e371d247db85049a7386c9
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Nikita Kalyazin [Thu, 26 Sep 2013 15:40:49 +0000 (19:40 +0400)]
[FIX] screenshot dir creation warning
Change-Id: I801a8de72727b963bedadf77be766f6401b82529
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Alexander Aksenov [Thu, 26 Sep 2013 13:34:47 +0000 (17:34 +0400)]
[IMPROVE] Add ioctl wake up command
Prevents joining sleeping thread
Change-Id: Ie414de362d8e532a6711acde935ca4306a92b1be
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Wed, 25 Sep 2013 10:19:33 +0000 (14:19 +0400)]
[FIX] Close file descriptors when removing modules
Was corrupted at
48e94a274ccbfdb1b45b007d85dd32722fe1e4ac
Change-Id: Ic29a52c991706e29f224d91cfc323ad05cbd685b
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Nikita Kalyazin [Wed, 18 Sep 2013 08:23:44 +0000 (12:23 +0400)]
[FIX] remove screenshot directory prior to creation
Solves this issue (which actually is a warning):
[ERR] (start_profiling):Failed to create directory for screenshot : errno(17)
Change-Id: Ic7c4dbaca43b7dd58c5583ce3aff81f6ae9144b1
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Vitaliy Cherepanov [Mon, 16 Sep 2013 10:04:32 +0000 (14:04 +0400)]
[FIX] daemon cannot finish
if controll and data sockets are connect
daemon cannot finish correctly if phone display is off
next errors occurs
[ERR] (get_system_info):Failed to update system cpu data
[ERR] (samplingThread):Cannot get system info
Change-Id: Ic19127d3461434d81daa7c06ee1eee6d04d00398
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Wed, 4 Sep 2013 13:24:50 +0000 (17:24 +0400)]
[FIX] manager update after tizen 2.2
- fix prevent violation (commit
c8594519fe420b787dadcda0d1767f29569e66ec)
Change-Id: If064e7f790308237a755a192717ac74b9031e047
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Wed, 4 Sep 2013 16:14:59 +0000 (20:14 +0400)]
[FIX] manager update after tizen 2.2 (54b4)
- terminate only first target process (commit
54b4cfc4978803c22f8795b2dd14c26c1aa582a9)
- related to https://bugs.tizendev.org/jira/browse/N_SE-47407
- If non-main process of multi-process application (ex. Internet)
gets terminated before main process, unexpected error
+occurs.
- When manager gets stop message from host, deliver stop message
only to main process.
Change-Id: Id1caf4a4c07c4304ab531bb8fba583dd7cc912bf
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Wed, 4 Sep 2013 12:22:20 +0000 (16:22 +0400)]
[FIX] MSG_PROCESS_INFO: zero low_address and high_address
- derefence symbolic link for exec path
- try to derefence <path>.exe then try <path>
Change-Id: If16490f743cec05083ec827aa3b797d7b39abeda
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Thu, 5 Sep 2013 09:25:29 +0000 (13:25 +0400)]
[FIX] absence msg of status files (video, audio, etc) become a warning
Change-Id: Ie4fd5063977f92d533c019a682c87e8d7a38bbb1
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Wed, 4 Sep 2013 14:31:33 +0000 (18:31 +0400)]
[FIX] manager update after tizen 2.2 (ee46)
fix prevent minor issues (commit
ee46f491cdd965beb2a93d93e69e3a9804de0f31)
Change-Id: Iad191d14204e3cf7773991cf51beff7668e77e66
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Wed, 4 Sep 2013 08:58:37 +0000 (12:58 +0400)]
[FIX] broken pipe or unclosed pipe on client extraordinary disconnect
- add cleanup for transfer_thread which close pipes
on thread terminate or exit from thread function on some internal
errors
Change-Id: I99074ae909bbb315eca2ce3bfcded50603345103
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Nikita Kalyazin [Mon, 2 Sep 2013 08:31:26 +0000 (12:31 +0400)]
[FIX] premature closing descriptors
If descriptors are closed when sampling thread exits they are not open
in the next tracing session.
Change-Id: Id21632c625e89def8b239538ca2258ea98bcf316
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Nikita Kalyazin [Wed, 28 Aug 2013 06:50:06 +0000 (10:50 +0400)]
[FIX] add 'b' type to check
Nikita Kalyazin [Wed, 28 Aug 2013 06:49:34 +0000 (10:49 +0400)]
Dmitry Bogatov [Tue, 27 Aug 2013 13:43:55 +0000 (17:43 +0400)]
[FIX] Enforce usage of debug binary for 'get_build_dir'
Nikita Kalyazin [Tue, 20 Aug 2013 05:42:34 +0000 (09:42 +0400)]
[FIX] wrong app arguments strip
Fix for
40fa9c37f665eb60442bf53ae5730f17ef6cda98.
If there are no arguments, invalid app path is returned.
Dmitry Bogatov [Mon, 19 Aug 2013 11:46:44 +0000 (15:46 +0400)]
[FIX] wrong pid in log
Dmitry Bogatov [Mon, 19 Aug 2013 05:16:23 +0000 (09:16 +0400)]
[IMPROVE] move modules removing to terminate function
Dmitry Bogatov [Mon, 19 Aug 2013 05:16:22 +0000 (09:16 +0400)]
[IMPROVE] eliminate global variable
Dmitry Bogatov [Mon, 19 Aug 2013 05:16:21 +0000 (09:16 +0400)]
[REFACTOR] set smack labels in separate function
Dmitry Bogatov [Mon, 19 Aug 2013 05:16:20 +0000 (09:16 +0400)]
[REFACTOR] replace code with standard function
Dmitry Bogatov [Mon, 19 Aug 2013 05:16:19 +0000 (09:16 +0400)]
[REFACTOR] split `targetEventHandler' into independent cases
Dmitry Bogatov [Mon, 19 Aug 2013 05:16:18 +0000 (09:16 +0400)]
[IMPROVE] call cleanup functions on signals
Dmitry Bogatov [Mon, 19 Aug 2013 05:16:17 +0000 (09:16 +0400)]
[REFACTOR] make function naming more consistent
Dmitry Bogatov [Mon, 19 Aug 2013 05:16:16 +0000 (09:16 +0400)]
[REFACTOR] improve function naming
Dmitry Bogatov [Mon, 19 Aug 2013 05:16:15 +0000 (09:16 +0400)]
[REFACTOR] remove level of indentaion in `main'
All error logging is already performed in initializeManager.
Nikita Kalyazin [Mon, 19 Aug 2013 06:57:57 +0000 (10:57 +0400)]
[IMPROVE] run app with arguments
It is possible to pass exe path with arguments, e.g:
"/usr/bin/expedite -e fb -t 1 -c 10".
They are stripped by strip_args() to check if the executable exists.
Vitaliy Cherepanov [Tue, 13 Aug 2013 07:43:00 +0000 (11:43 +0400)]
[FIX] daemon terminate on control msg protocol errors fix
Vitaliy Cherepanov [Mon, 12 Aug 2013 13:40:08 +0000 (17:40 +0400)]
[IMPROVE] add user space inst check in parse start message
Vitaliy Cherepanov [Mon, 12 Aug 2013 08:17:42 +0000 (12:17 +0400)]
[FIX] free allocated memory if parse user space fail
Nikita Kalyazin [Sat, 10 Aug 2013 08:02:40 +0000 (12:02 +0400)]
[FIX] feature check (forgotten function sampling)
fix to
5648cb29b512d81025a86fd4b1cd115ae7e6daec
Vitaliy Cherepanov [Fri, 9 Aug 2013 13:06:54 +0000 (17:06 +0400)]
[IMPROVE] message config check add
Vitaliy Cherepanov [Fri, 9 Aug 2013 07:36:55 +0000 (11:36 +0400)]
Merge branch 'swap_protocol' of 106.109.8.71:/srv/git/sdk/dynamic-analysis-manager into swap_protocol
Vitaliy Cherepanov [Fri, 9 Aug 2013 07:34:46 +0000 (11:34 +0400)]
[IMPROVE] remove unnecessary file descriptor checking
Nikita Kalyazin [Thu, 8 Aug 2013 14:35:19 +0000 (18:35 +0400)]
[FIX] app start time received in usecs
Vitaliy Cherepanov [Thu, 8 Aug 2013 14:50:37 +0000 (18:50 +0400)]
Merge branch 'swap_protocol' of 106.109.8.71:/srv/git/sdk/dynamic-analysis-manager into swap_protocol
Vitaliy Cherepanov [Thu, 8 Aug 2013 14:43:43 +0000 (18:43 +0400)]
[IMPROVE] message application information check add
Nikita Kalyazin [Thu, 8 Aug 2013 14:35:19 +0000 (18:35 +0400)]
[FIX] app start time received in usecs
Vitaliy Cherepanov [Wed, 7 Aug 2013 15:26:23 +0000 (19:26 +0400)]
Merge branch 'swap_protocol' of 106.109.8.71:/srv/git/sdk/dynamic-analysis-manager into swap_protocol
Vitaliy Cherepanov [Wed, 7 Aug 2013 15:25:39 +0000 (19:25 +0400)]
[PROTO] add disk reads and writes to sytem message
Nikita Kalyazin [Wed, 7 Aug 2013 13:58:30 +0000 (17:58 +0400)]
[IMPROVE] return 0 if no video status file
Nikita Kalyazin [Wed, 7 Aug 2013 13:39:21 +0000 (17:39 +0400)]
[FIX] print_buf() info param type
Nikita Kalyazin [Wed, 7 Aug 2013 13:38:55 +0000 (17:38 +0400)]
[FIX] forgotten header
Nikita Kalyazin [Wed, 7 Aug 2013 13:38:30 +0000 (17:38 +0400)]
[FIX] forgotten prototype in header
Nikita Kalyazin [Wed, 7 Aug 2013 13:38:03 +0000 (17:38 +0400)]
[FIX] wrong return type and comment
Nikita Kalyazin [Wed, 7 Aug 2013 13:37:37 +0000 (17:37 +0400)]
[FIX] wrong return type
Vitaliy Cherepanov [Wed, 7 Aug 2013 13:34:49 +0000 (17:34 +0400)]
[FIX] video status fixed in system messages
Vitaliy Cherepanov [Wed, 7 Aug 2013 11:04:01 +0000 (15:04 +0400)]
[FIX] get value from file at first open in get_file_status
Vitaliy Cherepanov [Wed, 7 Aug 2013 10:49:38 +0000 (14:49 +0400)]
[FIX] build fix. printBuf undefined
Vitaliy Cherepanov [Wed, 7 Aug 2013 08:00:10 +0000 (12:00 +0400)]
Merge branch 'swap_protocol' of 106.109.8.71:/srv/git/sdk/dynamic-analysis-manager into swap_protocol
Vitaliy Cherepanov [Wed, 7 Aug 2013 07:54:50 +0000 (11:54 +0400)]
[IMPROVE] debug changes
- printBuf tell function name wich call it
- fix parce debug
Nikita Kalyazin [Wed, 7 Aug 2013 06:01:34 +0000 (10:01 +0400)]
[IMPROVE] flush_buf is always called with system trace period
Nikita Kalyazin [Tue, 6 Aug 2013 15:54:47 +0000 (19:54 +0400)]
[IMPROVE] remove warning when no process to kill
This is ok, if the application is not running.
Vitaliy Cherepanov [Tue, 6 Aug 2013 07:52:38 +0000 (11:52 +0400)]
[FIX] segmentation fault (double free on disconnect)
Vitaliy Cherepanov [Mon, 5 Aug 2013 16:06:04 +0000 (20:06 +0400)]
[IMPROVE] get_device_network_type improve
Vitaliy Cherepanov [Mon, 5 Aug 2013 15:54:02 +0000 (19:54 +0400)]
[FIX] fix segmentation fault on GetTargetInfo message
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