platform/core/system/swap-probe.git
4 years agoFixed thread unsafe evas utilization in sreenshot capture 46/246446/1 accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/wearable/hotfix/20201103.003346 submit/tizen_5.5_wearable_hotfix/20201030.062912
Andrey Kazmin [Tue, 15 Sep 2020 12:49:28 +0000 (15:49 +0300)]
Fixed thread unsafe evas utilization in sreenshot capture

Change-Id: I8d4e548852ed6d5891c184203ba61fb7aa396c23
Signed-off-by: Andrey Kazmin <a.kazmin@partner.samsung.com>
(cherry picked from commit b996e05470f9c1d7b6160a7b504a690feffe70ad)

5 years agoFix libdl library internal implementation 72/202372/3 tizen_5.5_tv accepted/tizen/5.5/unified/20191031.014931 accepted/tizen/5.5/unified/mobile/hotfix/20201027.075120 accepted/tizen/5.5/unified/wearable/hotfix/20201027.112317 accepted/tizen/unified/20190328.234720 submit/tizen/20190328.143837 submit/tizen_5.5/20191031.000005 submit/tizen_5.5_mobile_hotfix/20201026.185105 submit/tizen_5.5_wearable_hotfix/20201026.184304 tizen_5.5.m2_release
Vyacheslav Cherkashin [Wed, 27 Mar 2019 13:00:43 +0000 (16:00 +0300)]
Fix libdl library internal implementation

 Internal calls to __libc_dl* of libc library do not match
the API of the libdl library so we use the libdl library to
implement the internal::dl* API.

Change-Id: I2954df0bdae2132408a78c337f38ffbbf778ac18
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
5 years agoAdd LIKELY/UNLIKELY for branch prediction 51/202451/1
Vyacheslav Cherkashin [Thu, 28 Mar 2019 11:26:43 +0000 (14:26 +0300)]
Add LIKELY/UNLIKELY for branch prediction

Change-Id: I540156d70b4ff693f63b9faf63579fb981b58fe9
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
5 years agoRemove swap-probe-lsan package 52/199152/1 accepted/tizen/unified/20190218.163247 submit/tizen/20190215.111435
Vyacheslav Cherkashin [Tue, 5 Feb 2019 17:11:50 +0000 (20:11 +0300)]
Remove swap-probe-lsan package

This commit removes internal LSan library

Change-Id: If2f5508fd885b8aa257615a4ec687b3335b828c5
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
5 years agoFix SVACE issues 95/198995/4 accepted/tizen/unified/20190211.060129 submit/tizen/20190205.121525
Vyacheslav Cherkashin [Thu, 31 Jan 2019 13:48:07 +0000 (16:48 +0300)]
Fix SVACE issues

- add safe cast ssize_t to uint64_t
- fix call logs at the wrong time
- add check return code for remove()

Change-Id: Id864d60dfe5d55ee7a1e201d983a9afb5128ad2b
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
5 years agoAdd injection support for dynamic-loading libraries 16/198316/4
Vyacheslav Cherkashin [Wed, 23 Jan 2019 16:27:55 +0000 (19:27 +0300)]
Add injection support for dynamic-loading libraries

Change-Id: I095ffe7ea03cb93bba7ff3f8a9580cfe25d1dba5
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
5 years agoSet LSAN_OPTIONS through environment 52/196352/8
Vyacheslav Cherkashin [Thu, 27 Dec 2018 10:52:29 +0000 (13:52 +0300)]
Set LSAN_OPTIONS through environment

 To configure the LSan library with needed options, we use a workaround:
before loading library, we change the environment (LSan library reads
these options during constructor execution), and after loading, we
restore the original environment.

Change-Id: I0de2652847e54a84c89f98ce4a9980853b8b3b84
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
5 years agoImplementation of baseline approach for implementing syscalls 51/196351/7
Vyacheslav Cherkashin [Wed, 26 Dec 2018 15:00:16 +0000 (18:00 +0300)]
Implementation of baseline approach for implementing syscalls

And implement some custom syscalls:
  - sys_open();
  - sys_read()
  - sys_close()
  - sys_exit()

Change-Id: Ie9b66aa706e69151df41440a07ce99b92d3df012
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
5 years agoImplement internal libc memory API 50/196350/6
Vyacheslav Cherkashin [Thu, 20 Dec 2018 18:06:02 +0000 (21:06 +0300)]
Implement internal libc memory API

Change-Id: I635d3f36fe9d8dc63fd30eb8fafeed303b14aef5
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
5 years agoIntegrate LSan from tizen-mainline to SWAP 95/195595/7
Vyacheslav Cherkashin [Thu, 13 Dec 2018 17:53:01 +0000 (20:53 +0300)]
Integrate LSan from tizen-mainline to SWAP

 This commit switches from using a custom LSan to LSan from
tizen-mainline. All the preliminary preparation for the use of LSan
from tizen-mainline was made in the previous commits.

Change-Id: I3676bdb009fc30ae5e0230878c866f69065f09ab
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
5 years agoMerge "Implement adapter for LSan from tizen-mainline" into tizen
Vyacheslav Cherkashin [Fri, 28 Dec 2018 09:14:49 +0000 (09:14 +0000)]
Merge "Implement adapter for LSan from tizen-mainline" into tizen

5 years agoMerge "Implement logging in core library" into tizen
Vyacheslav Cherkashin [Fri, 28 Dec 2018 09:13:07 +0000 (09:13 +0000)]
Merge "Implement logging in core library" into tizen

5 years agoMerge "Implement internal libdl API" into tizen
Vyacheslav Cherkashin [Fri, 28 Dec 2018 09:12:18 +0000 (09:12 +0000)]
Merge "Implement internal libdl API" into tizen

5 years agoMerge "Implement injector" into tizen
Vyacheslav Cherkashin [Fri, 28 Dec 2018 09:11:30 +0000 (09:11 +0000)]
Merge "Implement injector" into tizen

5 years agoMerge "Implement libswapcore empty library" into tizen
Vyacheslav Cherkashin [Fri, 28 Dec 2018 09:10:07 +0000 (09:10 +0000)]
Merge "Implement libswapcore empty library" into tizen

5 years agoMerge "Log refactoring" into tizen
Vyacheslav Cherkashin [Fri, 28 Dec 2018 09:08:32 +0000 (09:08 +0000)]
Merge "Log refactoring" into tizen

5 years agoImplement adapter for LSan from tizen-mainline 94/195594/2
Vyacheslav Cherkashin [Thu, 13 Dec 2018 14:17:58 +0000 (17:17 +0300)]
Implement adapter for LSan from tizen-mainline

This adapter implements the following:
  1. Load LSan library
  2. Contains a modified interceptors (because LSan not loaded first)
  3. Inject interceptors to application
  4. Provides an API for using LSan library

Change-Id: Id33efe56b6ae3271858546050f1e2e8cfc8d250f
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
5 years agoImplement logging in core library 93/195593/2
Vyacheslav Cherkashin [Wed, 12 Dec 2018 18:02:54 +0000 (21:02 +0300)]
Implement logging in core library

Change-Id: I3aa7e37017f3bef488c53566fd8fd18222017b82
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
5 years agoImplement internal libdl API 92/195592/2
Vyacheslav Cherkashin [Tue, 13 Nov 2018 13:21:50 +0000 (16:21 +0300)]
Implement internal libdl API

Change-Id: I34998b5f85fffeb3aa3aaf0055d6478fa71dce04
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
5 years agoImplement injector 91/195591/2
Vyacheslav Cherkashin [Tue, 13 Nov 2018 14:14:43 +0000 (17:14 +0300)]
Implement injector

This injector is able to replace calls to the original functions in
the GOT section in runtime

Change-Id: I2f3cbe322b346a8ade027ac3942c922fb8e68fbf
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
5 years agoImplement libswapcore empty library 90/195590/2
Vyacheslav Cherkashin [Tue, 13 Nov 2018 17:24:41 +0000 (20:24 +0300)]
Implement libswapcore empty library

This patch is the first step towards allows us to implement new library.

Change-Id: Icd9c8dfd180187010beab10a479a034f89ad12f9

5 years agoLog refactoring 89/195589/2
Vyacheslav Cherkashin [Tue, 11 Dec 2018 09:14:17 +0000 (12:14 +0300)]
Log refactoring

This commit implements the following:
  1. Separate the logging source code into separate files (log.h/log.c)
  2. Add vraw_log() to be able to create custom logging functions in
     submodules.
  3. Add new logging interface:
        - LOGI()
        - LOGW()
        - LOGE()

Change-Id: If428e25a03daa48271ff6a1407228781454b3b60
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
5 years agoMerge "Bringing print_log_fmt() to standard format (like printf)" into tizen
Vyacheslav Cherkashin [Fri, 28 Dec 2018 08:55:52 +0000 (08:55 +0000)]
Merge "Bringing print_log_fmt() to standard format (like printf)" into tizen

5 years agoMerge "Fix logging messages" into tizen
Vyacheslav Cherkashin [Fri, 28 Dec 2018 08:54:39 +0000 (08:54 +0000)]
Merge "Fix logging messages" into tizen

5 years agoBringing print_log_fmt() to standard format (like printf) 88/195588/1
Vyacheslav Cherkashin [Mon, 3 Dec 2018 18:22:26 +0000 (21:22 +0300)]
Bringing print_log_fmt() to standard format (like printf)

Change-Id: Ia862cdaf8c41a1421ad4d93ef3e55b438b133d81
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
5 years agoFix logging messages 87/195587/1
Vyacheslav Cherkashin [Wed, 12 Dec 2018 16:53:01 +0000 (19:53 +0300)]
Fix logging messages

Change-Id: I2cfbb1ac3fb8821da1ce548629a0c210fee5542b
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
5 years agoGCC fails to build libasan with -mthumb and -fno-omit-frame-pointer 67/194367/2 accepted/tizen/unified/20181204.063701 submit/tizen/20181203.132420
Denis Khalikov [Tue, 21 Aug 2018 13:17:34 +0000 (16:17 +0300)]
GCC fails to build libasan with -mthumb and -fno-omit-frame-pointer

GCC does not allow to have frame pointer register as a clobber register
for inline assembler, when flag -fno-omit-frame-pointer is added.
By default, arm with mthumb mode uses r7 as a frame pointer register.

https://reviews.llvm.org/D50180

Backport:
  https://review.tizen.org/gerrit/gitweb?p=platform/upstream/linaro-gcc.git
  commit: 0de5898b

Change-Id: I5f5a3c695353ba2fe4195fd6054aedb7ee11e1af
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoFix infinite recursion of memory probes handling 14/189114/1
Vyacheslav Cherkashin [Mon, 10 Sep 2018 16:21:49 +0000 (19:21 +0300)]
Fix infinite recursion of memory probes handling

Problem:
  During the processing of the realloc_handler () call,
  there is a recursive loop in the free_handler() call:
    -> plt@realloc() -> realloc_handler() -> lsan_get_sym() -> dlsym() ->
       plt@free() -> free_handler() -> lsan_get_sym() -> dlsym() ->
       plt@free() -> free_handler() -> lsan_get_sym() -> dlsym() ->
       plt@free() -> free_handler() -> lsan_get_sym() -> dlsym() ->
       ...

Solution:
  Find all LSan symbols during library initialization instead of lazy
  symbol search.

Change-Id: Idce7de857a468645be51c21386726ac2a37c1ade
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoAdd 'remove callback" to wl_registry_listener 92/184392/1 accepted/tizen/5.0/unified/20181102.020332 accepted/tizen/unified/20180724.154356 submit/tizen/20180724.110758 submit/tizen_5.0/20181101.000004
Vyacheslav Cherkashin [Tue, 17 Jul 2018 14:44:49 +0000 (17:44 +0300)]
Add 'remove callback" to wl_registry_listener

Change-Id: Ibac8878dea109c5c61a80a9f8ec3b9df8f3170d2
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoRemove logically dead code 07/178807/1 accepted/tizen/unified/20180516.162349 submit/tizen/20180516.140048
Vyacheslav Cherkashin [Mon, 14 May 2018 05:46:03 +0000 (08:46 +0300)]
Remove logically dead code

Change-Id: I0a34e48b71755f0df37705d26b57433c113e74e8
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoFix buffer overflow 80/177280/1 accepted/tizen/unified/20180430.072147 submit/tizen/20180427.151943
Vyacheslav Cherkashin [Thu, 26 Apr 2018 16:51:51 +0000 (19:51 +0300)]
Fix buffer overflow

Change-Id: I8b7805e8c9cc18498ab3f49faacb538ca4723a7a
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoFix build break on EFL 1.20 48/173248/3 accepted/tizen/unified/20180328.005924 submit/tizen/20180319.053649
Shinwoo Kim [Tue, 20 Mar 2018 06:49:57 +0000 (15:49 +0900)]
Fix build break on EFL 1.20

Builid Error:
helper/libdaprobe.c:647:0: error: "MIN" redefined [-Werror]

Change-Id: If87acc527ca85a2f8aaa99a470dd85714012c4c3
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoAdd C funcs ret value specification 94/171694/4 submit/tizen/20180307.132902
Alexander Aksenov [Tue, 6 Mar 2018 11:31:54 +0000 (14:31 +0300)]
Add C funcs ret value specification

Change-Id: I65c4e805dcb59fe50f8554a59c10bc5cde4a9321
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoRemove useless enum names in da_event.h 93/171693/1
Alexander Aksenov [Tue, 6 Mar 2018 11:33:12 +0000 (14:33 +0300)]
Remove useless enum names in da_event.h

This fixes building with ASan

Change-Id: I4825d702551ba1e128c0aaf6382f8f65a725a8c9
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoFix SVACE issues 10/171110/2
Alexander Aksenov [Mon, 19 Feb 2018 11:43:56 +0000 (14:43 +0300)]
Fix SVACE issues

- received size packing, casting signed to unsigned;
- graphics __ui_array_to_str()

Change-Id: I649d39aa491ee00b455a348f08db8c0e38b9da1f
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoFix memleaks while parsing binaries 00/170500/3 accepted/tizen/unified/20180221.061146 submit/tizen/20180220.123455
Alexander Aksenov [Tue, 20 Feb 2018 09:14:26 +0000 (12:14 +0300)]
Fix memleaks while parsing binaries

Change-Id: I085dfdd460f532636dc19fe0c8947466e67b755e
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoRun process_features() at library loading 83/167283/1
Alexander Aksenov [Tue, 16 Jan 2018 15:32:27 +0000 (18:32 +0300)]
Run process_features() at library loading

Related with:
Ie0fdabe552d2046226d54231b065c7e825fd48d9 swap-manager
I28160b1e8c2e127755fb2cd3ce4719a5c02376e2 swap-modules

Change-Id: I57b08fb5ab67957492085d7f7b7cb1a8fbb81034
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoFix generating LSan report before app closing 39/165139/3
Vyacheslav Cherkashin [Tue, 26 Dec 2017 16:22:58 +0000 (19:22 +0300)]
Fix generating LSan report before app closing

Change-Id: Ia43813502d5a3ccfb261769ec27d3ede9274a566
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoFix creating file buffer in case of file size is zero 09/164909/2
Vyacheslav Cherkashin [Thu, 21 Dec 2017 06:18:33 +0000 (09:18 +0300)]
Fix creating file buffer in case of file size is zero

Change-Id: I9cc666191742d041b330e3f9a0b00d743b8f1b92
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoAdd memory APIs with implicit memory allocation 39/164339/4 submit/tizen/20180109.094207
Alexander Aksenov [Mon, 18 Dec 2017 18:34:46 +0000 (21:34 +0300)]
Add memory APIs with implicit memory allocation

Change-Id: I30e75fee13888ad4599705c5f99cf0da1352a8a6
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoMerge branch 'tizen_4.0' into tizen 38/164638/1
Vyacheslav Cherkashin [Tue, 19 Dec 2017 15:45:11 +0000 (18:45 +0300)]
Merge branch 'tizen_4.0' into tizen

Change-Id: Id33b9b0185bbceb8b22be3cc4e6ac129637bd828
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
6 years agoImplement target bins removing 92/162392/1 submit/tizen_4.0/20180109.094119
Alexander Aksenov [Wed, 4 Oct 2017 18:56:59 +0000 (21:56 +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-manager

Change-Id: Iaf3d61ebe98379c9fb7a63ed3c0ae0cda3e365cc
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoAdd checking if code is executed in handler 91/162391/1
Alexander Aksenov [Tue, 10 Oct 2017 12:07:36 +0000 (15:07 +0300)]
Add checking if code is executed in handler

This is useful for preventing proifiling debug libraries when
target functions are called indirectrly. For some features that
are sensitive for events consistence, like LSan, this issue is
critical.

Change-Id: I8be26c8bd4889d81b247085cf35e8a820487402b
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoFix void wrappers declaration 90/162390/1
Alexander Aksenov [Mon, 9 Oct 2017 16:46:04 +0000 (19:46 +0300)]
Fix void wrappers declaration

Change-Id: I59b29cbc79ce22b1dfa6e3eaf2666d9c5994833f
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoRefactor recv_thread 89/162389/1
Alexander Aksenov [Wed, 4 Oct 2017 19:20:31 +0000 (22:20 +0300)]
Refactor recv_thread

Change-Id: I2159b02c311e9d07dd17a6cb48318d38b7fc9ce4
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoCode style fix 04/130704/18
Alexander Aksenov [Mon, 15 May 2017 13:10:22 +0000 (16:10 +0300)]
Code style fix

Change-Id: I0162eae75320bc265f03fd2933655ab9ca7b7ed5
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
6 years agoAdd md5 lib checker 35/159635/7
Vitaliy Cherepanov [Fri, 15 Sep 2017 16:03:41 +0000 (19:03 +0300)]
Add md5 lib checker

Change-Id: I0f632523ce278bd74e1c1f80c7dafd44b0c5d188
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
6 years agoLSAN: add error message 32/159632/5
Vitaliy Cherepanov [Fri, 10 Nov 2017 07:42:37 +0000 (10:42 +0300)]
LSAN: add error message

Add error message if lsan enabled but alloc always feature disabled

Change-Id: I4770838fc8b2b35bf2f23e6e6b4e9712b4bcae80
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
6 years agoImprove preload memory api performance 88/159488/8
Vitaliy Cherepanov [Thu, 9 Nov 2017 07:11:43 +0000 (10:11 +0300)]
Improve preload memory api performance

Create message buffer on stack
Activates by enabling BUF_ON_STACK_FOR_MEMPROBE in Makefile
Disabled by default

Change-Id: I7b1e1ef1e31a1460780f3b8f72d0c60f2d58b800
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
7 years agoelf_parser: fix PLT functions support for ARM 59/157659/2
Vyacheslav Cherkashin [Mon, 6 Mar 2017 11:48:14 +0000 (14:48 +0300)]
elf_parser: fix PLT functions support for ARM

Change-Id: Icaa4da3c3d75254d8ec880ab8ab3742cf054ffaa
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agopackaging: add armv7hl architecture support 96/157596/1 submit/tizen/20171030.044443
Dongkyun Son [Wed, 25 Oct 2017 08:13:05 +0000 (17:13 +0900)]
packaging: add armv7hl architecture support

Change-Id: I3fb893f5f0bed6a3bb5878659fa71a41dca08ef5
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
7 years agoFix screenshot on scene transition feature 38/157138/3
Vyacheslav Cherkashin [Mon, 23 Oct 2017 11:31:18 +0000 (14:31 +0300)]
Fix screenshot on scene transition feature

Change-Id: I66b9d8292df7579d6d290b97db76ef5b281cca5e
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoUse proper value for FL_UI_VIEWER_PROFILING feature 37/157137/2
Vyacheslav Cherkashin [Mon, 23 Oct 2017 10:34:10 +0000 (13:34 +0300)]
Use proper value for FL_UI_VIEWER_PROFILING feature

Change-Id: Ib70082a2d8e4849689405a645d81b454b246e65a
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoMerge branch 'tizen_4.0' into tizen 01/156201/1
Vyacheslav Cherkashin [Tue, 17 Oct 2017 11:40:03 +0000 (14:40 +0300)]
Merge branch 'tizen_4.0' into tizen

Change-Id: Ic886bff2d7fb6639bae359bf7b5b4efcbc9924c6
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoMerge branch 'tizen_3.0' into tizen_4.0 99/156199/1
Vyacheslav Cherkashin [Tue, 17 Oct 2017 09:29:15 +0000 (12:29 +0300)]
Merge branch 'tizen_3.0' into tizen_4.0

Change-Id: I9c678a8c2728c2fd5f808c74c2da38bdb888edfd
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoMerge branch 'tizen_4.0' into tizen 42/156042/1 accepted/tizen/unified/20171017.071202 submit/tizen/20171017.050426
Dmitry Kovalenko [Tue, 17 Oct 2017 04:54:35 +0000 (07:54 +0300)]
Merge branch 'tizen_4.0' into tizen

Change-Id: I66937f91ab6a1e78dcb008285aae9ee5e6895f8e

7 years agoImplement target bins removing 05/154605/4
Alexander Aksenov [Wed, 4 Oct 2017 18:56:59 +0000 (21:56 +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-manager

Change-Id: Iaf3d61ebe98379c9fb7a63ed3c0ae0cda3e365cc
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoAdd checking if code is executed in handler 04/154604/3
Alexander Aksenov [Tue, 10 Oct 2017 12:07:36 +0000 (15:07 +0300)]
Add checking if code is executed in handler

This is useful for preventing proifiling debug libraries when
target functions are called indirectrly. For some features that
are sensitive for events consistence, like LSan, this issue is
critical.

Change-Id: I8be26c8bd4889d81b247085cf35e8a820487402b
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoFix issues found by static analysis tool 04/155504/1 accepted/tizen/4.0/unified/20171017.212541 submit/tizen_4.0/20171017.050132 tizen_4.0.IoT.p2_release tizen_4.0.m2_release
Dmitry Kovalenko [Fri, 13 Oct 2017 09:12:36 +0000 (12:12 +0300)]
Fix issues found by static analysis tool

elf_impl.cpp: Copy-paste error
elfxx.h: Unintended sign extension
dahelper.c: Out-of-bounds access

Change-Id: I05cc1a83340e581796cd2666da0e47f1a7ca3119
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agoui_event: move initialization to ui_app_main handler 70/155270/2
Vyacheslav Cherkashin [Thu, 12 Oct 2017 13:59:46 +0000 (16:59 +0300)]
ui_event: move initialization to ui_app_main handler

ecore_wl_init() now executed before it is patched

Change-Id: I24d721adf9a4716ba723b2c358a2f42716ab6480
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agocapi: use multiprobe 69/155269/2
Vyacheslav Cherkashin [Thu, 12 Oct 2017 12:51:06 +0000 (15:51 +0300)]
capi: use multiprobe

Change-Id: I91d75d5026719834216f635ceae2128c561ff66c
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoImplement multiprobe 67/155267/2
Vyacheslav Cherkashin [Thu, 12 Oct 2017 09:36:15 +0000 (12:36 +0300)]
Implement multiprobe

Change-Id: Ib2a0ef8a5961941686d1dbbc2c44ab46d2f62d1b
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoFix void wrappers declaration 03/154603/2
Alexander Aksenov [Mon, 9 Oct 2017 16:46:04 +0000 (19:46 +0300)]
Fix void wrappers declaration

Change-Id: I59b29cbc79ce22b1dfa6e3eaf2666d9c5994833f
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoRefactor recv_thread 02/154602/2
Alexander Aksenov [Wed, 4 Oct 2017 19:20:31 +0000 (22:20 +0300)]
Refactor recv_thread

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

Change-Id: Ibe4abea8df6952a78d78149e27eededa08a19940
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agoMerge branch 'tizen_3.0' into tizen_4.0 58/154458/1 submit/tizen_4.0/20171010.091636
Dmitry Kovalenko [Tue, 10 Oct 2017 08:40:55 +0000 (11:40 +0300)]
Merge branch 'tizen_3.0' into tizen_4.0

Change-Id: I1727513fcb533d3b54149c3ce0cb2ed043e49407

7 years agoPut proper license header to file_buffer.c|h 57/154457/1
Dmitry Kovalenko [Tue, 10 Oct 2017 08:40:25 +0000 (11:40 +0300)]
Put proper license header to file_buffer.c|h

Change-Id: Iea107e031e613e640de9832b6566cc2beacde130
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agoUIHV: Fix UIHV library loading 55/154055/2
Vitaliy Cherepanov [Thu, 5 Oct 2017 15:13:36 +0000 (18:13 +0300)]
UIHV: Fix UIHV library loading

Change-Id: I2cbd2a35093d50a3dc8e3afd82bc5a687d8f5d91
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
7 years agoMerge branch 'tizen_4.0' into tizen 02/153902/1
Dmitry Kovalenko [Tue, 3 Oct 2017 06:28:42 +0000 (09:28 +0300)]
Merge branch 'tizen_4.0' into tizen

Change-Id: I34ef1dec67fec6ee546ee4a5748e0a73e34e7b88

7 years agoMerge branch 'tizen_3.0' into tizen_4.0 01/153901/1
Dmitry Kovalenko [Tue, 3 Oct 2017 06:11:28 +0000 (09:11 +0300)]
Merge branch 'tizen_3.0' into tizen_4.0

Change-Id: I19aee737b1a6ddcc386173134a999ab386206f60

7 years agolsan: fix leaks suppression 59/153359/1
Vyacheslav Cherkashin [Thu, 28 Sep 2017 08:50:32 +0000 (11:50 +0300)]
lsan: fix leaks suppression

LSan cannot build backtrace when works with SWAP.
So don't check for reachability.

Change-Id: Ifa0a01b83f8167ae37bd52c29a631ba326a53a82
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agolsan: save mapped address instead of original addr 58/153358/1
Vitaliy Cherepanov [Thu, 8 Dec 2016 13:22:26 +0000 (16:22 +0300)]
lsan: save mapped address instead of original addr

Addresses returned by allocation funcitons should be changed
before saving to library hash because of
lsan search addresses in process memory

Change-Id: Icd197343826c1cfec19d406858e676622ebc8794
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
7 years agouihv: fix typo 90/151090/2
Vyacheslav Cherkashin [Tue, 19 Sep 2017 15:58:38 +0000 (18:58 +0300)]
uihv: fix typo

Change-Id: If654e06fd57fdd3a7d282bdd1af304d1cc436f2e
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoMerge branch 'tizen_3.0' into tizen_4.0 34/152634/1 submit/tizen_4.0/20170929.085108
Dmitry Kovalenko [Tue, 26 Sep 2017 15:52:21 +0000 (18:52 +0300)]
Merge branch 'tizen_3.0' into tizen_4.0

Change-Id: Iea2a9fd71ff37becacbd2e45e3746fbc94eab2cd

7 years agolsan: add report sending to manager for storing it 29/152629/3
Vyacheslav Cherkashin [Tue, 26 Sep 2017 13:51:13 +0000 (16:51 +0300)]
lsan: add report sending to manager for storing it

Change-Id: I22786832e35c010e700f33bffaef6d838e0ca686
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoImplement 'file_buffer' 28/152628/2
Vyacheslav Cherkashin [Fri, 22 Sep 2017 16:08:45 +0000 (19:08 +0300)]
Implement 'file_buffer'

It is used to read data from file to file_buffer struct

Change-Id: I1dbb6b76850d21b7e36b8d69e2f70fb6c0e71efd
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoAdd dummy assembly funcs for in-swap probes 18/151718/6
Alexander Aksenov [Wed, 20 Sep 2017 16:34:32 +0000 (19:34 +0300)]
Add dummy assembly funcs for in-swap probes

Change-Id: I1767e2de8f45c33b871543c879528e29a54ee689
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoAdd add_binary() wrapper 34/151934/1
Alexander Aksenov [Fri, 22 Sep 2017 09:54:20 +0000 (12:54 +0300)]
Add add_binary() wrapper

Change-Id: I4727174d416112a502782e12b81f8841c49f20dc
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoProvide process_features() interface 17/151717/2
Alexander Aksenov [Tue, 19 Sep 2017 10:00:50 +0000 (13:00 +0300)]
Provide process_features() interface

Now it should be called only when new target bins received or
by call from kernel.

Change-Id: Ie21a637ec4e0ff82a8fcc4d6058b8887e47057c7
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoFix orig address checking 16/151716/2
Alexander Aksenov [Tue, 19 Sep 2017 09:59:09 +0000 (12:59 +0300)]
Fix orig address checking

Change-Id: Ib7c3cbf6850605ea2c5e54940bf749b8585b3a77
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoMake linux-gate flexible 15/151715/2
Alexander Aksenov [Wed, 13 Sep 2017 18:37:35 +0000 (21:37 +0300)]
Make linux-gate flexible

Change-Id: I2963e844842edbd81b5c2c1f6fda297c36750332
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoFix incorrect error message 14/151714/2
Alexander Aksenov [Wed, 13 Sep 2017 18:20:30 +0000 (21:20 +0300)]
Fix incorrect error message

Change-Id: Id67cb9a9692c977a8fdee23d972aa7a3709ade5a
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoMake log file only rw for other users 13/151713/2
Alexander Aksenov [Wed, 20 Sep 2017 11:40:30 +0000 (14:40 +0300)]
Make log file only rw for other users

Change-Id: I1147a5d4e9361db4bb64c1ca3f4e9183bc0a225d
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoProvide process_features() interface 94/151094/4
Alexander Aksenov [Tue, 19 Sep 2017 10:00:50 +0000 (13:00 +0300)]
Provide process_features() interface

Now it should be called only when new target bins received or
by call from kernel.

Change-Id: Ie21a637ec4e0ff82a8fcc4d6058b8887e47057c7
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoFix orig address checking 93/151093/3
Alexander Aksenov [Tue, 19 Sep 2017 09:59:09 +0000 (12:59 +0300)]
Fix orig address checking

Change-Id: Ib7c3cbf6850605ea2c5e54940bf749b8585b3a77
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoMake linux-gate flexible 57/149957/3
Alexander Aksenov [Wed, 13 Sep 2017 18:37:35 +0000 (21:37 +0300)]
Make linux-gate flexible

Change-Id: I2963e844842edbd81b5c2c1f6fda297c36750332
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoFix incorrect error message 56/149956/3
Alexander Aksenov [Wed, 13 Sep 2017 18:20:30 +0000 (21:20 +0300)]
Fix incorrect error message

Change-Id: Id67cb9a9692c977a8fdee23d972aa7a3709ade5a
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoMake log file only 'r' for other users 34/151334/2
Alexander Aksenov [Wed, 20 Sep 2017 11:40:30 +0000 (14:40 +0300)]
Make log file only 'r' for other users

Change-Id: I1147a5d4e9361db4bb64c1ca3f4e9183bc0a225d
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agoMerge branch 'tizen_4.0' into tizen 04/149904/1
Alexander Aksenov [Wed, 13 Sep 2017 12:37:41 +0000 (15:37 +0300)]
Merge branch 'tizen_4.0' into tizen

Change-Id: Ie46c7a0d5921bca39c8dfab7aaf4db6f8cef9948
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoFix elfparser build 83/149883/2 accepted/tizen/4.0/unified/20170913.154108 submit/tizen_4.0/20170913.123755
Vitaliy Cherepanov [Wed, 13 Sep 2017 11:12:52 +0000 (14:12 +0300)]
Fix elfparser build

Change-Id: Ib082519449d8a42914b15f785fb62cdd5353f8f8
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
7 years agoMerge branch 'tizen_3.0' into tizen_4.0 38/149438/1
Dmitry Kovalenko [Tue, 12 Sep 2017 08:31:01 +0000 (11:31 +0300)]
Merge branch 'tizen_3.0' into tizen_4.0

Change-Id: I707bf2f7638ad8402bbbb442457b1edb46873916

7 years agoFix SVACE issue 38/148738/7
Vitaliy Cherepanov [Fri, 8 Sep 2017 14:17:29 +0000 (17:17 +0300)]
Fix SVACE issue

add bounds checking to process_target_bins

Change-Id: I517306a4479e277b5f8ea2289f14373f253ec8ab
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
7 years agoFix SVACE issue 23/147223/1
Vyacheslav Cherkashin [Fri, 1 Sep 2017 11:55:33 +0000 (14:55 +0300)]
Fix SVACE issue

- class members aren't initialized

Change-Id: I1bf3116b12bb4e7207e84a794847d88dec2e804a
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoMove /tmp/* to /run/swap/* 78/146278/1 submit/tizen_3.0/20170901.085536
Vyacheslav Cherkashin [Fri, 25 Aug 2017 11:49:49 +0000 (14:49 +0300)]
Move /tmp/* to /run/swap/*

Rename file:
/tmp/da.socket --> /run/swap/lib.socket

Other files only move:
/tmp/* --> /run/swap/tmp/*

Change-Id: Ib14754af2502dc77b47b0a465c906469dd9cb199
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoFix unhandled malloc errors 03/145203/2 submit/tizen_3.0/20170822.071124
Dmitry Kovalenko [Tue, 15 Aug 2017 08:38:29 +0000 (11:38 +0300)]
Fix unhandled malloc errors

Change-Id: I35f09fd4aab988dbd174d079475a46ba44e27a10
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agoFix close socket (probe - manager) after stop 02/145202/2
Vyacheslav Cherkashin [Tue, 2 May 2017 15:06:28 +0000 (18:06 +0300)]
Fix close socket (probe - manager) after stop

Change-Id: Ie95542d27fee0f8fb42c89c7d5fe00428b3ace99
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoFix socket message handling 01/145201/2
Vyacheslav Cherkashin [Mon, 21 Aug 2017 14:24:37 +0000 (17:24 +0300)]
Fix socket message handling

Change-Id: I8242a9e1b1168133ae347dc8c3d2669d78975cde
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoFix unhandled malloc errors 59/144159/3 submit/tizen/20170815.123151
Dmitry Kovalenko [Tue, 15 Aug 2017 08:28:31 +0000 (11:28 +0300)]
Fix unhandled malloc errors

Change-Id: Iffc98eb6c5e335b5a55eed22013a848891848d69
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agoAdd -fpie and -pie option (ASLR) 14/144014/4 accepted/tizen/4.0/unified/20170829.015746 accepted/tizen/unified/20170816.053813 submit/tizen/20170814.123808 submit/tizen_4.0/20170828.100004
Dmitry Kovalenko [Mon, 14 Aug 2017 08:41:28 +0000 (11:41 +0300)]
Add -fpie and -pie option (ASLR)

Change-Id: Ic36375fce45805cdc72d73f2a0005f34da7453e6
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agoFix GOT double patching 81/134081/2 tizen_3.0_dev
Alexander Aksenov [Wed, 14 Jun 2017 11:34:08 +0000 (14:34 +0300)]
Fix GOT double patching

Now if entry in GOT points into SWAP libraries, it won't be
patched again.

Change-Id: I0659dd820a89f35694ab8f7108060a2f3e1085d0
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>