platform/core/system/swap-manager.git
10 years ago[CLEAN] Remove all dead code related to LOCALTEST
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>
10 years ago[REFACTOR] Move all logging to parent process in exec_*
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>
10 years ago[REFACTOR] Move most of logging logic to `do_log`.
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>
10 years ago[PROTO] update feature list, enable 64bit features
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>
10 years ago[IMPROVE] Generalize lcd energy receiving
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>
10 years ago[CLEAN] remove unused enum DaOptions
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>
10 years ago[IMPROVE] Add support for LCD energy information
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>
10 years ago[STYLE] Remove unused #ifdef
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>
10 years ago[STYLE] Fix 80 column
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>
10 years ago[REFACTOR] Make `get_total_alloc_size` return int of known width
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>
10 years ago[FIX] Fix access to logfile by forked application
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>
10 years ago[CLEAN] unused NMSG_PROBE_ enums
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>
10 years ago[IMPROVE] improve feature bits debug
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>
10 years ago[PROTO] add 'v','n' probe ret type support
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>
10 years ago[PROTO] add probe return type to message
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>
11 years ago[PROTO] add MSG_GET_SCREENSHOT message support
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>
11 years ago[PROTO] relative values for disk read write and net send recv
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>
11 years ago[FIX] kill app before start profiling
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>
11 years ago[REFACTOR] Refactor setting smack attributes to `fd_setup_smack_attributes`
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

11 years ago[IMPROVE] Clean Makefile and enable LOGI by default
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>
11 years ago[IMPROVE] Replace `pack_int` with `pack_int{32,64}
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>
11 years ago[FIX] add O_CLOEXEC while opening logfile
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>
11 years ago[FIX] double start
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>
11 years ago[REFACTOR] system info: rearrange struct fields
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>
11 years ago[PROTO] always send MSG_SYSTEM_INFO
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>
11 years ago[FIX] system info: uncomment forgotten total used drive
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>
11 years ago[FIX] wrong pack size of system memory total/used
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>
11 years ago[FIX] MSG_SYSTEM_INFO length calculation
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>
11 years ago[FIX] daemon Oops on host connection broken
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>
11 years ago[FIX] sampling start when profiling has not started
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>
11 years ago[IMPROVE] MSG_SYSTEM: control cpu, process, memory with MSG_CONFIG
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>
11 years ago[FIX] epoll_ctl error, double stopping
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>
11 years ago[FIX] stop profiling if application was closed
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>
11 years ago[FIX] failed start_profiling leaves us inst run
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>
11 years ago[FIX] ACK return error code
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>
11 years ago[FIX] process_msg_start wrong ret value
Vitaliy Cherepanov [Fri, 18 Oct 2013 12:14:28 +0000 (16:14 +0400)]
[FIX] process_msg_start wrong ret value

Change-Id: Ib5d1ae735496fcc120e4c3c94967a96599f5f631

11 years ago[PROTO] Add timestamp in MSG_START reply
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>
11 years ago[PROTO] Add appname into msg_binary_info reply
Dmitry Bogatov [Wed, 16 Oct 2013 10:57:07 +0000 (14:57 +0400)]
[PROTO] Add appname into msg_binary_info reply

Change-Id: I5cf1dc37a1c7fae98dd9ae3e95cd63156d2f61a5

11 years ago[PROTO] Fix missing return ID and binary_ack count
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>
11 years ago[REFACTOR] Remove redutant check
Dmitry Bogatov [Wed, 16 Oct 2013 08:38:14 +0000 (12:38 +0400)]
[REFACTOR] Remove redutant check

Change-Id: Id39b79c62335ebf3797f9a1abfc3ebacca327cdd

11 years ago[STYLE] Fixing coding standards issues (daemon.c)
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>
11 years ago[FIX] da_manager fails when no functions is set in app_inst_list
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>
11 years ago[FIX] pid = -1 on message terminate
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>
11 years ago[PROTO] message id update (starting from 0x0001)
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>
11 years ago[PROTO] energy: each sample contains diff value
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>
11 years ago[PROTO] remove msg process info
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>
11 years ago[PROTO] library user space instrumentation are common for all applications
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>
11 years ago[PROTO] Implement reading energy from sysfs
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>
11 years ago[PROTO] Add pid to MSG_TERMINATE
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>
11 years ago[FIX] reconfigure: send new config to target
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>
11 years ago[PROTO] Update BINARY_INFO_ACK
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>
11 years ago[3RDPARTY] Add libmpd5-rfc sources
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>
11 years ago[FIX] replay thread: wrong debug output
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>
11 years ago[FIX] replay event sequence: double free
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>
11 years ago[FIX] time parsing (fix sec/nsec order)
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>
11 years ago[IMPROVE] Write to sysfs implement
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>
11 years ago[PROTO] send MSG_STOP_ACK before everything stops
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>
11 years ago[FIX] replay for emulator
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>
11 years ago[FIX] Closing swap_driver descriptors
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>
11 years ago[FIX] screenshot dir creation warning
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>
11 years ago[IMPROVE] Add ioctl wake up command
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>
11 years ago[FIX] Close file descriptors when removing modules
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>
11 years ago[FIX] remove screenshot directory prior to creation
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>
11 years ago[FIX] daemon cannot finish
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>
11 years ago[FIX] manager update after tizen 2.2
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>
11 years ago[FIX] manager update after tizen 2.2 (54b4)
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>
11 years ago[FIX] MSG_PROCESS_INFO: zero low_address and high_address
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>
11 years ago[FIX] absence msg of status files (video, audio, etc) become a warning
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>
11 years ago[FIX] manager update after tizen 2.2 (ee46)
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>
11 years ago[FIX] broken pipe or unclosed pipe on client extraordinary disconnect
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>
11 years ago[FIX] premature closing descriptors
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>
11 years ago[FIX] add 'b' type to check
Nikita Kalyazin [Wed, 28 Aug 2013 06:50:06 +0000 (10:50 +0400)]
[FIX] add 'b' type to check

11 years ago[FIX] wrong function call
Nikita Kalyazin [Wed, 28 Aug 2013 06:49:34 +0000 (10:49 +0400)]
[FIX] wrong function call

Fix for e9758a9c9094acba1217dc6419cd346b5c473be7

11 years ago[FIX] Enforce usage of debug binary for 'get_build_dir'
Dmitry Bogatov [Tue, 27 Aug 2013 13:43:55 +0000 (17:43 +0400)]
[FIX] Enforce usage of debug binary for 'get_build_dir'

11 years ago[FIX] wrong app arguments strip
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.

11 years ago[FIX] wrong pid in log
Dmitry Bogatov [Mon, 19 Aug 2013 11:46:44 +0000 (15:46 +0400)]
[FIX] wrong pid in log

11 years ago[IMPROVE] move modules removing to terminate function
Dmitry Bogatov [Mon, 19 Aug 2013 05:16:23 +0000 (09:16 +0400)]
[IMPROVE] move modules removing to terminate function

11 years ago[IMPROVE] eliminate global variable
Dmitry Bogatov [Mon, 19 Aug 2013 05:16:22 +0000 (09:16 +0400)]
[IMPROVE] eliminate global variable

11 years ago[REFACTOR] set smack labels in separate function
Dmitry Bogatov [Mon, 19 Aug 2013 05:16:21 +0000 (09:16 +0400)]
[REFACTOR] set smack labels in separate function

11 years ago[REFACTOR] replace code with standard function
Dmitry Bogatov [Mon, 19 Aug 2013 05:16:20 +0000 (09:16 +0400)]
[REFACTOR] replace code with standard function

11 years ago[REFACTOR] split `targetEventHandler' into independent cases
Dmitry Bogatov [Mon, 19 Aug 2013 05:16:19 +0000 (09:16 +0400)]
[REFACTOR] split `targetEventHandler' into independent cases

11 years ago[IMPROVE] call cleanup functions on signals
Dmitry Bogatov [Mon, 19 Aug 2013 05:16:18 +0000 (09:16 +0400)]
[IMPROVE] call cleanup functions on signals

11 years ago[REFACTOR] make function naming more consistent
Dmitry Bogatov [Mon, 19 Aug 2013 05:16:17 +0000 (09:16 +0400)]
[REFACTOR] make function naming more consistent

11 years ago[REFACTOR] improve function naming
Dmitry Bogatov [Mon, 19 Aug 2013 05:16:16 +0000 (09:16 +0400)]
[REFACTOR] improve function naming

11 years ago[REFACTOR] remove level of indentaion in `main'
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.

11 years ago[IMPROVE] run app with arguments
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.

11 years ago[FIX] daemon terminate on control msg protocol errors fix
Vitaliy Cherepanov [Tue, 13 Aug 2013 07:43:00 +0000 (11:43 +0400)]
[FIX] daemon terminate on control msg protocol errors fix

11 years ago[IMPROVE] add user space inst check in parse start message
Vitaliy Cherepanov [Mon, 12 Aug 2013 13:40:08 +0000 (17:40 +0400)]
[IMPROVE] add user space inst check in parse start message

11 years ago[FIX] free allocated memory if parse user space fail
Vitaliy Cherepanov [Mon, 12 Aug 2013 08:17:42 +0000 (12:17 +0400)]
[FIX] free allocated memory if parse user space fail

11 years ago[FIX] feature check (forgotten function sampling)
Nikita Kalyazin [Sat, 10 Aug 2013 08:02:40 +0000 (12:02 +0400)]
[FIX] feature check (forgotten function sampling)

fix to 5648cb29b512d81025a86fd4b1cd115ae7e6daec

11 years ago[IMPROVE] message config check add
Vitaliy Cherepanov [Fri, 9 Aug 2013 13:06:54 +0000 (17:06 +0400)]
[IMPROVE] message config check add

11 years agoMerge branch 'swap_protocol' of 106.109.8.71:/srv/git/sdk/dynamic-analysis-manager...
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

11 years ago[IMPROVE] remove unnecessary file descriptor checking
Vitaliy Cherepanov [Fri, 9 Aug 2013 07:34:46 +0000 (11:34 +0400)]
[IMPROVE] remove unnecessary file descriptor checking

11 years ago[FIX] app start time received in usecs
Nikita Kalyazin [Thu, 8 Aug 2013 14:35:19 +0000 (18:35 +0400)]
[FIX] app start time received in usecs

11 years agoMerge branch 'swap_protocol' of 106.109.8.71:/srv/git/sdk/dynamic-analysis-manager...
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

11 years ago[IMPROVE] message application information check add
Vitaliy Cherepanov [Thu, 8 Aug 2013 14:43:43 +0000 (18:43 +0400)]
[IMPROVE] message application information check add

11 years ago[FIX] app start time received in usecs
Nikita Kalyazin [Thu, 8 Aug 2013 14:35:19 +0000 (18:35 +0400)]
[FIX] app start time received in usecs

11 years agoMerge branch 'swap_protocol' of 106.109.8.71:/srv/git/sdk/dynamic-analysis-manager...
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

11 years ago[PROTO] add disk reads and writes to sytem message
Vitaliy Cherepanov [Wed, 7 Aug 2013 15:25:39 +0000 (19:25 +0400)]
[PROTO] add disk reads and writes to sytem message

11 years ago[IMPROVE] return 0 if no video status file
Nikita Kalyazin [Wed, 7 Aug 2013 13:58:30 +0000 (17:58 +0400)]
[IMPROVE] return 0 if no video status file