platform/core/system/swap-manager.git
6 years agoClean protocol documentation 32/159532/8
Anastasia Lyupa [Thu, 9 Nov 2017 11:31:14 +0000 (14:31 +0300)]
Clean protocol documentation

Remove obsolete configuration, DA host sections.

Change-Id: Ied6be4fa4703838c4940d854d669c79acb715f0b
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
6 years agoFix MSG_SYSTEM size packing 96/159896/3
Alexander Aksenov [Mon, 13 Nov 2017 12:49:46 +0000 (15:49 +0300)]
Fix MSG_SYSTEM size packing

Change-Id: I2976be1042ff65694f472488cd97890620a22925
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoTrace Parser: add API map list support 57/160157/6
Alexander Aksenov [Tue, 14 Nov 2017 16:24:30 +0000 (19:24 +0300)]
Trace Parser: add API map list support

Just specify it with -a

Change-Id: I1a6754ebdafc4c7ea05d81782b517d82b5336c40
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoCLI: store api_map_list with the related trace 56/160156/5
Alexander Aksenov [Tue, 14 Nov 2017 15:04:06 +0000 (18:04 +0300)]
CLI: store api_map_list with the related trace

Change-Id: Ib38880da64e538814421978af9d979cbf50311b2
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoTrace Parser: getting trace data from file 19/160119/11
Alexander Aksenov [Tue, 14 Nov 2017 11:46:38 +0000 (14:46 +0300)]
Trace Parser: getting trace data from file

- add getting device and protocol data about trace from session data file
or from default values;
- remove magic numbers from protocol parsing.

Change-Id: I1964f8db0287f5d2455e34fce2df436b0aea8f7e
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoCLI: add trace info saving to session_info.json 18/160118/7
Alexander Aksenov [Mon, 13 Nov 2017 15:23:46 +0000 (18:23 +0300)]
CLI: add trace info saving to session_info.json

Change-Id: I0e647d5d9598823a23653250b35e6a271eaef24e
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoTrace Parser: add CSV output support 87/159387/12
Alexander Aksenov [Fri, 3 Nov 2017 10:44:25 +0000 (13:44 +0300)]
Trace Parser: add CSV output support

Change-Id: Ib8826b11988619690e80bd1e314f532d359676e1
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoTrace Parser: add JSON output support 22/158722/14
Alexander Aksenov [Thu, 2 Nov 2017 12:25:34 +0000 (15:25 +0300)]
Trace Parser: add JSON output support

Change-Id: Ia9246acea475f56ea73659357c220b07dbbde84e
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoTrace Parser: add python output support 33/158533/16
Alexander Aksenov [Wed, 1 Nov 2017 11:45:13 +0000 (14:45 +0300)]
Trace Parser: add python output support

Change-Id: I0f56fe49cb3daa8fe7aa22d067850aef93f717e4
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoTrace Parser: initial commit 02/158402/17
Alexander Aksenov [Tue, 17 Oct 2017 14:57:39 +0000 (17:57 +0300)]
Trace Parser: initial commit

Change-Id: If6862a6b9ee2200209dfbb05ae0388ea85feba68
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoAdd armv7hl architecture support 20/157620/3 submit/tizen/20171030.044443
Dongkyun Son [Wed, 25 Oct 2017 10:04:19 +0000 (19:04 +0900)]
Add armv7hl architecture support

Support option "-mfloat-abi=hard".

Change-Id: I89d702c09e1deef8d74eedd765e4a7eb7588b144
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
Signed-off-by: Chan Lee <chan45.lee@samsung.com>
7 years agoCLI: fix already running config parsing 36/155936/2
Alexander Aksenov [Mon, 16 Oct 2017 12:36:19 +0000 (15:36 +0300)]
CLI: fix already running config parsing

Change-Id: I13c8c56b79c478ebab8121f49d43064ce3267d40
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoMerge branch 'tizen_4.0' into tizen 46/156046/1 accepted/tizen/unified/20171017.071205 submit/tizen/20171017.050426
Dmitry Kovalenko [Mon, 16 Oct 2017 12:46:21 +0000 (15:46 +0300)]
Merge branch 'tizen_4.0' into tizen

Change-Id: Ibdfc28dee8ac39eed79589917131a7df2cb6aea4

7 years agoCLI: implement LSan feature support 96/153996/7
Alexander Aksenov [Wed, 4 Oct 2017 16:30:35 +0000 (19:30 +0300)]
CLI: implement LSan feature support

Change-Id: I9c767ee098a90f9ce13ec189852d29516ae3d043
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoCLI: implement custom features init mechanism 95/153995/7
Alexander Aksenov [Tue, 3 Oct 2017 20:02:39 +0000 (23:02 +0300)]
CLI: implement custom features init mechanism

Now features have an interface for custom init functions.
This is important preparation for LSan support implementation

Change-Id: Ib744d88f728ea504587d6811210bceadb662d4ef
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoCLI: initial implementation 59/149959/10
Alexander Aksenov [Wed, 13 Sep 2017 17:20:31 +0000 (20:20 +0300)]
CLI: initial implementation

Change-Id: I076770a5243ea8bb4de509e37c14f94ca3c8534c
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoImplement target bins removing 06/154606/2
Alexander Aksenov [Wed, 4 Oct 2017 18:54:38 +0000 (21:54 +0300)]
Implement target bins removing

Now removing of target bins is handled, they are cleaned on
uninit, messages SWAP_INST_ADD and SWAP_INST_REMOVE handled
in different ways

This commit is related with the same name commit for swap-probe

Change-Id: I85da23d586c685fe0dde75ef79512447ce923a09
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoDon't build for usupported targets 44/154544/1 accepted/tizen/4.0/unified/20171011.071641 submit/tizen_4.0/20171010.120000 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release
Dmitry Kovalenko [Tue, 10 Oct 2017 11:50:45 +0000 (14:50 +0300)]
Don't build for usupported targets

Change-Id: Ic84067fcb2537fdb20f99806ce69a96e5e10968f
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agowsi: remove feature 09/153909/2 submit/tizen_4.0/20171010.091636
Vyacheslav Cherkashin [Tue, 3 Oct 2017 07:28:32 +0000 (10:28 +0300)]
wsi: remove feature

Change-Id: Ia20fe64ca276210893dec8f73a4039e517df08f9
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoMerge branch 'tizen_4.0' into tizen 03/153903/1
Dmitry Kovalenko [Tue, 3 Oct 2017 06:41:12 +0000 (09:41 +0300)]
Merge branch 'tizen_4.0' into tizen

Change-Id: Ia438c290754f7705ee2e4ecb0ce4b97868131fc2

7 years agoAdd MIT License 46/153346/1 submit/tizen_4.0/20170929.084642 submit/tizen_4.0/20170929.085108
Dmitry Kovalenko [Thu, 28 Sep 2017 08:52:27 +0000 (11:52 +0300)]
Add MIT License

Change-Id: Ie35aa0bf9544e263b9b8b0017639e64a756b3313
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agoMerge branch 'tizen_3.0' into tizen_4.0 36/152636/1
Dmitry Kovalenko [Tue, 26 Sep 2017 15:57:24 +0000 (18:57 +0300)]
Merge branch 'tizen_3.0' into tizen_4.0

Change-Id: Ic9c6a6fd8aa44c1900020786b8642f082a1f44ea

7 years agolsan: use the swap_auxd for report saving 31/152631/3
Vyacheslav Cherkashin [Tue, 26 Sep 2017 13:23:29 +0000 (16:23 +0300)]
lsan: use the swap_auxd for report saving

Change-Id: I6aad791b0fe3daee8227cf9c0b8b802c08ddcfe2
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
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 build for Tizen 4.0 (redundant const) 16/152616/1 accepted/tizen/4.0/unified/20170927.045813 submit/tizen_4.0/20170926.135638
Dmitry Kovalenko [Tue, 26 Sep 2017 13:10:30 +0000 (16:10 +0300)]
Fix build for Tizen 4.0 (redundant const)

Change-Id: Ic245ba1ad75eba6df6eb47887dea9dc3f72d2327
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agomemd: fix SVACE issue 29/151729/3 submit/tizen_4.0/20170926.110401
Vyacheslav Cherkashin [Thu, 21 Sep 2017 15:45:01 +0000 (18:45 +0300)]
memd: fix SVACE issue

Storing local variable in global one

Change-Id: I7a1f8a6bc84cfd44a06c0b0c3fd81b44bca65618
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agomanager: fix memory leak 28/151728/2
Vyacheslav Cherkashin [Thu, 21 Sep 2017 13:46:28 +0000 (16:46 +0300)]
manager: fix memory leak

Change-Id: I5ecb9f0a4f8f14f4045de4f60f23eeb664009295
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoutils: add makeUnique() 27/151727/2
Vyacheslav Cherkashin [Thu, 21 Sep 2017 13:41:29 +0000 (16:41 +0300)]
utils: add makeUnique()

Change-Id: Ic429ab276cab4c62dd157f12650426bb1fa82303
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@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 agoAdd process_features() addr passing to kernel 91/151091/1
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 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 agoUse proper variable type for IFUNC processing 92/150192/1 accepted/tizen/4.0/unified/20170922.195336 submit/tizen_4.0/20170914.151352 submit/tizen_4.0/20170921.090351
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 agoMerge branch 'tizen_4.0' into tizen 07/149907/1
Alexander Aksenov [Wed, 13 Sep 2017 12:40:57 +0000 (15:40 +0300)]
Merge branch 'tizen_4.0' into tizen

Change-Id: I767c638d36186aaa2954425a58002dea614c639e
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoMerge branch 'tizen_3.0' into tizen_4.0 87/149887/1 accepted/tizen/4.0/unified/20170913.154111 submit/tizen_4.0/20170913.123755
Dmitry Kovalenko [Wed, 13 Sep 2017 11:28:10 +0000 (14:28 +0300)]
Merge branch 'tizen_3.0' into tizen_4.0

Change-Id: Ic08cfec055967392f8c5ec35e83179859e261e22

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 agoMerge branch 'tizen_3.0' into tizen_4.0 13/149613/1
Dmitry Kovalenko [Tue, 12 Sep 2017 15:09:22 +0000 (18:09 +0300)]
Merge branch 'tizen_3.0' into tizen_4.0

Change-Id: I2d7c02348dcaf6e9370cd75cb0d2d12cea18066e

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 agoMerge branch 'tizen_3.0' into tizen_4.0 51/149451/2
Dmitry Kovalenko [Tue, 12 Sep 2017 08:39:04 +0000 (11:39 +0300)]
Merge branch 'tizen_3.0' into tizen_4.0

Change-Id: I5ea2e3b65259148625f0b8b4313bba8e44bb4e42

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 unhandled malloc error 55/144155/3 submit/tizen/20170815.123151 submit/tizen_3.0/20170815.122854
Dmitry Kovalenko [Tue, 15 Aug 2017 07:25:12 +0000 (10:25 +0300)]
Fix unhandled malloc error

Change-Id: I575898f4149968b6156e6390050261d2b81f21d5
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agoAdd -fpie and -pie option (ASLR) 02/144002/1 accepted/tizen/4.0/unified/20170829.020554 accepted/tizen/unified/20170816.053816 submit/tizen/20170814.123808 submit/tizen_4.0/20170828.100004
Dmitry Kovalenko [Mon, 14 Aug 2017 07:42:43 +0000 (10:42 +0300)]
Add -fpie and -pie option (ASLR)

Change-Id: I810d43e27b7c3e3000c5e994edc5a95075c2e8f1
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agoMerge branch 'tizen_3.0_dev' into tizen 46/141146/1 submit/tizen/20170728.085237
Dmitry Kovalenko [Fri, 28 Jul 2017 08:49:50 +0000 (11:49 +0300)]
Merge branch 'tizen_3.0_dev' into tizen

Change-Id: Ib25584e0ee19b04e36cfb4bf570aa924082c08bf

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 agoReplace deprecated readir_r with readdir 74/133274/1 accepted/tizen/4.0/unified/20170816.012049 accepted/tizen/4.0/unified/20170816.015057 accepted/tizen/unified/20170629.085413 submit/tizen/20170616.051114 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0_unified/20170814.115522
Dmitry Kovalenko [Fri, 9 Jun 2017 11:52:27 +0000 (14:52 +0300)]
Replace deprecated readir_r with readdir

Change-Id: I5e48ac91d69709da5383bd390eb1bc376c859371

7 years agoMerge branch 'tizen_3.0_dev' into tizen 65/133165/1
Dmitry Kovalenko [Fri, 9 Jun 2017 05:42:36 +0000 (08:42 +0300)]
Merge branch 'tizen_3.0_dev' into tizen

Change-Id: Ifa62595050ce61207dd07a18d9f8a335a3212834

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>