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>
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>
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>
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>
Dmitry Kovalenko [Fri, 9 Dec 2016 07:54:51 +0000 (10:54 +0300)]
Add BSD-2.0 license
Change-Id: Iedfed71fa5db15d63292185b430060897a2a25ca
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>
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>
Dmitry Kovalenko [Wed, 7 Dec 2016 13:29:46 +0000 (16:29 +0300)]
Add copyright about code copied from wayland
Change-Id: I6729c9fdb7e81d707e780a5b5cd32a16392f8d4b
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Alexander Aksenov [Wed, 13 Apr 2016 08:42:02 +0000 (11:42 +0300)]
GOT patcher: implement intital version
Change-Id: I8a0f2a590fabcdb439b3ec19c29f269379537b53
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Maxim Ostapenko [Wed, 26 Oct 2016 07:19:07 +0000 (10:19 +0300)]
Fix CHECK failures in LSan from official repositories.
Backported from LLVM mainline: https://reviews.llvm.org/rL285177.
Change-Id: Ife24ccafe0c23379848969d967b1559554874afc
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
Maxim Ostapenko [Mon, 24 Oct 2016 14:16:21 +0000 (17:16 +0300)]
Fix missed runtime dependency from swap-probe to swap-probe-lsan.
Change-Id: Ibe632fcea77af893b80edf5e847c17da40044aff
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
Maxim Ostapenko [Tue, 27 Sep 2016 15:29:54 +0000 (18:29 +0300)]
Add posix_memalign probe.
We need to add posix_memalign probe because libglib-2.0.so uses it for
its own slab allocator. Missing this memory area would cause LSan false
positive reports.
Change-Id: I36a2cabd334d6255e4b403475f18fc991fe58511
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
Maxim Ostapenko [Tue, 27 Sep 2016 15:21:23 +0000 (18:21 +0300)]
Extract information about leaked chunks from da_swap_lsan.so.
Since we want to send information about leaked chunks to host, we need somehow
extract it from liblsan.so. LSan provides couple of hooks to achieve this:
- __lsan_get_leaked_objects_num: returns the number of leaked objects.
- __lsan_get_leaked_objects_ptr: returns a pointer to array of leaked
objects.
Just use these hooks to extract necessary information. When extraction is
completed, notify the host about this.
Change-Id: I8e779368ab440ab02a9ef0db753621720f27ec61
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
Maxim Ostapenko [Wed, 10 Aug 2016 14:43:39 +0000 (17:43 +0300)]
Support LeakSanitizer.
This commit adds support for LeakSanitizer tool spawning from the SWAP
in order to find leaks in user applications. Main changes are:
- Initialize LSan from da_probe_tizen.so constructor.
- Add and use LSan hooks if liblsan.so was successfully loadeded.
- Make evas_object_show probe nonblocking (0 -> 2). This prevents
memory corruptions when Glibc's free tries to free LSan's malloc.
- Introduce new FL_LSAN_ENABLED flag. It activates
pthread_create/pthread_join probes and works together with
FL_MEMORY_ALLOC_ALWAYS_PROBING feature.
- Call try_do_leak_check before application termination.
Change-Id: Ia81f70f666823466888d771054da228772456a62
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
Maxim Ostapenko [Wed, 14 Sep 2016 16:54:03 +0000 (19:54 +0300)]
Deliver LeakSanitizer sources.
- Add LSan sources.
- Add "lsan" target to Makefile.
- Add swap-probe-lsan rpm package.
Change-Id: I1ec597755ca5c0f4b0da43c0140fbd6165f27da1
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
Junghyun Kim [Wed, 24 Aug 2016 00:30:18 +0000 (09:30 +0900)]
Use a sorted list of files in __get_libs_in_dir_by_mask to avoid unnecessary rebuilds.
- PROBLEM
We use OBS to build packages in Tizen.
There is a mechanism not to rebuild when the result binary is the same.
For example, there is a dependency graph: A->B->C.
If A is modified, B would be built.
If the result RPM of B is not changed, OBS does not trigger a build of C.
To effectively use this mechanism, each packages make sure that
the result binary should be the same if the input source is the same.
There is a reason we found is that the file list given by
python(os.walk(), os.listdir()), widely used executable(find),
and system call(readdir()) is unordered.
In this case, different OBS workers can make different results
because of the file list in different order.
The same thing happens in swap-probe.
This package uses os.walk(os.path.dirname(path_mask))
in __get_libs_in_dir_by_mask() in scripts/gen_headers.py.
This makes a list libs_in_dir_tmp which is unordered.
- SOLUTION
Therefore, I suggest to sort this list libs_in_dir_tmp using sorted().
I tested this in my test OBS server, and I found that
the result RPMs are the same after this patch.
Change-Id: I78f2df2540b19d6665c0b3d6d6d3d41607e0f90f
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Alexander Aksenov [Mon, 29 Aug 2016 10:58:38 +0000 (13:58 +0300)]
Ignore debug binaries in all libs
Change-Id: I312651d8b372559c81a9bf93b1a7f959032ef47f
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Tue, 16 Aug 2016 08:01:23 +0000 (11:01 +0300)]
Fix null pointer dereference
When parsing elf binary without any symbols previously
null pointer dereference occured.
Change-Id: I67316a8e8e9f4d4d912c518f942468974003453f
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Dmitry Kovalenko [Wed, 3 Aug 2016 11:52:01 +0000 (14:52 +0300)]
Remove unused source files
Change-Id: Ib17155e05390ee3faa248c488b6c57d2333ddb8b
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Dmitry Kovalenko [Tue, 12 Jul 2016 13:01:29 +0000 (16:01 +0300)]
Optimize building time
- Use parser library directly from python
- Preprocess library list to remove not libs
- Use more faster commands
- Added x86 library (binary) for using with python-accel
Change-Id: I94202468ae2d5009885b61a8302fcde71dee3e5d
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Wed, 29 Jun 2016 12:50:07 +0000 (15:50 +0300)]
[FIX] console application instrumentation
Change-Id: Ib1a96b98e0a4f0189000e7fc59082c85d09020d3
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Dmitry Kovalenko [Fri, 8 Jul 2016 05:05:31 +0000 (08:05 +0300)]
Replace WAYLAND_SUPPORT by TIZEN_FEATURE_WAYLAND
Change-Id: I1de06928a013db311220617141654b4384831fa1
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Anatolii Nikulin [Wed, 6 Jul 2016 09:42:44 +0000 (12:42 +0300)]
fix screenshots
use tbm buffer for image instead shared memory
Change-Id: I60afc17c92adf39a8e6ef933d43e0b99a425ae93
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Anatolii Nikulin [Fri, 1 Jul 2016 11:36:45 +0000 (14:36 +0300)]
add strict dependency for capi-appfw-application
Change-Id: I739c832ff10a45c750bf9382bb0664cf6d74d55f
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Anatolii Nikulin [Thu, 23 Jun 2016 11:30:46 +0000 (14:30 +0300)]
[FIX] symbols searching
Change-Id: I4cf9c53deec67c8dab35409d9d6c7ae8ce87eb71
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Vitaliy Cherepanov [Wed, 15 Jul 2015 12:40:12 +0000 (15:40 +0300)]
[IMPROVE] add function names for LD_PRELOAD probes
Change-Id: Iccbfcb78c262cdbaee07dcece5e8c56977ab85a5
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vyacheslav Cherkashin [Tue, 17 May 2016 16:24:50 +0000 (19:24 +0300)]
[IMPROVE] parse_elf: add symbol type to output
Change-Id: I2c124cf5de324e213dd2f97c64ac4e4d4c61b4ac
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Anatolii Nikulin [Thu, 19 May 2016 14:26:33 +0000 (17:26 +0300)]
[IMPROVE] Implement screenshot and orientation event features
We take screenshot using Wayland API,
for orientation events we use Tizen sensors API
Change-Id: Ib80b322d61d41e4f952d0d0ece513ed30e4898d2
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Dmitry Kovalenko [Tue, 17 May 2016 14:22:21 +0000 (17:22 +0300)]
Merge branch 'tizen_2.4_dev' into tizen
Change-Id: Ib4cee57f1ac18ffd2879d8f7f9abd3a34c7f0d22
Vitaliy Cherepanov [Fri, 15 Apr 2016 15:41:21 +0000 (18:41 +0300)]
[FIX] remove build warnings
Change-Id: I795b61c520063b2adb883a9daae6a4e12d96d41d
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Alexander Aksenov [Wed, 13 Apr 2016 09:19:28 +0000 (12:19 +0300)]
[REFACTOR] Place all probes macro in the same header
Change-Id: I871eae18a09275cccc3e0e62c12f7f7abebe628c
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Fri, 8 Apr 2016 09:36:31 +0000 (12:36 +0300)]
[REFACTOR] Rename recv_thread
Change-Id: Ib141bbe4b992c38ea6b4933068a344b92431bf0b
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Fri, 8 Apr 2016 09:17:28 +0000 (12:17 +0300)]
[REFACTOR] Rename createSocket
Change-Id: I574304fd4d1a98683a16bd6df3db5dbf71d3cb57
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Mon, 4 Apr 2016 15:42:24 +0000 (18:42 +0300)]
[CLEAN] Remove some more dead code
Removed:
- struct probeInfo and its interface macros;
- getCurrentTime();
- enum MonitorType;
- enum BlockLocation;
- postBlockEnd() (empty);
- gProbeDepth (unused);
- __appendTypeLog();
- getBacktraceString();
- some commented code;
- dautil.h (contains debug that is useless);
setProbePoint() replaced with inc_current_event_index(),
because it was the only usage of this function.
Change-Id: I08efc7a84a759d1585b20a8e907a851cb764e1ff
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Thu, 31 Mar 2016 13:29:07 +0000 (16:29 +0300)]
[CLEAN] Remove dead code
Removed because it is never used now:
- getting app map address;
- backtraces;
- screen capture initialization;
- symbol hash table;
- ui object hash table;
- object hash table;
- detector hash table;
- map list (used for filtering callers);
- app start time storing;
- pack uicontrol and pack scene;
- handling APP_MSG_MAPS_INST_LIST message.
Change-Id: Ie93c1ea717e6b9bf0fad6fe362264a46bdd234a0
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Vitaliy Cherepanov [Fri, 15 Apr 2016 15:41:21 +0000 (18:41 +0300)]
[FIX] remove build warnings
Change-Id: I795b61c520063b2adb883a9daae6a4e12d96d41d
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Dmitry Kovalenko [Fri, 15 Apr 2016 05:24:32 +0000 (08:24 +0300)]
[LICENSE] Fix wrong license headers (gpl->lgpl)
Change-Id: I643b8b3bca9057dd640394c3f89ac259ebd6d1da
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Anastasia Lyupa [Tue, 11 Aug 2015 08:09:04 +0000 (11:09 +0300)]
[FEATURE] start ui viewer implementation
Change-Id: Ibce8e500c5172ae76aa94858ef2104c5d1775c5c
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
Dmitry Kovalenko [Fri, 11 Mar 2016 06:25:27 +0000 (09:25 +0300)]
[FIX] Map file parsing
Add checking for length of device path
Change-Id: Ia1e9faeec5beee1de5db826f6f865ca5d61f878c
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Anatolii Nikulin [Thu, 10 Mar 2016 11:54:08 +0000 (14:54 +0300)]
[FIX] Probe names
Change-Id: I83a7c84e99e83a0c2760c74adeaad5f3f54f1257
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Vyacheslav Cherkashin [Wed, 10 Feb 2016 18:46:09 +0000 (21:46 +0300)]
[FIX] preloading da_probe_tizen.so
Remove symbols dependency
Change-Id: Ie036049c661a769954971bcfbf77f2c671a3373e
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Wed, 10 Feb 2016 12:38:04 +0000 (15:38 +0300)]
Merge branch 'tizen_2.4_dev' into tizen
Conflicts:
probe_socket/libdasocket.c
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Change-Id: I21ecf3c00ea118e027e239884647cab7319309b6
Vitaliy Cherepanov [Fri, 22 Jan 2016 11:24:27 +0000 (14:24 +0300)]
[FIX] Svace issues
Change-Id: I7018b1c62d23b615eb7012a7d840e3651f2e337a
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Fri, 22 Jan 2016 10:57:02 +0000 (13:57 +0300)]
[FIX] Svace issues
Change-Id: I07d8d84dfe5e4b4445d6a71f120e6b0f48a26cf7
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Mun, Gwan-gyeong [Wed, 23 Dec 2015 13:27:36 +0000 (22:27 +0900)]
[FIX] Build Dependency
change explicit mesa dependency.
Change-Id: I0cf206b982a4553be336b84c63eaf56ddfea6a17
Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
Vitaliy Cherepanov [Tue, 22 Dec 2015 08:09:10 +0000 (11:09 +0300)]
[FIX] Svace issues
-----------------------------------------------------
| WGID | Type | File |
|---------------------------------------------------|
| 25081 | STATIC_OVERFLOW.SCANF | damaps.c |
| 25089 | UNCHECKED_FUNC_RES.LIB | da_io_posix.c |
| 25090 | UNCHECKED_FUNC_RES.LIB | da_io_posix.c |
| 25091 | UNCHECKED_FUNC_RES.LIB | da_io_posix.c |
| 25092 | UNCHECKED_FUNC_RES.LIB | da_io_posix.c |
| 25093 | UNCHECKED_FUNC_RES.LIB | da_io_posix.c |
| 25826 | BAD_SIZEOF | libdasocket.c |
| 26075 | BAD_SIZEOF | libdasocket.c |
| 27349 | OVERFLOW_UNDER_CHECK | da_chart.c |
| 27350 | OVERFLOW_UNDER_CHECK | da_chart.c |
-----------------------------------------------------
Change-Id: I0a807506ac5b1cbce6a137c5a11b612de9ddc0a2
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Hyeongsik Min [Thu, 17 Dec 2015 10:44:03 +0000 (19:44 +0900)]
[FIX] Svace issues
WGID : 619584
Checker: SIGNED_TO_BIGGER_UNSIGNED
File:
/home/abuild/rpmbuild/BUILD/swap-probe-total_3.0/probe_socket/libdasocket.c
Line: 242
WGID : 619587
Checker: SIGNED_TO_BIGGER_UNSIGNED
File:
/home/abuild/rpmbuild/BUILD/swap-probe-total_3.0/probe_socket/libdasocket.c
Line: 344
WGID : 619586
Checker: SIGNED_TO_BIGGER_UNSIGNED
File:
/home/abuild/rpmbuild/BUILD/swap-probe-total_3.0/probe_socket/libdasocket.c
Line: 307
WGID : 619585
Checker: SIGNED_TO_BIGGER_UNSIGNED
File:
/home/abuild/rpmbuild/BUILD/swap-probe-total_3.0/probe_socket/libdasocket.c
Line: 272
Change-Id: I9b1cc48d088d3cee46bda33c95c8fa6ffba65b0e
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Vitaliy Cherepanov [Wed, 2 Dec 2015 11:46:41 +0000 (14:46 +0300)]
[FEATURE] OpenGL ES 3.0 implement new functions
Change-Id: I2684d99920e5ba8b677e78396633b8b5bf8eb135
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vyacheslav Cherkashin [Tue, 1 Dec 2015 14:24:50 +0000 (17:24 +0300)]
[IMPROVE] acceleration build for arm7l and aarch64
Change-Id: Ib9bc50806f24f18b0dc37b079ff81cf3d6e10bb4
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Anatolii Nikulin [Wed, 25 Nov 2015 11:51:10 +0000 (14:51 +0300)]
[FIX] disable signal SIGPIPE
Use flag MSG_NOSIGNAL in send() to supress signal SIGPIPE
when send message to socket, closed by other side
Change-Id: I0c4bfe90ded211f55fc5eebf5c4e4223d9d47a9f
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Anatolii Nikulin [Wed, 25 Nov 2015 11:33:45 +0000 (14:33 +0300)]
[FIX] exit of "already running" processes
Add message APP_MSG_STOP_WITHOUT_KILL to stop application
without exit
Change-Id: I0068e47f1238d21c46445260a1990ce483cd0ffc
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Vyacheslav Cherkashin [Tue, 24 Nov 2015 11:17:17 +0000 (14:17 +0300)]
[FIX] build dependency (Emile.h)
Change-Id: I80d1d24f38386569eb56545fff845a34b7d671a5
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Tue, 17 Nov 2015 17:04:43 +0000 (20:04 +0300)]
[FIX] build for tizen_3.0
unsupported feature:
- screenshots
Change-Id: I717286f21e6db998e0a2ff181cbc56de81670bf6
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vitaliy Cherepanov [Tue, 17 Nov 2015 11:33:45 +0000 (14:33 +0300)]
[FIX] prevent issues
--------------------------------------------------------------------
| CID | Type | File | Function |
|------------------------------------------------------------------|
|41289 | check ret value | dacapture.c | captureScreen |
|41288 | check ret value | libdaprobe.c | application_exit |
|------------------------------------------------------------------|
Change-Id: I60ee49ed58521949a174ced44256142976c6068a
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Alexander Aksenov [Fri, 16 Oct 2015 11:54:29 +0000 (14:54 +0300)]
[FIX] Probes count generation
Previously it less than probes count
Change-Id: Ic56eb155c3b5301329f464120a1897cf9da41728
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Vitaliy Cherepanov [Tue, 18 Aug 2015 13:15:35 +0000 (16:15 +0300)]
[FEATURE] add OpenGL3.0 ES prototypes
Change-Id: I1de3ae44ba5a0f7c71e9d09dc8c61850530370c9
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Tue, 13 Oct 2015 16:36:16 +0000 (19:36 +0300)]
[IMPROVE] OpenGl c_probe prototypes
Added C aliases for C++ functions
Change-Id: Ib456faef2d66ac898806eedb034dd1ae89db39e0
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Thu, 8 Oct 2015 11:15:35 +0000 (14:15 +0300)]
[FIX] prevent issues
--------------------------------------------------------------------
| CID | Type | File | Function |
|------------------------------------------------------------------|
|486087 | out of bounds | btsym.c | da_backtrace_symbols |
|486088 | buffer size wrn | btsym.c | da_backtrace_symbols |
|------------------------------------------------------------------|
Change-Id: If32fa95a69101dcc1fc05b6f4d07cacdf15d7f9d
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Wed, 7 Oct 2015 15:02:05 +0000 (18:02 +0300)]
[FIX] prevent issues
-----------------------------------------------------------------------|
| CID | Type | File | Function |
|-----------------------------------------------------------------------|
|452748 |DC.SECURE_CODING_STRCAT | btsym.c | da_backtrace_symbol|
|452682 |DC.SECURE_CODING_STRCPY | btsym.c | da_backtrace_symbol|
|452674 |DC.SECURE_CODING_BACKTRACE | libdaprobe.c | getBacktraceString |
|452625 |DC.SECURE_CODING_SPRINTF | btsym.c | |
|452589 |DC.SECURE_CODING_SPRINTF | btsym.c | |
|452571 |DC.SECURE_CODING_USLEEP | damaps.c | print_list_sorted |
|-----------------------------------------------------------------------|
Change-Id: Ib27b74d14a011b4e9b8d4f41b0d7e9f7ae3810f8
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Tue, 6 Oct 2015 11:59:52 +0000 (14:59 +0300)]
[FIX] prevent issues
-----------------------------------------------------------
| CID | Type | File | Function |
|---------------------------------------------------------|
| 41294 | resource leak | lib_parse_elf.c | get_plt_addrs |
|---------------------------------------------------------|
Change-Id: I2092a963b75ba5280cef6ac801d41c1e34866454
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Anatolii Nikulin [Thu, 24 Sep 2015 09:06:35 +0000 (12:06 +0300)]
[FIX] bounds violation in fread()
Change-Id: Id5b93c213b7312494c308f911cc5289f1ac41eec
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Anatolii Nikulin [Thu, 24 Sep 2015 09:02:47 +0000 (12:02 +0300)]
[FIX] disable compile optimization
Change-Id: I8a91689ec60d7ece04422f768c877bedc58152c5
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Alexander Aksenov [Thu, 17 Sep 2015 08:54:15 +0000 (11:54 +0300)]
[FIX] Supporting all funcs with the same name
Previously, probes were set only on the firstly found
function, so, if you have several functions with the same
name (for expl fopen()) only one of them was profilied.
Change-Id: If26529ed5d319314f52907f6bcc541f5015ca8ba
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Vitaliy Cherepanov [Tue, 1 Sep 2015 15:04:25 +0000 (18:04 +0300)]
[FIX] prevent issue
---------------------------------------------------------------------------------------------------
| CID | Type | File | Function |
|-------------------------------------------------------------------------------------------------|
| 452564 | Out-of-bounds access | libdauserfunc.c | profil_count |
| 452761 | Structurally dead code | gesture.c | __n_finger_tap_pack |
| 452764 | Structurally dead code | damaps.c | read_mapping_line |
| 452763 | Structurally dead code | damaps.c | update_is_instrument_lib_attr_nolock |
| 452718 | Dereference null return value | damaps.c | maps_make |
| 452641 | Dereference null return value | damaps.c | realloc_array |
| 476233 | Logically dead code | parse_elf.c | main |
| 476234 | Dereference null return value | lib_parse_elf.c | get_got_plt_addrs |
---------------------------------------------------------------------------------------------------
Change-Id: I3d703757d2105699253176d20d1b464cfe1d70a3
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Anatolii Nikulin [Fri, 28 Aug 2015 11:00:12 +0000 (14:00 +0300)]
[FIX] prevent issues
Change-Id: Ie025cdadbec9cbd1b026a8bd8cd835cc3b53ebfd
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Dmitry Kovalenko [Fri, 28 Aug 2015 06:25:24 +0000 (09:25 +0300)]
[FIX] Parse elf build deps
Change-Id: I9a5de1694854dfac85c2bbc660aac4d35a1697b9
Alexander Aksenov [Thu, 27 Aug 2015 09:42:31 +0000 (12:42 +0300)]
[IMPROVE] Add Tizen 2.4 wearable gbs support
Change-Id: Ic70116a00f4011baab63a89024cbe21f4908e621
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Thu, 27 Aug 2015 09:17:41 +0000 (12:17 +0300)]
[FIX] Parsing lib symbols
Now it works for functions like malloc$ as well as
for malloc@@GLIBC...
Change-Id: Icb4bd26915ba3295abf63865122dabae6518c314
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Fri, 21 Aug 2015 14:37:34 +0000 (17:37 +0300)]
[IMPROVE] Add ARM .plt support for parse script
Change-Id: I47f6b48dddd6e6f2fe9a4fe971c7bb2228be95fa
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>