platform/core/system/swap-manager.git
6 years agoTrace Parser: now compiled with C++14 standard 45/164145/4
Alexander Aksenov [Fri, 15 Dec 2017 13:26:43 +0000 (16:26 +0300)]
Trace Parser: now compiled with C++14 standard

Support more old GCC versions

Change-Id: Ic82b5e323a6fbc96097b04e321539aa007d88040
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoCLI: fix old versions port getting 44/164144/4
Alexander Aksenov [Fri, 15 Dec 2017 13:24:50 +0000 (16:24 +0300)]
CLI: fix old versions port getting

Change-Id: I73847c8807742922af73fea9b838fc88ba5da611
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoUpdate MSG_SYSTEM description in Data section in protocol documentation 54/162854/3
Maria Guseva [Mon, 27 Nov 2017 09:03:12 +0000 (12:03 +0300)]
Update MSG_SYSTEM description in Data section in protocol documentation

Change-Id: If2d47250bc084a647f5a38eaea8a4a9be9e2672b
Signed-off-by: Maria Guseva <m.guseva@samsung.com>
6 years agoCLI: fix exception throwing after send start message 97/162397/2
Vyacheslav Cherkashin [Thu, 30 Nov 2017 17:39:15 +0000 (20:39 +0300)]
CLI: fix exception throwing after send start message

Increase the timeout for control messages acknowledge

Change-Id: Ibee809618fe6a1be1f53ab7ccf2036ac931ba0ee
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoCLI: add stop return value and timeout 60/160660/4
Vyacheslav Cherkashin [Thu, 16 Nov 2017 20:21:10 +0000 (23:21 +0300)]
CLI: add stop return value and timeout

If nc finished during timeout True return, False otherwise

Change-Id: Iae6ae93a11efe095c9e972c207ca526115046e49
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoCLI: make 'function_inst' optional in instrumentation config 05/160305/6
Vyacheslav Cherkashin [Tue, 14 Nov 2017 15:27:26 +0000 (18:27 +0300)]
CLI: make 'function_inst' optional in instrumentation config

Change-Id: I6aac79c0f227d4bad3a7b77dd3f572e5040b9e87
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoCLI: make 'ip' optional in target config 04/160304/6
Vyacheslav Cherkashin [Tue, 14 Nov 2017 15:23:03 +0000 (18:23 +0300)]
CLI: make 'ip' optional in target config

Change-Id: I8d32778c3cd8c65f0ebe52214e201efd6dc07eee
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoCLI: make 'probe_features' optional in instrumentation config 03/160303/6
Vyacheslav Cherkashin [Tue, 14 Nov 2017 15:21:24 +0000 (18:21 +0300)]
CLI: make 'probe_features' optional in instrumentation config

Change-Id: I9e28e8d500193e339be1d3ad43f018b41d62a3ea
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoCLI: make 'sampling' optional in instrumentation config 02/160302/6
Vyacheslav Cherkashin [Tue, 14 Nov 2017 15:15:26 +0000 (18:15 +0300)]
CLI: make 'sampling' optional in instrumentation config

Set default preiod (100) if sampling option is not set

Change-Id: I3cbd486f5ce190222df42982bc127e94e20e6596
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoCLI: fix getting port from target 01/160301/5
Vyacheslav Cherkashin [Tue, 14 Nov 2017 14:54:17 +0000 (17:54 +0300)]
CLI: fix getting port from target

Change-Id: I6c37f09497962905909e55b5dc175ea28968a53a
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoCLI: user guide fix 46/162646/3
Alexander Aksenov [Mon, 4 Dec 2017 17:53:35 +0000 (20:53 +0300)]
CLI: user guide fix

Change-Id: Ib5e21c123b957da81b9481373aba9d0f1eb1c8d5
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoCLI: add RELEASE NOTES 75/162575/2 SWAP-CLI_1.0
Alexander Aksenov [Mon, 4 Dec 2017 08:56:54 +0000 (11:56 +0300)]
CLI: add RELEASE NOTES

Change-Id: I5d307cd6eedc22eaff25a5c026e33b468ff86931
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoCLI: add user-guide readme 71/162471/1
Alexander Aksenov [Fri, 1 Dec 2017 12:28:06 +0000 (15:28 +0300)]
CLI: add user-guide readme

Change-Id: I1de3da7a680207277b088e4fcb8e5ee5386b286b
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoTrace Parser: add RELEASE NOTES 34/162034/5
Alexander Aksenov [Tue, 28 Nov 2017 14:35:02 +0000 (17:35 +0300)]
Trace Parser: add RELEASE NOTES

Change-Id: I55f27e334195974fc52c75ece549826e708f61d4
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoCLI: add UIHV error codes 63/161763/8
Alexander Aksenov [Mon, 27 Nov 2017 09:10:33 +0000 (12:10 +0300)]
CLI: add UIHV error codes

Change-Id: I178f7e5d4236f21dfc9c73138ad143a626a1f86f
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoTrace Parser: ignore buffer of 0 size 35/161235/12
Alexander Aksenov [Tue, 21 Nov 2017 19:11:48 +0000 (22:11 +0300)]
Trace Parser: ignore buffer of 0 size

Change-Id: Ic2361af3e640e93f22afb66405263257c3fc9410
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoCLI: add context switch and always features 34/161234/10
Alexander Aksenov [Tue, 21 Nov 2017 18:26:33 +0000 (21:26 +0300)]
CLI: add context switch and always features

Change-Id: I91a8f38bd90a668d8420b7bdb4aa53e086810c2f
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoTrace Parser: add Readme and user guide 73/160873/12
Alexander Aksenov [Mon, 20 Nov 2017 09:41:26 +0000 (12:41 +0300)]
Trace Parser: add Readme and user guide

Change-Id: I7508dff6c5cf32e851a05dc3a3daeb5eee88eebf
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoFix and refactor protocol documentation 12/161812/3
Anastasia Lyupa [Mon, 27 Nov 2017 09:34:01 +0000 (12:34 +0300)]
Fix and refactor protocol documentation

- created types table,
  used it in args and return descriptions.
- added GEM, 3D memory to MSG_SYSTEM
- fixed MSG_LSAN
- fixed MSG_WEB_APP_SETUP_STAGE
- added sockets info to MSG_PROCESS_STATUS_INFO

Change-Id: I65f57cb8a08e7a0ca7160c1ea60c4d51eb895b53
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
6 years agoCreate protocol documentation with Sphinx 95/161595/7
Anastasia Lyupa [Mon, 20 Nov 2017 10:53:13 +0000 (13:53 +0300)]
Create protocol documentation with Sphinx

- add sphinx header
- add sphinx references inside protocol doc file
- replace section numbers by auto numbering
- refactor protocol doc file
- remove rest2html makefile
- add sphinx build script
- add sphinx configuration file

build: make html

Change-Id: If95c7776dfb010e330864e84ad77b906d33a2575
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
6 years agoUpdate Probes section in protocol documentation 82/160682/8
Anastasia Lyupa [Fri, 17 Nov 2017 12:11:46 +0000 (15:11 +0300)]
Update Probes section in protocol documentation

Change-Id: I69a9876df78a5fe4c6cdc4c3a8b7fbd63a2b5e46
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
6 years agoRefactor UIHV section in protocol documentation 19/160519/8
Anastasia Lyupa [Thu, 16 Nov 2017 12:03:09 +0000 (15:03 +0300)]
Refactor UIHV section in protocol documentation

Change-Id: I6ef9b58f2c45c33b034427f32d0e8cff91a988a6
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
6 years agoUpdate Data section in protocol documentation 70/160470/9
Anastasia Lyupa [Wed, 15 Nov 2017 12:07:56 +0000 (15:07 +0300)]
Update Data section in protocol documentation

Updated Data channel subsections:
 - Basic data message format,
 - Data message list

Change-Id: Ie05ce9a5b22e99ef0b2c452ca5519ed44844c1c5
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
6 years agoUpdate Control section in protocol documentation 75/158675/16
Anastasia Lyupa [Thu, 2 Nov 2017 08:35:08 +0000 (11:35 +0300)]
Update Control section in protocol documentation

Update basic and control sections according to source code,
refactor type columns, added descriptions

Change-Id: Ibe69a62966314bc8bee3be76c67168a278c53928
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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

6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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

6 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>
6 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

6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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

6 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

6 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>
6 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

6 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>
6 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>
6 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

6 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>
6 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>
6 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

6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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

6 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

6 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

6 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