platform/core/system/swap-manager.git
7 years agomanager: increace timeout 1 -> 60 30/152630/2
Vyacheslav Cherkashin [Tue, 26 Sep 2017 12:50:40 +0000 (15:50 +0300)]
manager: increace timeout 1 -> 60

Give more time for LSAN finishing

Change-Id: I1ae3583df18e69f12b198373ba7722a5f17cc83c
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoAdd process_features() addr passing to kernel 19/151719/3
Alexander Aksenov [Tue, 19 Sep 2017 15:57:28 +0000 (18:57 +0300)]
Add process_features() addr passing to kernel

Change-Id: Ic57d7662b04dbcd132bc0769aefcb593fbc8b0ca
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoFix build for Tizen 4.0 (redundant const) 21/152621/2
Dmitry Kovalenko [Tue, 26 Sep 2017 13:10:30 +0000 (16:10 +0300)]
Fix build for Tizen 4.0 (redundant const)

Cherry-picked fix from Tizen 4.0

Change-Id: Ic245ba1ad75eba6df6eb47887dea9dc3f72d2327
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agoFix privilege name for debug mode check 71/151371/1
Vyacheslav Cherkashin [Wed, 20 Sep 2017 08:47:14 +0000 (11:47 +0300)]
Fix privilege name for debug mode check

Change-Id: Ifd19564bb1a9313f6db47ee8ec7582201369aef4
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoauxd: move saving temp files to auxd 89/151089/3
Vyacheslav Cherkashin [Tue, 19 Sep 2017 15:48:58 +0000 (18:48 +0300)]
auxd: move saving temp files to auxd

Change-Id: I7960f3d40a7714e51f86bab094bbed5c02fd8686
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoauxd: rework serialization 88/151088/3
Vyacheslav Cherkashin [Tue, 19 Sep 2017 12:10:09 +0000 (15:10 +0300)]
auxd: rework serialization

Change-Id: I8dc50e46c5e07e6b9230c2a5533a95161b900ff4
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoutils: add serialzation capability 87/151087/3
Vyacheslav Cherkashin [Tue, 19 Sep 2017 10:26:56 +0000 (13:26 +0300)]
utils: add serialzation capability

Change-Id: I6c2fe597a4cde4bda834e7a99dda598c042fe33b
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoauxd: change procces SMACK label (User -> User::Shell) 86/151086/2
Vyacheslav Cherkashin [Tue, 19 Sep 2017 15:53:15 +0000 (18:53 +0300)]
auxd: change procces SMACK label (User -> User::Shell)

Works with the same SMACK label as "sdb shell"

Change-Id: Iabe19f07aaf6b430128ba1021a45a93cefcbbeb5
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoUse proper variable type for IFUNC processing 93/150193/1
Dmitry Kovalenko [Thu, 14 Sep 2017 12:12:56 +0000 (15:12 +0300)]
Use proper variable type for IFUNC processing

Change-Id: I83e0a111805d9526bbfa2f62156b4ac1699ba357

7 years agoReplace protobuf with in-project serialization 59/149559/8
Alexander Aksenov [Tue, 12 Sep 2017 11:33:02 +0000 (14:33 +0300)]
Replace protobuf with in-project serialization

Change-Id: I81661025ab54deb8e09d7f42f87aa5f8c83dc2be
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agomanager: remove fork()/execv() using 16/149616/1
Vyacheslav Cherkashin [Tue, 12 Sep 2017 15:35:44 +0000 (18:35 +0300)]
manager: remove fork()/execv() using

Change-Id: I12ba76c332d0ca99548ad47e2411122052c0c5c5
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoAdd support not builtin swap-modules 82/149582/3
Vyacheslav Cherkashin [Tue, 12 Sep 2017 13:22:06 +0000 (16:22 +0300)]
Add support not builtin swap-modules

Use SWAP_MODULES_SUPPORT for configure

Change-Id: Ic93a3a34314cf9c49d849199c464a1c478820114
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agomanager: remove kill() using 81/149581/2
Vyacheslav Cherkashin [Tue, 12 Sep 2017 12:16:40 +0000 (15:16 +0300)]
manager: remove kill() using

Change-Id: I2555ec0ed7e94b878dc0f6af5474eda136e78908
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agomanager: set SMACK label User::Shell on swap_manager trigger 44/149444/1
Vyacheslav Cherkashin [Tue, 12 Sep 2017 08:31:41 +0000 (11:31 +0300)]
manager: set SMACK label User::Shell on swap_manager trigger

Alow swap_manager run only with User::Shell SMACK label

Change-Id: I5ef10c62003cc22424a6239d860836f25def89f6
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agomanager: profile only tizen and web apps with debug mode 29/149129/3
Vyacheslav Cherkashin [Mon, 11 Sep 2017 13:46:48 +0000 (16:46 +0300)]
manager: profile only tizen and web apps with debug mode

Change-Id: I41c9e7df766884c4b7cd2c72bac9a1e67982c72d
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoutils: add capability to check app for debug mode 28/149128/2
Vyacheslav Cherkashin [Mon, 11 Sep 2017 11:24:45 +0000 (14:24 +0300)]
utils: add capability to check app for debug mode

Change-Id: I22024199a0a2e6641e171d67f7ba0039ec61cfe3
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoRemove swap_module.service 30/148730/3
Vyacheslav Cherkashin [Fri, 8 Sep 2017 12:33:56 +0000 (15:33 +0300)]
Remove swap_module.service

For swap_modules enabling/disabling is used API:
bool kernel_module_init(void);
bool kernel_module_uninit(void);
bool kernel_module_is_init(void);

load/unload modules should be implemented

Change-Id: Ibcd3715562bbb080b437c1f2b76b5cdce878c9cd
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoutils: add SMACK permission of connected client checking 29/148729/2
Vyacheslav Cherkashin [Thu, 7 Sep 2017 14:34:07 +0000 (17:34 +0300)]
utils: add SMACK permission of connected client checking

Used in auxd and memd for rejected connection process without
'System' smack label.

Change-Id: I71b1c68f1a667c44df8ee3a1f3d30f772266ff26
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoMove users systemd services to user 28/148728/1
Vyacheslav Cherkashin [Thu, 7 Sep 2017 13:52:43 +0000 (16:52 +0300)]
Move users systemd services to user

auxd and memd:
from /usr/lib/systemd/system/
to /usr/lib/systemd/user/

Change-Id: I00782cbb1bf4adc5921d3d30141eb76bb009a5ae
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoutils: fix systemd socket removing 27/148727/1
Vyacheslav Cherkashin [Thu, 7 Sep 2017 14:16:11 +0000 (17:16 +0300)]
utils: fix systemd socket removing

If we use unix socket, we create and remove socket.
If we use systemd unix socket, systemd creates and removes socket.

Change-Id: I701ff706ca3595fd00000a120f5e06fd595bc463
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoUse socket activation for launching swap_memd 59/147259/1
Vyacheslav Cherkashin [Fri, 1 Sep 2017 18:24:24 +0000 (21:24 +0300)]
Use socket activation for launching swap_memd

Change-Id: I2781541eae7b135ed10cebb2bcac6e85641f7523
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoUse socket activation for launching swap_auxd 58/147258/1
Vyacheslav Cherkashin [Fri, 1 Sep 2017 18:02:41 +0000 (21:02 +0300)]
Use socket activation for launching swap_auxd

Change-Id: I8081d7ae1f4c0248f31c0b2a0df0211670eb94dd
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoChange Smack label for swap_module.service 16/146616/1 submit/tizen_3.0/20170901.085536
Vyacheslav Cherkashin [Tue, 29 Aug 2017 12:46:20 +0000 (15:46 +0300)]
Change Smack label for swap_module.service

Change-Id: Iba1f9a7dac6817a5c50a83bf18179b22f541cde1
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoChange SmackProcessLabel to User 98/146398/2
Vyacheslav Cherkashin [Mon, 28 Aug 2017 09:40:40 +0000 (12:40 +0300)]
Change SmackProcessLabel to User

for binaries:
- swap_auxd
- swap_memd

Change-Id: I269107fa35395c8ef0f5688adb6d681deafc9e7b
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoMove /tmp/* to /run/swap/* 77/146277/1
Vyacheslav Cherkashin [Fri, 25 Aug 2017 11:36:11 +0000 (14:36 +0300)]
Move /tmp/* to /run/swap/*

systemd triggers:
- /run/swap/trigger/auxd
- /run/swap/trigger/memd
- /run/swap/trigger/module
- /run/swap/trigger_shell/swap_manager

swap_manager:
- /run/swap/manager.log
- /run/swap/manager.lock
- /run/swap/manager/pid
- /run/swap/manager/port
- /run/swap/lib.socket
- /run/swap/ui_lib.socket

swap_auxd:
- /run/swap/swap_auxd.socket

swap_memd:
- /run/swap/swap_memd.socket

UIHV:
- /run/swap/uilib.log

Change-Id: I8133edbd5be3b45df79f022a22ef304cf9c5e11b
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoRemove PermissionsStartOnly from systemd 76/146276/1
Vyacheslav Cherkashin [Fri, 25 Aug 2017 11:32:46 +0000 (14:32 +0300)]
Remove PermissionsStartOnly from systemd

Change-Id: I273202c4e6b51934e6f44514f9e84e1884dc7a37
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoBuild all files with fPIC/fpie flags 75/146275/1
Vyacheslav Cherkashin [Fri, 25 Aug 2017 11:41:43 +0000 (14:41 +0300)]
Build all files with fPIC/fpie flags

Change-Id: I39b13883cf2e3da60d99f72b3a3e10bab5c1c37e
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoTotally remove dependensy on root permission 69/145769/1
Vyacheslav Cherkashin [Wed, 23 Aug 2017 15:42:47 +0000 (18:42 +0300)]
Totally remove dependensy on root permission

Change-Id: Iecb881a741ff0b475bb47ecf03888d30c270e526
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoMerge branch 'tizen_3.0' into tizen_3.0_dev 08/145208/1 tizen_3.0_dev submit/tizen_3.0/20170822.071124
Vyacheslav Cherkashin [Mon, 21 Aug 2017 16:32:26 +0000 (19:32 +0300)]
Merge branch 'tizen_3.0' into tizen_3.0_dev

Change-Id: Idaee99c3fea5eb26dea0dff71a4a1b7286b2bdb4
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoAdd support of reading 'smaps' files 01/143101/5
Vyacheslav Cherkashin [Tue, 8 Aug 2017 06:45:27 +0000 (09:45 +0300)]
Add support of reading 'smaps' files

To read smaps (/proc/*/smaps) it uses swap_memd service, because
swap_manager dont't have needed permissions.

Change-Id: I0d01fda860c5d2167739e18c6cde60fd4cc862f0
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoweb: start web application without root privileges 00/143100/5
Vyacheslav Cherkashin [Mon, 7 Aug 2017 17:15:26 +0000 (20:15 +0300)]
web: start web application without root privileges

Change-Id: Id8486e3cd57bab77c079020cbca9d4935df5ff38
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoEnable launch swap_manager using systemd 84/138784/7
Vyacheslav Cherkashin [Mon, 13 Mar 2017 16:05:35 +0000 (19:05 +0300)]
Enable launch swap_manager using systemd

systemd services:
    - swap_manager
        launch up swap_manager. Trigger: touch /tmp/swap_manager
    - swap_auxd
        launch up swap_auxd. Trigger: touch /tmp/swap/auxd
    - swap_module
        load and enable. Trigger: echo load > /tmp/swap/module
        disable and unload. Trigger: echo unload > /tmp/swap/module

And create auxd_client with supported start/terminate Tizen app

Change-Id: I8eff4498bc6ffe5e87eaf18382fba966c642caf9
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoAdd daemon to execute Tizen apps with proper permission 83/138783/5
Vyacheslav Cherkashin [Tue, 20 Jun 2017 12:53:59 +0000 (15:53 +0300)]
Add daemon to execute Tizen apps with proper permission

Change-Id: I5cedc10d14608553f57b984d59240082407cf385
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoCreate swap_manager-aux_process communication library 82/138782/5
Vyacheslav Cherkashin [Thu, 8 Jun 2017 16:29:59 +0000 (19:29 +0300)]
Create swap_manager-aux_process communication library

Common functional for:
    - IPC client/server
    - Socket
    - UNIX-socket client/server
    - File descriptor operations

Change-Id: I2b3a0e21136140635eac5dbd675ae908bb39a9de
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoRemove change of app smack rules 33/126233/10
Alexander Aksenov [Thu, 30 Mar 2017 12:55:05 +0000 (15:55 +0300)]
Remove change of app smack rules

Now daemon works with non-root user permissions, so it can't
change smack privileges

Change-Id: I63ce6c79370c8dabf2461970f7fd09541de7ed86
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoFix typo message packing 99/139799/3
Vyacheslav Cherkashin [Wed, 19 Jul 2017 11:38:41 +0000 (14:38 +0300)]
Fix typo message packing

Change-Id: Idbdb90a4c96e06e2d727a5ec8d0e59d1efc0e324
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoFix unhandled malloc error 57/144157/3 accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable tizen_3.0_220817 accepted/tizen/3.0/common/20170816.145028 accepted/tizen/3.0/ivi/20170816.131022 accepted/tizen/3.0/mobile/20170816.130954 accepted/tizen/3.0/tv/20170816.131006 accepted/tizen/3.0/wearable/20170816.131017 submit/tizen_3.0/20170815.122716 submit/tizen_3.0/20170815.123042
Dmitry Kovalenko [Tue, 15 Aug 2017 08:15:02 +0000 (11:15 +0300)]
Fix unhandled malloc error

Change-Id: Ie9bc610addf071bf9202e38e24ca17c9cf813dca
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agoFix memory leak in ui_viewer 46/137846/1
Dmitry Kovalenko [Mon, 10 Jul 2017 05:41:59 +0000 (08:41 +0300)]
Fix memory leak in ui_viewer

Change-Id: I06ec4b03aedf1beacb310eccc70933c28d1b8226

7 years agoFix memory leak in ui_viewer 44/137844/1 accepted/tizen/3.0/common/20170728.153402 accepted/tizen/3.0/ivi/20170728.004919 accepted/tizen/3.0/mobile/20170728.004916 accepted/tizen/3.0/tv/20170728.004907 accepted/tizen/3.0/wearable/20170728.004912 submit/tizen_3.0/20170726.123420
Dmitry Kovalenko [Mon, 10 Jul 2017 05:41:59 +0000 (08:41 +0300)]
Fix memory leak in ui_viewer

Change-Id: I06ec4b03aedf1beacb310eccc70933c28d1b8226

7 years agoFix memory leak in UIHV screenshot feature 00/135200/1
Dmitry Kovalenko [Wed, 21 Jun 2017 07:14:21 +0000 (10:14 +0300)]
Fix memory leak in UIHV screenshot feature

Change-Id: Ib962fadbefc6925463a4618b1c91036c25d9bf88

7 years agoFix memory leak in UIHV screenshot feature 99/135199/1
Dmitry Kovalenko [Wed, 21 Jun 2017 07:14:21 +0000 (10:14 +0300)]
Fix memory leak in UIHV screenshot feature

Change-Id: Ib962fadbefc6925463a4618b1c91036c25d9bf88

7 years agoClean fm_app after parsing msg_start error 54/133154/1
Vyacheslav Cherkashin [Tue, 2 May 2017 13:24:31 +0000 (16:24 +0300)]
Clean fm_app after parsing msg_start error

Change-Id: I8a3987a5b841fba736cc9ddddf23bf6c6ccb8c09
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoCheck the instrumentation list on same apps 53/133153/1
Vyacheslav Cherkashin [Tue, 2 May 2017 13:10:50 +0000 (16:10 +0300)]
Check the instrumentation list on same apps

Change-Id: Id60d0eb1fd9b13787f44a5ffe289d53cf1b1a3e8
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agouihv: fix close socket (uihv - manager) after stop 52/133152/1
Vyacheslav Cherkashin [Tue, 2 May 2017 12:35:32 +0000 (15:35 +0300)]
uihv: fix close socket (uihv - manager) after stop

Change-Id: I94e824c1248eae5952b14250b92f54e4d7aaf755
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agouihv: fix socket message handling 51/133151/1
Vyacheslav Cherkashin [Tue, 25 Apr 2017 17:17:00 +0000 (20:17 +0300)]
uihv: fix socket message handling

Change-Id: I790b2e0fb1c0668c3c3546a7399ffce0df9af75b
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoStore screenshot with '.png' extension 50/133150/1
Vyacheslav Cherkashin [Mon, 24 Apr 2017 12:20:07 +0000 (15:20 +0300)]
Store screenshot with '.png' extension

Change-Id: I8f85c9e4b846c43e2b03ff7c41b0e7a0154d0783
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoMove uihv_data storing to manager 49/133149/1
Vyacheslav Cherkashin [Thu, 20 Apr 2017 21:09:36 +0000 (00:09 +0300)]
Move uihv_data storing to manager

Change-Id: I90f2b3dfbbe121dbd315566c114a23917de52155
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoFix storing uihv data to file 48/133148/1
Vyacheslav Cherkashin [Thu, 20 Apr 2017 19:25:40 +0000 (22:25 +0300)]
Fix storing uihv data to file

issues:
1. close file before sending file name
2. remove file when 'cancelled'

Change-Id: I8b4e98f95fdd5ec3d893b4c1b8f07dd5580c5bbf
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoMove ui_screenshot storing to manager 47/133147/1
Vyacheslav Cherkashin [Thu, 20 Apr 2017 18:28:51 +0000 (21:28 +0300)]
Move ui_screenshot storing to manager

Change-Id: Iee5c8bf1cd68a35d06fb120512704ac72e15e35f
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoMove screenshot storing to manager 46/133146/1
Vyacheslav Cherkashin [Wed, 19 Apr 2017 11:59:09 +0000 (14:59 +0300)]
Move screenshot storing to manager

Change-Id: I4c5cacbc18b3f44dd4d1504128cb01a2c66abb17
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoIncrease size of internel messages (probe - manager) 45/133145/1
Vyacheslav Cherkashin [Wed, 19 Apr 2017 11:59:09 +0000 (14:59 +0300)]
Increase size of internel messages (probe - manager)

Change-Id: I12dadbd4c564e3aadda42e0d4e9a1abc755007f9
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoUpdate md5.c (prevent overflow) 77/132677/1 accepted/tizen/3.0/common/20170612.121705 accepted/tizen/3.0/ivi/20170611.235715 accepted/tizen/3.0/mobile/20170611.235707 accepted/tizen/3.0/tv/20170611.235710 accepted/tizen/3.0/wearable/20170611.235712 submit/tizen_3.0/20170609.070110
Dmitry Kovalenko [Wed, 7 Jun 2017 05:24:23 +0000 (08:24 +0300)]
Update md5.c (prevent overflow)

Change-Id: I0e2c94ab1e7d8fc87cd41b2a79c33d17415e8999

7 years agoPass pthread's init data to preload module 58/131758/2
Alexander Aksenov [Fri, 26 May 2017 11:50:07 +0000 (14:50 +0300)]
Pass pthread's init data to preload module

This commit is related to swap-modules commit
Add per-process pthread init probes installation

Change-Id: If34de94641f0589c27d6be40c325ed21c89411b4
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoPreload: fix checking null addresses on generation 57/131757/2
Alexander Aksenov [Fri, 26 May 2017 12:27:48 +0000 (15:27 +0300)]
Preload: fix checking null addresses on generation

Change-Id: Ia02246882b585cc5a03b04569cc4b46914bdcab2
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoAdd different handler libs handling 87/111887/6
Alexander Aksenov [Tue, 24 Jan 2017 12:44:04 +0000 (15:44 +0300)]
Add different handler libs handling

This commit is related with same name commits in swap-probe
and swap-modules.

Change-Id: Id9576b9d27ee605b46aa165b3443fa9f75ba7d1b
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoSupport the whole 128 feature's bits in library. 52/111152/6
Alexander Aksenov [Thu, 19 Jan 2017 12:26:35 +0000 (15:26 +0300)]
Support the whole 128 feature's bits in library.

It will be useful to load libraries for preload features,
because they are on the last 64 bits of features now.
Also, features are passed as integers, not as string as before.

This commit is related with swap-probe commit of the same
name.

Change-Id: I57dde99357c630cf0385653b643e5c89048133dd
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoEnable preload features set 13/110713/4
Alexander Aksenov [Wed, 14 Dec 2016 16:58:28 +0000 (19:58 +0300)]
Enable preload features set

Change-Id: I9995294abfea92781addb0881c788076fc4cb724
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoAdd separated Preload features 12/110712/4
Alexander Aksenov [Tue, 13 Dec 2016 12:45:35 +0000 (15:45 +0300)]
Add separated Preload features

They are located in feature_code_1 structure due to a low
size in feature_code_0.
Related with swap-probe commit

Change-Id: Ie284f1391127ebac9fd24a95388a7bbff44298b8
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoPreload: send target bins to preload 11/110711/3
Alexander Aksenov [Thu, 1 Dec 2016 12:53:19 +0000 (15:53 +0300)]
Preload: send target bins to preload

Change-Id: If257255e902e6bfc29c064ccddc6726903cfcdc2
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoReplace TYPE_AND_INFO with TARGET_BINS message 10/110710/3
Alexander Aksenov [Thu, 1 Dec 2016 12:51:35 +0000 (15:51 +0300)]
Replace TYPE_AND_INFO with TARGET_BINS message

Now type of preload is not send
Related with swap-probe commit

Change-Id: I079f5737993ead26426771b26641fcf583048e78
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoClean fm_app after parsing msg_start error 61/127961/3 cherry-picked_to_tizen_3.0_dev
Vyacheslav Cherkashin [Tue, 2 May 2017 13:24:31 +0000 (16:24 +0300)]
Clean fm_app after parsing msg_start error

Change-Id: I8a3987a5b841fba736cc9ddddf23bf6c6ccb8c09
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoCheck the instrumentation list on same apps 60/127960/3
Vyacheslav Cherkashin [Tue, 2 May 2017 13:10:50 +0000 (16:10 +0300)]
Check the instrumentation list on same apps

Change-Id: Id60d0eb1fd9b13787f44a5ffe289d53cf1b1a3e8
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agouihv: fix close socket (uihv - manager) after stop 59/127959/3
Vyacheslav Cherkashin [Tue, 2 May 2017 12:35:32 +0000 (15:35 +0300)]
uihv: fix close socket (uihv - manager) after stop

Change-Id: I94e824c1248eae5952b14250b92f54e4d7aaf755
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agouihv: fix socket message handling 58/127958/3
Vyacheslav Cherkashin [Tue, 25 Apr 2017 17:17:00 +0000 (20:17 +0300)]
uihv: fix socket message handling

Change-Id: I790b2e0fb1c0668c3c3546a7399ffce0df9af75b
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoStore screenshot with '.png' extension 55/126655/1
Vyacheslav Cherkashin [Mon, 24 Apr 2017 12:20:07 +0000 (15:20 +0300)]
Store screenshot with '.png' extension

Change-Id: I8f85c9e4b846c43e2b03ff7c41b0e7a0154d0783
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoMove uihv_data storing to manager 55/126255/1 tizen_3.0_tv accepted/tizen/3.0/common/20170508.153035 accepted/tizen/3.0/ivi/20170508.050303 accepted/tizen/3.0/mobile/20170508.050231 accepted/tizen/3.0/tv/20170508.050241 accepted/tizen/3.0/wearable/20170508.050253 submit/tizen_3.0-common/20170508.080135 submit/tizen_3.0-common/20170508.081301 submit/tizen_3.0-common/20170508.091535 submit/tizen_3.0/20170421.095711 submit/tizen_3.0_common/20170508.091735 submit/tizen_3.0_tv/20170427.113216
Vyacheslav Cherkashin [Thu, 20 Apr 2017 21:09:36 +0000 (00:09 +0300)]
Move uihv_data storing to manager

Change-Id: I90f2b3dfbbe121dbd315566c114a23917de52155
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoFix storing uihv data to file 54/126254/1
Vyacheslav Cherkashin [Thu, 20 Apr 2017 19:25:40 +0000 (22:25 +0300)]
Fix storing uihv data to file

issues:
1. close file before sending file name
2. remove file when 'cancelled'

Change-Id: I8b4e98f95fdd5ec3d893b4c1b8f07dd5580c5bbf
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoMove ui_screenshot storing to manager 53/126253/1
Vyacheslav Cherkashin [Thu, 20 Apr 2017 18:28:51 +0000 (21:28 +0300)]
Move ui_screenshot storing to manager

Change-Id: Iee5c8bf1cd68a35d06fb120512704ac72e15e35f
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoMove screenshot storing to manager 39/126239/2
Vyacheslav Cherkashin [Wed, 19 Apr 2017 11:59:09 +0000 (14:59 +0300)]
Move screenshot storing to manager

Change-Id: I4c5cacbc18b3f44dd4d1504128cb01a2c66abb17
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoIncrease size of internel messages (probe - manager) 38/126238/1
Vyacheslav Cherkashin [Wed, 19 Apr 2017 11:59:09 +0000 (14:59 +0300)]
Increase size of internel messages (probe - manager)

Change-Id: I12dadbd4c564e3aadda42e0d4e9a1abc755007f9
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoRemove wearable target deps from nsp script 54/118254/2
Alexander Aksenov [Tue, 7 Mar 2017 16:03:14 +0000 (19:03 +0300)]
Remove wearable target deps from nsp script

Because now wearable and other targets have launchpad within
a same-named package

Change-Id: I3245cd6e9c66fa67c1ceb484349ab60abaf4fb1e
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoReplace variable assignment with memcpy for parse 37/120637/1
Alexander Aksenov [Thu, 23 Mar 2017 11:13:28 +0000 (14:13 +0300)]
Replace variable assignment with memcpy for parse

When message arrived, its packed, so depending on compiler it
may lead to unaligned memory access.

Change-Id: Ic9976904ad70a9610bb8b5f00886ec1474a7bee1
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoCalculate r_state offset 99/111699/1
Vyacheslav Cherkashin [Wed, 18 Jan 2017 13:50:32 +0000 (16:50 +0300)]
Calculate r_state offset

Change-Id: I50759b2dda812d2d710e0baffd10def18857594b
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoPort gen_gtp_data.sh to 64-bits 31/110731/2
Vyacheslav Cherkashin [Mon, 16 Jan 2017 13:24:50 +0000 (16:24 +0300)]
Port gen_gtp_data.sh to 64-bits

Change-Id: I8c19a03953caac6e126e6d31622aab10569a7c9e
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoport ioctl to 64-bit 30/110730/1
Vyacheslav Cherkashin [Tue, 20 Dec 2016 13:39:49 +0000 (16:39 +0300)]
port ioctl to 64-bit

Change-Id: Ieae377cb2e39a27557defc164680b68c84dc6fcd
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoadd support 64-bits paths 29/110729/1
Vyacheslav Cherkashin [Tue, 20 Dec 2016 13:38:21 +0000 (16:38 +0300)]
add support 64-bits paths

Change-Id: If95dd482e3f901648a5561d0945c9e1178f54fb2
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoFix build on ARM64 28/110728/1
Vyacheslav Cherkashin [Tue, 20 Dec 2016 13:23:21 +0000 (16:23 +0300)]
Fix build on ARM64

Change-Id: If4f5c7788fbbbe204bda7e5f5a5ed8e9058c3f61
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoAdd support new elf_parser interface 27/110727/1
Vyacheslav Cherkashin [Thu, 15 Dec 2016 19:01:05 +0000 (22:01 +0300)]
Add support new elf_parser interface

Change-Id: Ifcddd457accf9470286b9dacb041587bac7da7eb
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoDisable WSI and WSP for MCD products 10/110210/2 accepted/tizen/3.0/common/20170123.132048 accepted/tizen/3.0/ivi/20170123.095536 accepted/tizen/3.0/mobile/20170123.095507 accepted/tizen/3.0/tv/20170123.095521 accepted/tizen/3.0/wearable/20170123.095527 accepted/tizen/common/20170120.125222 accepted/tizen/ivi/20170120.122309 accepted/tizen/mobile/20170120.122223 accepted/tizen/tv/20170120.122239 accepted/tizen/wearable/20170120.122254 submit/tizen/20170120.081113 submit/tizen_3.0/20170120.093924
Dmitry Kovalenko [Fri, 13 Jan 2017 08:23:36 +0000 (11:23 +0300)]
Disable WSI and WSP for MCD products

Change-Id: I25f35510ce582fadbf6775ead733ba7cbc793b1a
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agoMerge branch 'tizen_3.0' into tizen 55/109755/1
Dmitry Kovalenko [Wed, 11 Jan 2017 11:41:49 +0000 (14:41 +0300)]
Merge branch 'tizen_3.0' into tizen

Change-Id: I0c9143ad99fcb28c1f5c595d86dae221f9b27b0e

7 years agoRemove the dependency to debug repository 75/107975/3
Gihun Chang [Mon, 2 Jan 2017 06:42:11 +0000 (15:42 +0900)]
Remove the dependency to debug repository

Change-Id: I3f35d064516b82b2baa404636797d4e6cbe8a4cc

7 years agoUIHV: ignore SIGPIPE on send() call 72/109272/1
Vitaliy Cherepanov [Mon, 9 Jan 2017 12:28:40 +0000 (15:28 +0300)]
UIHV: ignore SIGPIPE on send() call

add MSG_NOSIGNAL to send function

Change-Id: I6fb8bfdd396ca47fa7119e6550f658681cb4122d
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
7 years agoDO NOT HARDCODE LIBDIR 45/107845/1
MyungJoo Ham [Fri, 30 Dec 2016 06:44:55 +0000 (15:44 +0900)]
DO NOT HARDCODE LIBDIR

Never ever do that again.

It breaks the build in other system.

Change-Id: I941345e686bc87230b8ca84427a0a60fd386ff10
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
7 years agoDestroy wayland queue using for capturing screenshots 40/107740/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.141808 accepted/tizen/3.0.m2/tv/20170104.142141 accepted/tizen/3.0.m2/wearable/20170104.142433 accepted/tizen/3.0/common/20161230.054958 accepted/tizen/3.0/ivi/20161230.011105 accepted/tizen/3.0/mobile/20161230.011010 accepted/tizen/3.0/tv/20161230.011028 accepted/tizen/3.0/wearable/20161230.011046 submit/tizen_3.0.m2/20170104.093751 submit/tizen_3.0/20161229.144139
Anatolii Nikulin [Tue, 27 Dec 2016 15:43:39 +0000 (18:43 +0300)]
Destroy wayland queue using for capturing screenshots

Change-Id: I348a4e8213718d8a40d371f77057d4e9bdbf6d6b
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
7 years agoFor wsi socket show errno messages 12/106412/4 accepted/tizen/3.0/common/20161229.113048 accepted/tizen/3.0/ivi/20161229.055556 accepted/tizen/3.0/mobile/20161229.055446 accepted/tizen/3.0/tv/20161229.055513 accepted/tizen/3.0/wearable/20161229.055538 submit/tizen_3.0/20161228.101250 submit/tizen_3.0/20161228.131331
Anatolii Nikulin [Wed, 21 Dec 2016 12:59:38 +0000 (15:59 +0300)]
For wsi socket show errno messages

Change-Id: Ib9df29ba6b8e1f341dd8298ec723ba2636e6b8fd
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
7 years agoFix extracting WSP data from chromium-efl for TV 00/106900/2
Anatolii Nikulin [Fri, 23 Dec 2016 12:08:06 +0000 (15:08 +0300)]
Fix extracting WSP data from chromium-efl for TV

Change-Id: I12accfc4d945c4e7a1f58e960d7314acfafe8321
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
7 years agoBuild with -Wno-deprecated-declarations: readdir_r 08/106708/1 submit/tizen/20161223.084617
Ivan Baravy [Thu, 10 Nov 2016 18:00:44 +0000 (21:00 +0300)]
Build with -Wno-deprecated-declarations: readdir_r

Remove unused variable: ui_viewer_utils.c:TMP_BUF_SIZE

Change-Id: I0d16ea1736824eaecaeb3d37b5cc90f5b9d99911

7 years agoFix build break with gcc6x 07/106707/1
Jaehun Jeong [Wed, 9 Nov 2016 10:41:42 +0000 (19:41 +0900)]
Fix build break with gcc6x

Change-Id: I85cb07b5a73983bab8bce9e6fdd4f81c8af9c121
Signed-off-by: Jaehun Jeong <jh4u.jeong@samsung.com>
7 years agoFix possible buffer overrun in fscanf 04/106104/1 accepted/tizen/3.0/common/20161221.181343 accepted/tizen/3.0/ivi/20161221.011350 accepted/tizen/3.0/mobile/20161221.011737 accepted/tizen/3.0/tv/20161221.011148 accepted/tizen/3.0/wearable/20161221.011455 accepted/tizen/common/20161220.191042 accepted/tizen/ivi/20161220.223905 accepted/tizen/mobile/20161220.223842 accepted/tizen/tv/20161220.223847 accepted/tizen/wearable/20161220.223851 submit/tizen/20161220.122925 submit/tizen_3.0/20161220.122857
Dmitry Kovalenko [Tue, 20 Dec 2016 11:16:24 +0000 (14:16 +0300)]
Fix possible buffer overrun in fscanf

Change-Id: Ie1992c82210a591b50fc9356672cbd9615b249e8

7 years agoFix SVACE issue 66/104366/2 accepted/tizen/3.0/common/20161215.164004 accepted/tizen/3.0/ivi/20161215.045457 accepted/tizen/3.0/mobile/20161215.045341 accepted/tizen/3.0/tv/20161215.045428 accepted/tizen/3.0/wearable/20161215.045447 accepted/tizen/common/20161214.160952 accepted/tizen/ivi/20161215.073309 accepted/tizen/mobile/20161215.073224 accepted/tizen/tv/20161215.073242 accepted/tizen/wearable/20161215.073254 submit/tizen/20161214.104530 submit/tizen_3.0/20161214.104520
Dmitry Kovalenko [Tue, 13 Dec 2016 07:40:22 +0000 (10:40 +0300)]
Fix SVACE issue

check json_object_array_get_idx() function return value

additionaly:
check json_tokener_parse() functions return value

Change-Id: I8eb59663a6c77c7ae0f6aa19478cbae905a78c19
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agoAlready running profiling support. 23/103523/5 accepted/tizen/3.0/common/20161213.163342 accepted/tizen/3.0/ivi/20161213.091237 accepted/tizen/3.0/mobile/20161213.091104 accepted/tizen/3.0/tv/20161213.091158 accepted/tizen/3.0/wearable/20161213.091211 accepted/tizen/common/20161210.162132 accepted/tizen/ivi/20161212.025656 accepted/tizen/mobile/20161212.025551 accepted/tizen/tv/20161212.025625 accepted/tizen/wearable/20161212.025643 submit/tizen/20161209.134902 submit/tizen_3.0/20161209.134853
Vitaliy Cherepanov [Thu, 8 Dec 2016 13:32:10 +0000 (16:32 +0300)]
Already running profiling support.

Change-Id: I6942146ce47d18ac7e374daf8554b938d57c678f
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
7 years agoUIHV: Fix data_buf initialization 28/103528/2
Alexander Aksenov [Wed, 7 Dec 2016 16:25:27 +0000 (19:25 +0300)]
UIHV: Fix data_buf initialization

Previously data_buf was NULL for log.length > 0 &&
log.length < sizeof(log.data)

Svace issue.

Change-Id: I74004cef90c2c7b05397af3b7256292a07928e85
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoAdd checking maximum raw message size 17/103217/2
Alexander Aksenov [Wed, 7 Dec 2016 15:02:12 +0000 (18:02 +0300)]
Add checking maximum raw message size

It's max size is the same as in writer module.
Svace issue.

Change-Id: Icc5d34e67533ab675af35cd2398daf5b9be860d3
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoFix checking dlsym address 16/103216/2
Alexander Aksenov [Wed, 7 Dec 2016 14:00:58 +0000 (17:00 +0300)]
Fix checking dlsym address

Svace issue

Change-Id: I571691fe830dfc589e4cf324e4c3522981b1e585
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoFix checking error on gem init 15/103215/2
Alexander Aksenov [Wed, 7 Dec 2016 14:00:23 +0000 (17:00 +0300)]
Fix checking error on gem init

Svace issue

Change-Id: I26918bfd866a1d2ba998225bc1d5b16ce0c22b11
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoAdd initial version of reformated SWAP protocol document 39/98439/7
Dmitry Kovalenko [Thu, 17 Nov 2016 09:25:20 +0000 (12:25 +0300)]
Add initial version of reformated SWAP protocol document

Protocol is in reStructuredText format.
It can be used as it is or converted to html using docutils (Makefile included )

Change-Id: I73b2dd65c7adf9fd45547c4e038cb5ea53a94f8e
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agoAdd copyright about code copied from wayland 95/103195/1 SRR_20161209 accepted/tizen/3.0/common/20161208.153824 accepted/tizen/3.0/ivi/20161208.065352 accepted/tizen/3.0/mobile/20161208.065258 accepted/tizen/3.0/tv/20161208.065327 accepted/tizen/3.0/wearable/20161208.065341 accepted/tizen/common/20161207.184827 accepted/tizen/ivi/20161208.012959 accepted/tizen/mobile/20161208.012905 accepted/tizen/tv/20161208.012927 accepted/tizen/wearable/20161208.012939 submit/tizen/20161207.141311 submit/tizen_3.0/20161207.141254 submit/tizen_3.0/20161208.043057
Dmitry Kovalenko [Wed, 7 Dec 2016 13:30:43 +0000 (16:30 +0300)]
Add copyright about code copied from wayland

Change-Id: Iadcfcb7e15b6e349367083c9414b6e6dac828304

7 years agoAdd removing GOT patcher probes on stop 07/101307/5
Anatolii Nikulin [Wed, 30 Nov 2016 15:04:26 +0000 (18:04 +0300)]
Add removing GOT patcher probes on stop

Change-Id: Ib49e36020d2ead7ffaf68cd3df9c11566c8f34e8
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
7 years agoEnable Web startup profiling 01/101301/4
Anatolii Nikulin [Wed, 30 Nov 2016 14:39:39 +0000 (17:39 +0300)]
Enable Web startup profiling

Change-Id: I9938acefe6515d23d117ee1e3d71c558abb9438b
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
7 years agoUpdate memps from mainstream 66/96866/2 accepted/tizen/common/20161124.170304 accepted/tizen/ivi/20161125.005147 accepted/tizen/mobile/20161125.005057 accepted/tizen/tv/20161125.005110 accepted/tizen/wearable/20161125.005132 submit/tizen/20161124.145503 submit/tizen_3.0/20161124.145651 submit/tizen_3.0/20161124.145720
Anatolii Nikulin [Thu, 10 Nov 2016 11:39:57 +0000 (14:39 +0300)]
Update memps from mainstream

Change-Id: I45753fcd754a4403109f2262486363679c0a5cd9
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>