platform/core/system/swap-probe.git
7 years agoMerge branch 'tizen_3.0_dev' into tizen 60/133160/1 accepted/tizen/4.0/unified/20170816.011215 accepted/tizen/4.0/unified/20170816.014627 accepted/tizen/unified/20170629.085415 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 05:31:48 +0000 (08:31 +0300)]
Merge branch 'tizen_3.0_dev' into tizen

Change-Id: I1e8a4079635a3939f8c08742dbe80d3236d67ae7

7 years agoFix build warning (unnecessary escape char in awk) 44/133144/1
Dmitry Kovalenko [Thu, 25 May 2017 12:14:12 +0000 (15:14 +0300)]
Fix build warning (unnecessary escape char in awk)

Change-Id: I336a2f955584782b9741954fce906ab2b3619aa7

7 years agoFix probe lib data generation 90/129990/5
Alexander Aksenov [Thu, 4 May 2017 12:04:49 +0000 (15:04 +0300)]
Fix probe lib data generation

Change-Id: I1dd56e7f91525deb1acfe5e08286761a624233c4
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoProbe generation definitions refactor 53/117853/9
Alexander Aksenov [Tue, 7 Mar 2017 18:34:59 +0000 (21:34 +0300)]
Probe generation definitions refactor

Change-Id: Iba97cb165afe432f6f1968265e7ede4c9fbc280e
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoFix probes header generation 17/113217/9
Alexander Aksenov [Mon, 6 Feb 2017 12:45:10 +0000 (15:45 +0300)]
Fix probes header generation

- structure name includes full library path, not only
basename;
- pluses replaced with '_'

Change-Id: I30c9556298a9562faf48db9ddabc4b6a18cf2210
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoAdd different handler libs handling 84/111884/12
Alexander Aksenov [Mon, 23 Jan 2017 18:09:28 +0000 (21:09 +0300)]
Add different handler libs handling

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

Change-Id: I89e99ab1dcc8d1326c9e655c1d530960896a889f
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoAdd preload features loading support 01/111701/11
Alexander Aksenov [Mon, 23 Jan 2017 12:22:32 +0000 (15:22 +0300)]
Add preload features loading support

- libraries loading is splitted from GOT patching;
- now libraries loaded also for preload features

Change-Id: Ief02a7f0ee105d33b4f2e6ec25cd997fe4eb00e1
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoSupport the whole 128 feature's bits in library. 51/111151/10
Alexander Aksenov [Thu, 19 Jan 2017 12:24:50 +0000 (15:24 +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-manager commit of the same
name.

Change-Id: I4b51dd16cff64a9bdfccc35700298f558836d71c
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoChange dlsym flags 26/110726/10
Alexander Aksenov [Tue, 17 Jan 2017 12:48:27 +0000 (15:48 +0300)]
Change dlsym flags

RTLD_NEXT -> RTLD_DEFAULT. Library loading time is unpredictable,
so target symbol can be anywhere in linker list and this lead to
real func searching fails somethimes. Our probes
have not the same name as target functions so, it is good and
safety to use RTLD_DEFAULT instead of RTLD_NEXT.

Change-Id: I7900631e2edefc5e5e6f5bfd922e3974a7a37ac8
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoCleanup code 24/110724/10
Alexander Aksenov [Tue, 13 Dec 2016 16:59:34 +0000 (19:59 +0300)]
Cleanup code

- remove comments that were related to GOT patcher's Preload
supporting
- function isNotFiltOptionEnabled() never used
- unused _sopt variable from da_egl_tizen.cpp
- OPT_* features replaced with FL_*
- remove unused defenitions from daprobe.h

Change-Id: Ie7a17d6990f1bb1dae082164001a0067dfad5bb2
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoAdd separated Preload features 22/110722/10
Alexander Aksenov [Tue, 13 Dec 2016 12:09:54 +0000 (15:09 +0300)]
Add separated Preload features

- now all preload-related features are in feature_code_1, so
it is written after generation now;
- enable feature headers generation.
- support Preload headers generation in gen_headers
Related with swap-manager commit

Change-Id: Ieca42b27b8a1d0e71dc2eb66701c2081d35869f0
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoPreload: searching special wrappers for kernel calling 21/110721/10
Alexander Aksenov [Tue, 13 Dec 2016 10:02:25 +0000 (13:02 +0300)]
Preload: searching special wrappers for kernel calling

Now special wrappers for kernel calling are used, so their
addreeses are searched.

Change-Id: I1cb28ee6c7d465abedadf5a39c14ef10224f5f1f
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoPreload: Add orig field pointer passing to kernel 20/110720/10
Alexander Aksenov [Tue, 6 Dec 2016 16:15:59 +0000 (19:15 +0300)]
Preload: Add orig field pointer passing to kernel

Since preload implementation there field with originally
called API address has arrived, it should be send in each
probe message. When probe handlers called via preload
mechanism we cannot get this information in user-space, so
this field left zero and its address is passed to kernel
for filling here.

This commit is related with swap-modules commit with the
same name.

Change-Id: I713c825070718b1c4922d4ee7e6f4f5354b381a0
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoRefactor probes with variable arguments 19/110719/10
Alexander Aksenov [Tue, 6 Dec 2016 14:39:21 +0000 (17:39 +0300)]
Refactor probes with variable arguments

Now there is special definition for such probes wrappers

Change-Id: I8a04f49ed0f6d971b654472909b486e5cf987896
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoRemove dead code defenitions from da_socket.h 17/110717/10
Alexander Aksenov [Mon, 5 Dec 2016 11:20:47 +0000 (14:20 +0300)]
Remove dead code defenitions from da_socket.h

Change-Id: I8ad1ed463f70770f0deae7fcc94e38fbefce8cf4
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoAdd kernel called wrappers for probes 16/110716/10
Alexander Aksenov [Thu, 1 Dec 2016 17:21:50 +0000 (20:21 +0300)]
Add kernel called wrappers for probes

Previously to the handler themselves data variables were passed.
It was not scalable and difficult to maintain. Now these
variables replaced with structure that contains this data. This
makes passing data more flexible and reduces stack usage on some
platforms.

Also it separates original address (address where probe has
fired) and exec address (pointer to function that should be
executed). It was done because of a great difference between
GOT patcher-based handling and Preload-based: in the second
case we have no avaliable information in user-space about
caller, call_type and original address and exec address
is the result of a dlsym() search while in the first case
we know everything in userspace.

Change-Id: Ib47fa1e655c5f820fdefacea7bd8e85765e62b8c
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoPreload: add support at probes saving 15/110715/8
Alexander Aksenov [Thu, 1 Dec 2016 14:41:31 +0000 (17:41 +0300)]
Preload: add support at probes saving

Now writing messages flexibly supproting both GOT patcher
and Preload

Change-Id: I7d263f1f9a7dc646fe604202e3d90fa7e2dace3f
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoReplace TYPE_AND_INFO with TARGET_BINS message 14/110714/8
Alexander Aksenov [Thu, 1 Dec 2016 12:49:52 +0000 (15:49 +0300)]
Replace TYPE_AND_INFO with TARGET_BINS message

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

Change-Id: I75953a9a9b19f78a10de5faa7a7722da89a45322
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoCode style fix 25/129225/9
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>
7 years agoMake splitted profiler's libs ignored 00/132000/1
Alexander Aksenov [Wed, 31 May 2017 09:52:24 +0000 (12:52 +0300)]
Make splitted profiler's libs ignored

Change-Id: I54452384bb745e085dad52aa6d7b56ed5999a55e
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoFix build warning (unnecessary escape char in awk) 36/131136/1 accepted/tizen/unified/20170531.082512 submit/tizen/20170525.122236
Dmitry Kovalenko [Thu, 25 May 2017 12:14:12 +0000 (15:14 +0300)]
Fix build warning (unnecessary escape char in awk)

Change-Id: I336a2f955584782b9741954fce906ab2b3619aa7

7 years agoMerge branch 'tizen_3.0_dev' into tizen 62/127662/1 accepted/tizen/unified/20170429.024559 submit/tizen/20170428.112811 tizen_4.0.m1_release
Dmitry Kovalenko [Fri, 28 Apr 2017 06:52:02 +0000 (09:52 +0300)]
Merge branch 'tizen_3.0_dev' into tizen

Change-Id: Id2eb82d452cddaf91b62e0e9ce0dd0d9aa5c41a1

7 years agoMove screenshot storing to manager 32/127632/1
Vyacheslav Cherkashin [Thu, 20 Apr 2017 13:52:46 +0000 (16:52 +0300)]
Move screenshot storing to manager

Change-Id: Id31ba8135075c4f265819f4ecb2f3525686f78b1
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoRemove useless check 32/125932/1
Alexander Aksenov [Tue, 18 Apr 2017 13:40:03 +0000 (16:40 +0300)]
Remove useless check

Change-Id: I519c0d2488325f3eee07398476b213616732a13a
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoAdd error message on libraries loading fail 42/125742/2
Alexander Aksenov [Tue, 18 Apr 2017 13:10:12 +0000 (16:10 +0300)]
Add error message on libraries loading fail

Change-Id: I2a24532f5723d0af4dbb2332bd53c39e74ae0b82
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoWorkarround hw specific screenshot issue 31/125931/1
Dmitry Kovalenko [Wed, 29 Mar 2017 15:45:56 +0000 (18:45 +0300)]
Workarround hw specific screenshot issue

Qualcom devices has 16 pixel padding on right side
So display driver has screen_width+16 width

This workarround detects padding (as black pixels on the right)

Change-Id: I4aa5eea216cee561b19086ee8aa03ce6d8d5a8aa

7 years agoRework license file creation for packages 30/125930/1
Dmitry Kovalenko [Mon, 27 Mar 2017 07:15:57 +0000 (10:15 +0300)]
Rework license file creation for packages

Change-Id: Ia0be79eb837797f5a0e8c2206b9803aa3fcbf41a

7 years agoFix subsequent type and info messages handling 29/125929/1
Alexander Aksenov [Tue, 24 Jan 2017 16:38:37 +0000 (19:38 +0300)]
Fix subsequent type and info messages handling

Change-Id: I75ec9ed2c744d0a9fa1dd691e5bdbb9ee8bd6d4b
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoRework license file creation for packages 26/121126/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170327.143039 accepted/tizen/ivi/20170328.055107 accepted/tizen/mobile/20170328.053800 accepted/tizen/tv/20170328.055025 accepted/tizen/unified/20170328.055130 accepted/tizen/wearable/20170328.055045 submit/tizen/20170327.084645
Dmitry Kovalenko [Mon, 27 Mar 2017 07:15:57 +0000 (10:15 +0300)]
Rework license file creation for packages

Change-Id: Ia0be79eb837797f5a0e8c2206b9803aa3fcbf41a

7 years agoelf_parser: fix big file opening 04/120604/3 accepted/tizen/common/20170323.154719 accepted/tizen/ivi/20170324.024427 accepted/tizen/mobile/20170324.024339 accepted/tizen/tv/20170324.024352 accepted/tizen/unified/20170324.024442 accepted/tizen/wearable/20170324.024408 submit/tizen/20170323.125308
Dmitry Kovalenko [Thu, 23 Mar 2017 09:08:44 +0000 (12:08 +0300)]
elf_parser: fix big file opening

Change-Id: Id1c1f678a6e2ff5b97a1a1d1867f5832ad29f694

7 years agoAdd run-time RTLD name detection to build with any Glibc. 27/118227/4 accepted/tizen/common/20170321.102404 accepted/tizen/ivi/20170321.094953 accepted/tizen/mobile/20170321.094900 accepted/tizen/tv/20170321.094930 accepted/tizen/unified/20170321.094958 accepted/tizen/wearable/20170321.094940 submit/tizen/20170321.051913
Slava Barinov [Thu, 9 Mar 2017 08:44:30 +0000 (11:44 +0300)]
Add run-time RTLD name detection to build with any Glibc.

Change-Id: Ifc8f7a2294a84d308c7a7b9924fa9ec39a0b8348
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
7 years agoLoad screenshot library on screenshot request 87/112587/1
Alexander Aksenov [Wed, 18 Jan 2017 13:27:19 +0000 (16:27 +0300)]
Load screenshot library on screenshot request

Previously it was loaded only on screenshot feature set.

Change-Id: Ief460da9be3d8068d110733c8139286e44db3a18
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoadd test for _da_call_original() 00/112200/2
Vyacheslav Cherkashin [Fri, 27 Jan 2017 15:00:04 +0000 (18:00 +0300)]
add test for _da_call_original()

Change-Id: Iaffa14dcdee204a0ed89aadd8c8fbd9e774eb1aa
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoARM64: implement _da_call_original() 64/112164/3
Vyacheslav Cherkashin [Thu, 26 Jan 2017 14:22:22 +0000 (17:22 +0300)]
ARM64: implement _da_call_original()

Change-Id: Ied848ffe9bce6940768f03ef47576ca535aae12f
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoPort da_gles30_native.cpp to aarch64 90/110490/4
Vyacheslav Cherkashin [Mon, 16 Jan 2017 12:40:28 +0000 (15:40 +0300)]
Port da_gles30_native.cpp to aarch64

Change-Id: I375c0d35f82ec496dd6949b34cff24eb2150a65d
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoelf_parser: add plt support for AARCH64 89/110489/4
Vyacheslav Cherkashin [Mon, 12 Dec 2016 11:33:56 +0000 (14:33 +0300)]
elf_parser: add plt support for AARCH64

Change-Id: Ie839952128c7ed10160dfe0325c8c3fd5dcd99cf
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoAdd support 64-bits for api_names.txt 88/110488/4
Vyacheslav Cherkashin [Tue, 29 Nov 2016 15:33:56 +0000 (18:33 +0300)]
Add support 64-bits for api_names.txt

Replace hardcode "lib" path by "__lib_prefix__".

Change-Id: I645119146762e45ec3e276cf63b9949f475f7d21
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoPort installing dirs to 64-bit 87/110487/4
Vyacheslav Cherkashin [Tue, 29 Nov 2016 08:43:22 +0000 (11:43 +0300)]
Port installing dirs to 64-bit

use %{_bindir}, %{_libdir}, %{_includedir} instead of hardcode paths

Change-Id: I9da8e5eaf3a765c38ee6204ce5395f8dbdccd0bf
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoAdd support build for AARCH64 85/110485/4
Vyacheslav Cherkashin [Mon, 21 Nov 2016 08:31:44 +0000 (11:31 +0300)]
Add support build for AARCH64

Change-Id: I89e347b5ffd2074c11788f7fa91459ba5b0d37e1
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoRemove libdaprobe.so 84/110484/3
Vyacheslav Cherkashin [Tue, 29 Nov 2016 08:47:49 +0000 (11:47 +0300)]
Remove libdaprobe.so

Change-Id: If878e987f3ea8f6dddfb3bbfa5fd45a4171ed1e4
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoRemove unused code 83/110483/3
Vyacheslav Cherkashin [Mon, 28 Nov 2016 15:10:24 +0000 (18:10 +0300)]
Remove unused code

Change-Id: I81499b367c81643d2a1b9dae333f79005a387629
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoelf_parser: redesign 82/110482/3
Vyacheslav Cherkashin [Wed, 16 Nov 2016 12:06:26 +0000 (15:06 +0300)]
elf_parser: redesign

Innovations:
- rewrite parsing elf file on C++
(parsing 32-bits and 64-bits have native common code)
- add 64-bits support
- new interface libparserelf.so

Update prebuild files: libparserelf_x86.so and libparserelf_x86_64.so.
To prepare ones use the following:
  # patchelf --set-rpath /emul//usr/lib libparserelf_x86.so
  # patchelf --set-rpath /emul//usr/lib64 libparserelf_x86_64.so

Change-Id: I034b187c1a4fdb28b132278d23d8954dc790edb1
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoelf_parser: add warnings flags 81/110481/2
Vyacheslav Cherkashin [Tue, 15 Nov 2016 12:36:48 +0000 (15:36 +0300)]
elf_parser: add warnings flags

and fix build

Change-Id: I507e084f18b2d36c9eec71fec7e8956fce9715db
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoelf_parser: add Makefile 80/110480/2
Vyacheslav Cherkashin [Tue, 15 Nov 2016 12:35:34 +0000 (15:35 +0300)]
elf_parser: add Makefile

Split Makefile on Makefile and elf_parser/Makefile

Change-Id: I0fae040ceec35b3c12a005bcbc37f18f2d0e4930
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoChange caller type 79/110479/2
Vyacheslav Cherkashin [Mon, 14 Nov 2016 13:12:39 +0000 (16:12 +0300)]
Change caller type

To support ARM64

Change-Id: Id76f93a21e8e4d0d1e8bd99024bf2b6a201ed980
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoPort KHASH_MAP_INIT_VOIDP() to arm64 78/110478/2
Vyacheslav Cherkashin [Mon, 14 Nov 2016 13:08:31 +0000 (16:08 +0300)]
Port KHASH_MAP_INIT_VOIDP() to arm64

Change-Id: I7654d0b30019a3078a6471cc9b429536b08264f0
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoRemove unused code 77/110477/2
Vyacheslav Cherkashin [Mon, 14 Nov 2016 12:37:35 +0000 (15:37 +0300)]
Remove unused code

Clean deadcode from:
include/dacollection.h
helper/dacollection.c

Change-Id: Ieb3c089248128329b76987e5def602b243bbc215
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoFix store to unaligned address 76/110476/1
Vyacheslav Cherkashin [Mon, 17 Oct 2016 17:02:51 +0000 (20:02 +0300)]
Fix store to unaligned address

Because "strd" and "ldrd" can works with only aligned access,
we do not allow compiler (ARM) use "strd" instructinos
for saving uint64_t values.

Change-Id: I72d0022898d1c656860d08b654232fd7edb0556e
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoReplace dlopen() with manually searching link_map 73/110273/2
Alexander Aksenov [Fri, 13 Jan 2017 09:23:38 +0000 (12:23 +0300)]
Replace dlopen() with manually searching link_map

dlopen() leads to running library constructors and other related
stuff which can be undesirable. Now link_map structures are
searched by iterating list of link_maps in _r_debug

Change-Id: Ic9d626cd600fc6596f503c57a765efb7a4740dca
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoScreenshot feature add 72/110272/2
Alexander Aksenov [Thu, 29 Dec 2016 13:17:01 +0000 (16:17 +0300)]
Screenshot feature add

Previously it was a part of da_probe_tizen.so, but it was
removed to reduce da_probe_tizen library dependencies.

Change-Id: Ib0cc057a2d6bb87d51b12042555421132b354fea
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoSplit screenshots into separate lib 71/110271/2
Alexander Aksenov [Wed, 28 Dec 2016 12:42:19 +0000 (15:42 +0300)]
Split screenshots into separate lib

Change-Id: If2fb7b5b649e07cfb9f342b2d8b8d52586a787a6
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoRemove unused declarations from dacapture.h 70/110270/2
Alexander Aksenov [Thu, 29 Dec 2016 13:04:25 +0000 (16:04 +0300)]
Remove unused declarations from dacapture.h

Change-Id: I1f5403d8a20e7960756e1a082a642e876bc2cc04
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoRemove unused dependencies 69/110269/2
Alexander Aksenov [Tue, 27 Dec 2016 16:44:32 +0000 (19:44 +0300)]
Remove unused dependencies

Change-Id: Ia9b8c514bf12cd135bd06b60c8f47238c501954d
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoSplit graphics, ui and capi probes into separate libs 67/110267/2
Alexander Aksenov [Tue, 27 Dec 2016 11:50:09 +0000 (14:50 +0300)]
Split graphics, ui and capi probes into separate libs

Change-Id: Ib73f16b6fb2f554042bb8d377f2faa41af23ae89
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoRemove real_functions.c/h 66/110266/2
Alexander Aksenov [Tue, 27 Dec 2016 11:57:52 +0000 (14:57 +0300)]
Remove real_functions.c/h

It was legacy mechanism for working with native LD_PRELOAD.

Change-Id: I738cbbbc5e3ce77a3d6039341fbbb7d2745787a4
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoRemove the dependency to debug repository 74/109574/1
Gihun Chang [Mon, 2 Jan 2017 07:11:07 +0000 (16:11 +0900)]
Remove the dependency to debug repository

Change-Id: I7c151372471963c70c22eaa9c8ca37f29c07f03c

7 years agoDestroy wayland queue using for capturing screenshots 59/107559/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.141150 accepted/tizen/3.0.m2/tv/20170104.141938 accepted/tizen/3.0.m2/wearable/20170104.142234 accepted/tizen/3.0/common/20161229.113058 accepted/tizen/3.0/ivi/20161229.055558 accepted/tizen/3.0/mobile/20161229.055453 accepted/tizen/3.0/tv/20161229.055515 accepted/tizen/3.0/wearable/20161229.055540 submit/tizen_3.0.m2/20170104.093751 submit/tizen_3.0/20161228.131331
Anatolii Nikulin [Tue, 27 Dec 2016 15:40:56 +0000 (18:40 +0300)]
Destroy wayland queue using for capturing screenshots

Change-Id: I9ce1f29ef8cd13e626e57cb2037e3bdd3bfd82c4
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
7 years agoFix memleak in add_binary and remove_binary 75/107275/3 submit/tizen_3.0/20161228.101250
Vitaliy Cherepanov [Tue, 27 Dec 2016 08:08:26 +0000 (11:08 +0300)]
Fix memleak in add_binary and remove_binary

Change-Id: I5ffe57492cfd6cf6b8117c9d80bac298191d51f0
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agoFix build with GCC6 (new environment) 45/106845/1 submit/tizen/20161223.084617
Dmitry Kovalenko [Fri, 23 Dec 2016 08:01:32 +0000 (11:01 +0300)]
Fix build with GCC6 (new environment)

Change-Id: I20407046812b3cb07307d6b634a2004a66496bce

7 years agoFix build with GCC6 16/106716/2
Ivan Baravy [Thu, 10 Nov 2016 17:33:30 +0000 (20:33 +0300)]
Fix build with GCC6

Change-Id: Id29fed5ead8f12a8ec4b5cd0e70e9b7a39e8413d

7 years agoRemove UI callbacks from feature probes list 93/104193/1 accepted/tizen/3.0/common/20161215.164050 accepted/tizen/3.0/ivi/20161215.045501 accepted/tizen/3.0/mobile/20161215.045354 accepted/tizen/3.0/tv/20161215.045438 accepted/tizen/3.0/wearable/20161215.045449 accepted/tizen/common/20161214.161003 accepted/tizen/ivi/20161215.073311 accepted/tizen/mobile/20161215.073230 accepted/tizen/tv/20161215.073249 accepted/tizen/unified/20170309.033633 accepted/tizen/wearable/20161215.073301 submit/tizen/20161214.104530 submit/tizen_3.0/20161214.104520 submit/tizen_unified/20170308.100409
Alexander Aksenov [Mon, 12 Dec 2016 11:49:00 +0000 (14:49 +0300)]
Remove UI callbacks from feature probes list

UI event handlers are registered as a common callbacks via
ecore event handlers mechanism. So, these probes are not
require patching their calls in .got section.

Change-Id: I24bf3bd9f96139f3a55e0411b5a7053925e9281e
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoRemove unused label 12/103812/1 accepted/tizen/3.0/common/20161213.163352 accepted/tizen/3.0/ivi/20161213.091241 accepted/tizen/3.0/mobile/20161213.091112 accepted/tizen/3.0/tv/20161213.091202 accepted/tizen/3.0/wearable/20161213.091218 accepted/tizen/common/20161210.162224 accepted/tizen/ivi/20161212.025700 accepted/tizen/mobile/20161212.025602 accepted/tizen/tv/20161212.025633 accepted/tizen/wearable/20161212.025647 submit/tizen/20161209.134902 submit/tizen_3.0/20161209.134853
Alexander Aksenov [Fri, 9 Dec 2016 12:37:11 +0000 (15:37 +0300)]
Remove unused label

Change-Id: I5f8e4efa8b1bdfae88eb9d56aabad49fc94bdb59
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoFix errno for pthread_exit() probe 13/103213/4
Alexander Aksenov [Thu, 8 Dec 2016 12:23:05 +0000 (15:23 +0300)]
Fix errno for pthread_exit() probe

Change-Id: I57ae484f8287180d2e6cc1460c6d59f62257dbd5
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoFix memory allocation for msg data 44/103244/4
Alexander Aksenov [Wed, 7 Dec 2016 18:57:04 +0000 (21:57 +0300)]
Fix memory allocation for msg data

Previously wrong message have lead to an application fail,
now it leads to error.
Svace issue.

Change-Id: Ibfb62a79df9e47f4b294e40160fb9aad342315ae
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoRemove gesture hash lists 12/103212/3
Alexander Aksenov [Wed, 7 Dec 2016 14:27:04 +0000 (17:27 +0300)]
Remove gesture hash lists

Because they are useless now.
Svace issue.

Change-Id: I7a001718deb464b768249c50155d36a931d27f88
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoAdd BSD-2.0 license 15/103715/1 SRR_20161209
Dmitry Kovalenko [Fri, 9 Dec 2016 07:54:51 +0000 (10:54 +0300)]
Add BSD-2.0 license

Change-Id: Iedfed71fa5db15d63292185b430060897a2a25ca

7 years agoRevert GCC specific changes in LSan code. 02/103202/2 accepted/tizen/3.0/common/20161208.153828 accepted/tizen/3.0/ivi/20161208.065358 accepted/tizen/3.0/mobile/20161208.065306 accepted/tizen/3.0/tv/20161208.065332 accepted/tizen/3.0/wearable/20161208.065344 accepted/tizen/common/20161207.184833 accepted/tizen/ivi/20161208.013000 accepted/tizen/mobile/20161208.012911 accepted/tizen/tv/20161208.012929 accepted/tizen/wearable/20161208.012941 submit/tizen/20161207.141311 submit/tizen_3.0/20161207.141254 submit/tizen_3.0/20161208.043057
Maxim Ostapenko [Wed, 7 Dec 2016 13:18:51 +0000 (16:18 +0300)]
Revert GCC specific changes in LSan code.

Change-Id: I52e3cc2f31e3ea1b2d1da9aca6639a94cd56b42a
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
7 years agoAdd LICENSE.compiler-rt file for LSan source directory. 87/103187/2
Maxim Ostapenko [Wed, 7 Dec 2016 12:39:07 +0000 (15:39 +0300)]
Add LICENSE.compiler-rt file for LSan source directory.

Change-Id: If24cd1be428ff20b3862a91dcd1ea7f2459fbece
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
7 years agoAdd copyright about code copied from wayland 94/103194/1
Dmitry Kovalenko [Wed, 7 Dec 2016 13:29:46 +0000 (16:29 +0300)]
Add copyright about code copied from wayland

Change-Id: I6729c9fdb7e81d707e780a5b5cd32a16392f8d4b

7 years agoRegister readable anonymous mappings in root set during LSan initialization. 02/101302/1
Maxim Ostapenko [Wed, 30 Nov 2016 14:28:30 +0000 (17:28 +0300)]
Register readable anonymous mappings in root set during LSan initialization.

It appears that EFL (eo) uses anonymous mmaps to allocate internal tables.
These tables would contain pointers to user chunks thus must be added to LSan's
root set. Unfortunately, in general case we cannot identify these mapping, but
we can use heuristic: add all anonymous mappings to root set during LSan
initialization.

Change-Id: I75a43045b12edea631727e2e74be5e3e103f7590
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
7 years agocapi: fix lifecycle 03/100003/1 accepted/tizen/3.0/common/20161201.135346 accepted/tizen/3.0/ivi/20161201.074739 accepted/tizen/3.0/mobile/20161201.074714 accepted/tizen/3.0/tv/20161201.074727 accepted/tizen/3.0/wearable/20161201.074731 submit/tizen_3.0/20161130.194014 submit/tizen_3.0/20161130.194649
Vyacheslav Cherkashin [Thu, 24 Nov 2016 16:46:46 +0000 (19:46 +0300)]
capi: fix lifecycle

Now ui_app_main() is caught for all binaries.

Change-Id: Id93a0d4cff75833456fe0727776142ffdc8a3c0b
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoFix SVACE issue 04/99804/1 accepted/tizen/common/20161124.170311 accepted/tizen/ivi/20161125.005149 accepted/tizen/mobile/20161125.005102 accepted/tizen/tv/20161125.005113 accepted/tizen/wearable/20161125.005135 submit/tizen/20161124.145503 submit/tizen_3.0/20161124.145720
Dmitry Kovalenko [Thu, 24 Nov 2016 06:42:51 +0000 (09:42 +0300)]
Fix SVACE issue

- redundant NULL check

Change-Id: I660d96fb63b2d8f1ac86154da564cab6e49dc602
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
7 years agoparse_elf: add x86_64 environment support 61/99361/1 accepted/tizen/3.0/common/20161124.182045 accepted/tizen/3.0/ivi/20161124.082423 accepted/tizen/3.0/mobile/20161124.082329 accepted/tizen/3.0/tv/20161124.082350 accepted/tizen/3.0/wearable/20161124.082414 accepted/tizen/ivi/20161123.233639 accepted/tizen/mobile/20161123.233553 accepted/tizen/tv/20161123.233607 accepted/tizen/wearable/20161123.233625 submit/tizen/20161123.142358 submit/tizen_3.0/20161123.142346
Vyacheslav Cherkashin [Tue, 22 Nov 2016 12:32:40 +0000 (15:32 +0300)]
parse_elf: add x86_64 environment support

Change-Id: Ie153edaa89288c0f08dae80f89f45785b0f70368
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7 years agoGOT: Disable preload addreses search in libs. 59/98759/5
Vitaliy Cherepanov [Fri, 18 Nov 2016 13:11:14 +0000 (16:11 +0300)]
GOT: Disable preload addreses search in libs.

Change-Id: Ie12407557eb5cbcce67f0790bdc107eb6a725675
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
7 years agoFix probe_file probes. 36/98736/4
Vitaliy Cherepanov [Fri, 18 Nov 2016 07:59:16 +0000 (10:59 +0300)]
Fix probe_file probes.

add _IO_putc handler
add _IO_getc handler
add __isoc99_fscanf handler

Change-Id: I119ef385d78aeede45b192ded0a6cde682bc337d
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
7 years agoFix ungetc probe. 35/98735/3
Vitaliy Cherepanov [Fri, 18 Nov 2016 07:55:20 +0000 (10:55 +0300)]
Fix ungetc probe.

wrong probe API id entry packed to trace

Change-Id: I9c3bee3997e86f799b0cf5c41ba428fe70ec6d9f
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
7 years agoRefactor PROBES_LIST x-macroses 34/98734/2
Vitaliy Cherepanov [Fri, 18 Nov 2016 07:13:48 +0000 (10:13 +0300)]
Refactor PROBES_LIST x-macroses

Change-Id: Ic61ac7975d954e186d2a427159874992ffb95352
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
7 years agoFix file io probes handlers 79/96979/2
Vitaliy Cherepanov [Thu, 10 Nov 2016 15:32:51 +0000 (18:32 +0300)]
Fix file io probes handlers

replace wrong original function calls

Change-Id: Ib9f4810034be9fbda9c56d5985fadf55128f70d4
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
7 years agoGOT patcher: support data.rel.ro 54/98254/6
Alexander Aksenov [Tue, 15 Nov 2016 12:53:07 +0000 (15:53 +0300)]
GOT patcher: support data.rel.ro

Change-Id: I9b405aa27d80544edc77e688983c5211d6f40a08
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoGOT patcher: add profiling by apps comm 36/96636/3 accepted/tizen/3.0/common/20161114.081045 accepted/tizen/3.0/ivi/20161110.022708 accepted/tizen/3.0/mobile/20161110.022615 accepted/tizen/3.0/tv/20161110.022644 accepted/tizen/3.0/wearable/20161110.022652 accepted/tizen/common/20161110.153652 accepted/tizen/ivi/20161110.002048 accepted/tizen/mobile/20161110.001959 accepted/tizen/tv/20161110.002012 accepted/tizen/wearable/20161110.002028 submit/tizen/20161109.144928 submit/tizen_3.0/20161109.145028 submit/tizen_3.0_common/20161110.084657
Alexander Aksenov [Wed, 9 Nov 2016 12:45:47 +0000 (15:45 +0300)]
GOT patcher: add profiling by apps comm

Workaround for web apps

Change-Id: I37d8d5a315da53929b77d1d63e15aaebf5044a57
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
7 years agoAdd field with function address to MSG_PROBE_ 34/96634/6
Vitaliy Cherepanov [Wed, 9 Nov 2016 12:30:44 +0000 (15:30 +0300)]
Add field with function address to MSG_PROBE_

MSG_PROBE Common columns change:

/---+-------------------+------+------------------\
| n | name              | size |     change       |
|---+-------------------+------+------------------|
| 1 | API ID            |  4   |      same        |
| 2 | PID               |  4   |                  |
| 3 | TID               |  4   |                  |
| 4 | args              |  var |                  |
| 5 | return            |  8   |                  |
| 6 | errno             |  8   |                  |
| 7 | Internal call     |  4   |                  |
| 8 | Caller_PC_address |  8   |                  |
|---+-------------------+------+------------------|
| 9 | reserved          |  4   | probe undefined  |
| 10| reserved          |  4   | instruction addr |
|   |                   |      | size 8 bytes     |
\---+-------------------+------+------------------/

Change-Id: I290c8aff071d84d7688044686bed268fc52d40c1
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
7 years agoAdd strdup probe. 69/96069/4
Maxim Ostapenko [Mon, 7 Nov 2016 14:29:16 +0000 (17:29 +0300)]
Add strdup probe.

Currently SWAP doesn't intercept allocation functions coming from Glibc, thus
it misses strdup. However, strdup is one of the most favourite instruments for
introducing memory leaks (developers often forgot to free memory allocated by
strdup). Although the correct fix would be handling all allocations coming from
Glibc, this change is too intrusive now. Thus, just add strdup probe to be able
catch memory leaks, introduced by strdup.

Change-Id: Ibea87ee8b05533fc7230d0d9923c214e9bd0fe97
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
7 years agoFix reallocation bug in LSan. 53/96053/4
Maxim Ostapenko [Mon, 7 Nov 2016 12:20:03 +0000 (15:20 +0300)]
Fix reallocation bug in LSan.

The LSan library had a bug in realloc interceptor that incorrectly tries to
reallocate LSan owned buffer to Glibc heap and fails. This scenario was
observed in libglib library. Fixing this issue allows us to remove libglib
from ignored libs.

Change-Id: Ifa195307365a1e06210da607239d2594632e0ba0
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
7 years agoFix warnings in LSan code. 35/96235/3
Maxim Ostapenko [Tue, 8 Nov 2016 08:07:27 +0000 (11:07 +0300)]
Fix warnings in LSan code.

Just a small cleanup patch to get rid of compiler warnings.

Change-Id: I3c9bf880e0abb00a884ccc51518b365a7dbf52fd
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
7 years agoFix svace issues 92/96292/1
Alexander Aksenov [Tue, 8 Nov 2016 11:00:02 +0000 (14:00 +0300)]
Fix svace issues

Change-Id: I957fa6efaaceb9bf2b9a5ab0ba93d8ce39a077cb
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
8 years agoFix wayland multithreaded issue 70/94870/3 accepted/tizen/3.0/ivi/20161103.121458 accepted/tizen/3.0/mobile/20161103.121154 accepted/tizen/3.0/tv/20161103.121435 accepted/tizen/3.0/wearable/20161103.121444 accepted/tizen/ivi/20161103.231335 accepted/tizen/mobile/20161103.231241 accepted/tizen/tv/20161103.231257 accepted/tizen/wearable/20161103.231317 submit/tizen/20161102.110741 submit/tizen/20161103.052455 submit/tizen_3.0/20161102.110933 submit/tizen_3.0/20161102.124012 submit/tizen_3.0/20161103.052948
Anatolii Nikulin [Tue, 1 Nov 2016 15:40:49 +0000 (18:40 +0300)]
Fix wayland multithreaded issue

Our thread creates its own private queue for taking screenshots
instead of using wayland default queue, because it may lead to deadlocks

Change-Id: I289ccaa773f990fc8b02e1393b268becfabdb800
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
8 years agoGOT patcher: add libglib to ignored 13/92913/6 accepted/tizen/common/20161027.073732 accepted/tizen/ivi/20161028.151922 accepted/tizen/mobile/20161028.151839 accepted/tizen/tv/20161028.151859 accepted/tizen/wearable/20161028.151907 submit/tizen/20161027.065329
Alexander Aksenov [Wed, 19 Oct 2016 09:34:18 +0000 (12:34 +0300)]
GOT patcher: add libglib to ignored

Issue:
libglib leads to a fail when LSan is using GOT patcher.

Solution:
Add libglib to ignored libraries. GOT patcher itself works ok
with this library, so this issue should be investigated in
LSan.

Change-Id: I9006109e299c18059a5a10b7f4c9fd6489a6d41b
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
8 years agoGOT patcher: support API-by-pointer calls 91/92191/6
Alexander Aksenov [Thu, 13 Oct 2016 14:59:06 +0000 (17:59 +0300)]
GOT patcher: support API-by-pointer calls

Issue:
When target API function is called via pointer, not directly,
it was not handled, because symbol was stored in variables section
and not in functions.

Solution:
Patch not only function, but also variable section when variable
name is the same as a target API.

Change-Id: I3178360ddf8d1099e63ec9119d7322e70fefc5f7
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
8 years agoGOT patcher: add LSan to ignored libs 69/91269/7
Alexander Aksenov [Thu, 6 Oct 2016 12:08:50 +0000 (15:08 +0300)]
GOT patcher: add LSan to ignored libs

Issue:
LSan lib as well as another profiler libs should be ignored
by GOT patcher, because their API usage is supposed to be
an auxiliary one.

Solution:
Add LSan library to ignored ones.

Change-Id: If75f79320946b162938edf2148f45eb34631cd5e
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
8 years agoGOT patcher: fix memory probes for ARM 72/90672/8
Alexander Aksenov [Mon, 3 Oct 2016 14:50:07 +0000 (17:50 +0300)]
GOT patcher: fix memory probes for ARM

Issue;
When profiling ARM console apps, creating receive thread in
swap-probe leads to a fail.

Solution:
Make thread creation arch-depndent: for i386 thread attributes
are inited manually, for ARM default initialization is used.

Change-Id: I495cc21bcaa54b6a8a1956fd5843d6cd63cef7c1
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
8 years agoGOT patcher: support null program_invocation_name 35/89935/8
Alexander Aksenov [Tue, 27 Sep 2016 12:55:22 +0000 (15:55 +0300)]
GOT patcher: support null program_invocation_name

Change-Id: Iab5db29972ad2e4f698c1401d16d22e3f0f49f9d
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
8 years agoGOT patcher: add main binary support 43/89743/7
Alexander Aksenov [Mon, 26 Sep 2016 17:04:33 +0000 (20:04 +0300)]
GOT patcher: add main binary support

Change-Id: I09681f727165ccbeda199610d96136e227708097
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
8 years agoGOT patcher: allocate system specified stack size 40/89040/7
Alexander Aksenov [Wed, 21 Sep 2016 17:55:35 +0000 (20:55 +0300)]
GOT patcher: allocate system specified stack size

Change-Id: Ic6db3d50067825077847a94c47391efc27d4a52e
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
8 years agoGOT patcher: profiling console apps 06/88506/8
Alexander Aksenov [Thu, 15 Sep 2016 13:03:17 +0000 (16:03 +0300)]
GOT patcher: profiling console apps

Change-Id: Ie737aa22490c5a15800e52d3b0664a589594efd6
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
8 years agoAdd initialization pthread_attr struct 18/88218/8
Alexander Aksenov [Wed, 14 Sep 2016 16:13:14 +0000 (19:13 +0300)]
Add initialization pthread_attr struct

Now probe library is loaded very early for common apps
and that time pthread attribute default structure is not
initialized yet, so we do it manually

Change-Id: I7bf62cf6f52b08116aca2436455bf2011ecc5690
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
8 years agoGOT patcher: separate Event feature 17/88217/8
Alexander Aksenov [Tue, 13 Sep 2016 10:19:19 +0000 (13:19 +0300)]
GOT patcher: separate Event feature

Change-Id: Ibc2153566c117989e5a0a01ee4b8068c089b2bd4
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
8 years agoGOT patcher: add UIHV lib to ignored 53/86353/8
Alexander Aksenov [Wed, 31 Aug 2016 16:41:34 +0000 (19:41 +0300)]
GOT patcher: add UIHV lib to ignored

Change-Id: I1709a04180c073adea96a0576bd8d909501bee06
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
8 years agoGOT patcher: improve cb GL function support 93/85293/11
Alexander Aksenov [Tue, 23 Aug 2016 13:11:26 +0000 (16:11 +0300)]
GOT patcher: improve cb GL function support

Change-Id: I25b4a9db773f2315e66069d78da3e11149b23c62
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
8 years agoFix GOT patcher build for TV 56/84456/11
Alexander Aksenov [Thu, 18 Aug 2016 14:37:20 +0000 (17:37 +0300)]
Fix GOT patcher build for TV

Change-Id: I72252710b64948d2a474f876f8b9570666c765b7
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
8 years agoFix patching malloc in linker on ARM device 34/84434/10
Alexander Aksenov [Thu, 18 Aug 2016 13:00:34 +0000 (16:00 +0300)]
Fix patching malloc in linker on ARM device

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