Anastasia Lyupa [Tue, 14 Jan 2014 13:05:09 +0000 (17:05 +0400)]
[FIX] system sampling
fix to
c35167e1a4955aef3fdf14dc862e68a25b655a50
Change-Id: Ide56fd3f296ca5284d695916bdf4ac905b366bf4
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
Vitaliy Cherepanov [Mon, 30 Dec 2013 17:49:04 +0000 (21:49 +0400)]
[FIX] Unknown socket fd
message after "Unknown socket fd" stop
Change-Id: I9ba3ec18efb19773e8c139604d24688cfb4c3eac
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Nikita Kalyazin [Thu, 26 Dec 2013 08:49:34 +0000 (12:49 +0400)]
[IMPROVE] input devices for M0 3.10 support
Change-Id: I0b990345f0a8e874a301c774746fe06e924e987d
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Nikita Kalyazin [Thu, 19 Dec 2013 04:28:03 +0000 (08:28 +0400)]
[PROTO] sampling: range change 10-1000 ms -> 1-100 ms
Change-Id: I9a9f6aef0b9be6c91088698925e0e254b734c65e
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Nikita Kalyazin [Wed, 18 Dec 2013 13:53:42 +0000 (17:53 +0400)]
[PROTO] system info: send load for all processes
Not only for those that belong to target app.
Manager's load is excluded.
Change-Id: If296e4a4c40cde3f6520f7796c8e33ea5515c0af
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Vitaliy Cherepanov [Mon, 23 Dec 2013 16:18:33 +0000 (20:18 +0400)]
[FIX] duplicated events on replay
Change-Id: Iff55f811589449b9803ae5a6778cc2461b67d679
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Anastasia Lyupa [Tue, 17 Dec 2013 08:45:24 +0000 (12:45 +0400)]
[FIX] negative values in system feature variables
send new value instead of difference if
the difference is negative
Change-Id: I28d28a1a5c87035dfb09551428a95c32b1f14fce
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
Anastasia Lyupa [Mon, 16 Dec 2013 15:18:43 +0000 (19:18 +0400)]
[CLEAN] utils.c
remove unused get_appid(), get_app_name()
Change-Id: I5def2d6b2f8774660b5d802b748a6368c14bb085
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
Anastasia Lyupa [Thu, 12 Dec 2013 13:48:04 +0000 (17:48 +0400)]
[IMPROVE] kill_app
check additional paths (/opt/apps, /opt/usr/apps)
Change-Id: Ia76da200dd2ecca77fb40aa6525410cc4efb19a2
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
Dmitry Bogatov [Mon, 9 Dec 2013 11:54:55 +0000 (15:54 +0400)]
[PROTO] Make LCD per app energy same as global
Change-Id: I2be98467fbb1406c32c1b0aa8e91ca8261e7f713
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
Nikita Kalyazin [Sat, 30 Nov 2013 12:37:37 +0000 (16:37 +0400)]
[PROTO] system info: total alloc size 32b -> 64b
Change-Id: Id24495813fdf87b0a00c01178e6e4937e9475f27
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Nikita Kalyazin [Mon, 2 Dec 2013 09:48:54 +0000 (13:48 +0400)]
[FIX] add waitpid for launch_app process
This prevents such processes from being zombie
Change-Id: Ie9fe745e7009a865703f2fb2961c3b51ab966ed7
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Vitaliy Cherepanov [Mon, 2 Dec 2013 09:50:31 +0000 (13:50 +0400)]
[PROTO] audio status value
0 - not in use
1 - in use
Change-Id: I389999813aedd2f13e78e2d3e4cd9261785327f9
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Dmitry Bogatov [Tue, 26 Nov 2013 13:50:34 +0000 (17:50 +0400)]
[REFACTOR] Refactor semi-pure calculation of msg_data payload length
Change-Id: I25d46ab034e85055e8e7945984c2b72462031bca
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
Dmitry Bogatov [Mon, 25 Nov 2013 13:37:49 +0000 (17:37 +0400)]
[REFACTOR] recvThread: Eliminate reference to global variable
Change-Id: Ic6dbff9b33c40303e2b4d8f39fc21566a3655eea
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
Dmitry Bogatov [Mon, 25 Nov 2013 12:28:02 +0000 (16:28 +0400)]
[REFACTOR] Refactor big switch from `sendACKToHost`
Change-Id: I7a24af7e84ecbec778fd85f39e102c5e9cf88bdb
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
Dmitry Bogatov [Mon, 25 Nov 2013 10:37:36 +0000 (14:37 +0400)]
[FIX] Fix warnings
Fixed missing headers, consts and unused variable.
Fixed checkpatch warnings
Change-Id: Ica91fc8f50ece997a1752265a5a3e07bf919ac0a
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
Alexander Aksenov [Thu, 28 Nov 2013 13:05:23 +0000 (17:05 +0400)]
[STYLE] Daemon code style fix
Change-Id: I1c76f33bb4c4c7f45ba62eacaf9f4a5421f56d09
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Thu, 28 Nov 2013 13:03:38 +0000 (17:03 +0400)]
[FIX] apps_count cannot be lower than 0
Change-Id: I43d6bf0569147ffbd653b424b3367c252b31d76f
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Nikita Kalyazin [Thu, 28 Nov 2013 05:51:44 +0000 (09:51 +0400)]
[FIX] app launch timer if attaching to running app
Apps count _may_ be equal to 0 (if we are attaching to an app, not
launching one).
Also assert for apps count >= 0 added.
Change-Id: Ia24f2856e4240b5e827026713f613238b36a870a
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Vitaliy Cherepanov [Wed, 27 Nov 2013 09:22:19 +0000 (13:22 +0400)]
[FIX] MSG_SYSTEM audio and camera fields
Change-Id: Iad5b5b74e360a25dbd40bfa0e6b342bce761762b
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Mon, 25 Nov 2013 09:30:38 +0000 (13:30 +0400)]
[IMPROVE] add MSG_ERR support
Change-Id: I88500c79ec2101722f1bb740a64d0e1ab767f541
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Alexander Aksenov [Mon, 25 Nov 2013 14:29:52 +0000 (18:29 +0400)]
[IMPROVE] Launch timer support several apps
Timer time = apps count * per-app launch time.
Timer is stopped after last app starts.
Change-Id: Ib4326d4c9b4edc39c21c33f6fead4f854a51bc67
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Wed, 20 Nov 2013 11:26:51 +0000 (15:26 +0400)]
[FIX] Daemon terminates all remaining processes
Change-Id: Ia1b3d037531f7319a4ac84fd0491917b1c4f95f9
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Tue, 19 Nov 2013 11:16:56 +0000 (15:16 +0400)]
[FIX] Daemon starts all apps instead of the only first
Change-Id: Iedae806a9ae0f7d3772e50adadfc90702779bf5d
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Vitaliy Cherepanov [Tue, 26 Nov 2013 11:01:56 +0000 (15:01 +0400)]
[FIX] rssi status in MSG_SYSTEM
Change-Id: Ib1b54ce31c6ff31fba330dbd9ad75a29c8364eb6
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Tue, 26 Nov 2013 09:52:48 +0000 (13:52 +0400)]
[IMPROVE] add sys_stat debug
Change-Id: I2b5cd4b7fc75f9ff678a9bed941a5c8b92bbd67d
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Dmitry Bogatov [Mon, 18 Nov 2013 07:16:40 +0000 (11:16 +0400)]
[CLEAN] Remove all dead code related to LOCALTEST
Also fix style according to checkpatch and remove redundant
comments.
Change-Id: I0e8737fc3ad454750d0143e7ffed2dfc529de408
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Dmitry Bogatov [Mon, 11 Nov 2013 13:18:44 +0000 (17:18 +0400)]
[REFACTOR] Move all logging to parent process in exec_*
Remove unused (commented out) code
Change-Id: I26bcc5cf564d7096d34fc2af461120d21175a76d
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
Dmitry Bogatov [Mon, 11 Nov 2013 14:34:15 +0000 (18:34 +0400)]
[REFACTOR] Move most of logging logic to `do_log`.
Reduce code duplication (LOGI, LOGW, LOGE) differs only in
prefix. Add uptime logging for debugging with dmesg.
Move all mess with debugging macroses to Makefile.
Change-Id: Iab6e342c113f0fe571609d29a7b19615c9ff6d05
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
Anastasia Lyupa [Tue, 19 Nov 2013 07:17:41 +0000 (11:17 +0400)]
[PROTO] update feature list, enable 64bit features
add new features for no filtering
fix feature size (uint32->uint64) in
sending config and feature_code_str
Change-Id: I30f6c7e0818da9ce9344d0bf3ec5ff072e94d6ee
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
Dmitry Bogatov [Wed, 20 Nov 2013 06:48:52 +0000 (10:48 +0400)]
[IMPROVE] Generalize lcd energy receiving
Instead of hardcoding `lcd/energy/maru/system`
perform globbing by `lcd/energy/*/system`.
Change-Id: I536a18021fb14ef8a995a9282d43c69d666474a1
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
Anastasia Lyupa [Mon, 18 Nov 2013 14:41:01 +0000 (18:41 +0400)]
[CLEAN] remove unused enum DaOptions
Change-Id: Ia994f50af79accf62e634657553de87b5748c70f
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
Dmitry Bogatov [Mon, 18 Nov 2013 12:00:06 +0000 (16:00 +0400)]
[IMPROVE] Add support for LCD energy information
Change-Id: Id0dcae7978f0d392f91b947356af63dcba6d56b4
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
Dmitry Bogatov [Thu, 14 Nov 2013 12:31:18 +0000 (16:31 +0400)]
[STYLE] Remove unused #ifdef
Change-Id: Ia06c9e1c2577a05dea6bf4d578e89d7b17080d54
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
Dmitry Bogatov [Thu, 14 Nov 2013 13:41:36 +0000 (17:41 +0400)]
[STYLE] Fix 80 column
Change-Id: Ie63cc2d159295ed0fb7506fc712c223a317a18c0
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
Dmitry Bogatov [Thu, 14 Nov 2013 13:40:55 +0000 (17:40 +0400)]
[REFACTOR] Make `get_total_alloc_size` return int of known width
Change-Id: I046d30d7e0e38da1d0828a1411ccf43dfc6d6020
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
Dmitry Bogatov [Thu, 14 Nov 2013 12:47:31 +0000 (16:47 +0400)]
[FIX] Fix access to logfile by forked application
Change-Id: Ic6678130a8853dc3f946c9e6b92e6b7b4ab7d61a
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
Anastasia Lyupa [Thu, 14 Nov 2013 13:27:37 +0000 (17:27 +0400)]
[CLEAN] unused NMSG_PROBE_ enums
Change-Id: I898a407d3b7edb5ce2b12564ec910a6f8f0d69d8
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
Vitaliy Cherepanov [Thu, 14 Nov 2013 08:50:36 +0000 (12:50 +0400)]
[IMPROVE] improve feature bits debug
Change-Id: I2ec9e291d93476bca2751189253f3c8cb62ad4f4
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Thu, 14 Nov 2013 09:13:02 +0000 (13:13 +0400)]
[PROTO] add 'v','n' probe ret type support
Change-Id: I38d295583020a1112caef2d04ef82a2513c3c592
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Wed, 6 Nov 2013 12:32:25 +0000 (16:32 +0400)]
[PROTO] add probe return type to message
add for MSG_SWAP_INST_ADD NMSG_SWAP_INST_REMOVE NMSG_START
Change-Id: Ic5a2535fc1fa5f107ffe81b7a4ba654411e39f19
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Wed, 6 Nov 2013 08:04:03 +0000 (12:04 +0400)]
[PROTO] add MSG_GET_SCREENSHOT message support
Change-Id: I2a89191deeae6db0a196ce9a33b4cd92965e053b
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Thu, 31 Oct 2013 11:46:02 +0000 (15:46 +0400)]
[PROTO] relative values for disk read write and net send recv
Change-Id: I1cae378323d8a7cdf0e0a4086502f96bef123167
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Tue, 29 Oct 2013 10:12:35 +0000 (14:12 +0400)]
[FIX] kill app before start profiling
Change-Id: Icc82cb2194833ee61ee95a8e427dd26f79ab9976
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Dmitry Bogatov [Wed, 30 Oct 2013 04:01:44 +0000 (08:01 +0400)]
[REFACTOR] Refactor setting smack attributes to `fd_setup_smack_attributes`
Change-Id: Ib35fb4a320eeeb77a305d4b9dd1c210482049075
Dmitry Bogatov [Mon, 21 Oct 2013 04:46:41 +0000 (08:46 +0400)]
[IMPROVE] Clean Makefile and enable LOGI by default
Change-Id: I2c6b1bbadd49f53dd944d701ac634966d7efddb6
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
Dmitry Bogatov [Tue, 29 Oct 2013 07:55:25 +0000 (11:55 +0400)]
[IMPROVE] Replace `pack_int` with `pack_int{32,64}
Add static assert for primitive type-safety.
pack_int{32,64} prefered since they can be rewritten
as functions, pack_int can not due use of typeof.
Change-Id: I3afecda9c7c0399d0be6485fec8f909dccd5eb9c
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
Nikita Kalyazin [Mon, 28 Oct 2013 12:18:58 +0000 (16:18 +0400)]
[FIX] add O_CLOEXEC while opening logfile
This prevents our logfile from being written by the traced application
(it is bad because it has no permissions to write to our logfile).
Change-Id: Ifa5f097d050cb0d80eaee8097bf10abd5734a4c9
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Vitaliy Cherepanov [Mon, 28 Oct 2013 10:51:39 +0000 (14:51 +0400)]
[FIX] double start
Change-Id: I877fa4fe9cedb0f4d5ed0cc2f31f66c8ef56f76d
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Nikita Kalyazin [Fri, 25 Oct 2013 11:38:24 +0000 (15:38 +0400)]
[REFACTOR] system info: rearrange struct fields
in the order they are present in the protocol.
Change-Id: Ia827fcea211da5b47107e1d4aab55a5b396d0bdc
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Nikita Kalyazin [Fri, 25 Oct 2013 11:37:52 +0000 (15:37 +0400)]
[PROTO] always send MSG_SYSTEM_INFO
even if all the features it contains are disabled.
Change-Id: I30e8bddad0374b9d0328d031a9aeba6259d38474
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Nikita Kalyazin [Fri, 25 Oct 2013 11:36:59 +0000 (15:36 +0400)]
[FIX] system info: uncomment forgotten total used drive
Change-Id: I134d83860186664e61683b9f9f9048c2b8105d87
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Nikita Kalyazin [Fri, 25 Oct 2013 11:35:40 +0000 (15:35 +0400)]
[FIX] wrong pack size of system memory total/used
if system_memory feature is disabled.
Change-Id: I0f29b2b2d8838bd0f8673bdc6ac37cb33f1f7adf
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Nikita Kalyazin [Fri, 25 Oct 2013 11:34:45 +0000 (15:34 +0400)]
[FIX] MSG_SYSTEM_INFO length calculation
Change-Id: I248137a87f3556e5347542e474a0dc44853563cd
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Vitaliy Cherepanov [Thu, 24 Oct 2013 16:43:27 +0000 (20:43 +0400)]
[FIX] daemon Oops on host connection broken
normal way termination by term kill for daemon
Change-Id: If18590aa97f105fb689971a35680f8f6bf2bd21c
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Anastasia Lyupa [Thu, 24 Oct 2013 08:54:26 +0000 (12:54 +0400)]
[FIX] sampling start when profiling has not started
Change-Id: I799bbefcd8e5d5b110dc77594540e46ac614ae73
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
Anastasia Lyupa [Tue, 22 Oct 2013 13:58:57 +0000 (17:58 +0400)]
[IMPROVE] MSG_SYSTEM: control cpu, process, memory with MSG_CONFIG
for cpu, process, memory pack set of 0 if option is disabled
Change-Id: I0622688d7df7be3f2e8f7520046d62bda87e1894
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
Anastasia Lyupa [Mon, 21 Oct 2013 15:31:31 +0000 (19:31 +0400)]
[FIX] epoll_ctl error, double stopping
- don't call stop_all at the end if it was successfully called before
or if start was unsuccessful
- epoll_add_input_events: no error if fd exists
Change-Id: I86119301519e6c2a891323a7db93a070b31d01ab
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
Vitaliy Cherepanov [Wed, 23 Oct 2013 13:30:22 +0000 (17:30 +0400)]
[FIX] stop profiling if application was closed
if no application avail for profiling we should stop profiling
Change-Id: I3994271ab20121cdbae08d66c49ba65a21aa8f02
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Tue, 22 Oct 2013 09:53:45 +0000 (13:53 +0400)]
[FIX] failed start_profiling leaves us inst run
if US profiling have been started in kernel but we have some problems in
da_manager with start profiling we must stop profiling to avail accept
and proceed next start message
Change-Id: I2b542b98451498f8845d1243909529b9db6030ea
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Fri, 18 Oct 2013 12:47:48 +0000 (16:47 +0400)]
[FIX] ACK return error code
return ERR_WRONG_MESSAGE_FORMAT instead of ERR_UNKNOWN if message parse
failed on messages: start, add, remove
Change-Id: I25a75284e4cd167f87816dad884176fa3211c10b
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Fri, 18 Oct 2013 12:14:28 +0000 (16:14 +0400)]
[FIX] process_msg_start wrong ret value
Change-Id: Ib5d1ae735496fcc120e4c3c94967a96599f5f631
Nikita Kalyazin [Wed, 16 Oct 2013 10:13:31 +0000 (14:13 +0400)]
[PROTO] Add timestamp in MSG_START reply
Change-Id: Ia7fc8a71c2a643d069ad7502dbe9e604bca3e2c2
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Dmitry Bogatov [Wed, 16 Oct 2013 10:57:07 +0000 (14:57 +0400)]
[PROTO] Add appname into msg_binary_info reply
Change-Id: I5cf1dc37a1c7fae98dd9ae3e95cd63156d2f61a5
Dmitry Bogatov [Wed, 16 Oct 2013 05:46:37 +0000 (09:46 +0400)]
[PROTO] Fix missing return ID and binary_ack count
Change-Id: I6ec8f0e5c5fde30b0bfaaacf31e0a218b6649adc
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
Dmitry Bogatov [Wed, 16 Oct 2013 08:38:14 +0000 (12:38 +0400)]
[REFACTOR] Remove redutant check
Change-Id: Id39b79c62335ebf3797f9a1abfc3ebacca327cdd
Vitaliy Cherepanov [Tue, 15 Oct 2013 10:14:43 +0000 (14:14 +0400)]
[STYLE] Fixing coding standards issues (daemon.c)
Change-Id: Ibb097e04cf23af7bef7ef32eaa080faca776e0c3
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Mon, 14 Oct 2013 15:44:41 +0000 (19:44 +0400)]
[FIX] da_manager fails when no functions is set in app_inst_list
- wrong parameter passed to calc_app_hash function
Change-Id: I5201d7f67bca31c53143792137bd23cf20693097
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
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)]