summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-02-10Remove -fltosandbox/denis13/LTODenis Khalikov1-0/+2
2016-12-30packaging: disabled python accelsandbox/jaehun77/gcc6xJaehun Jeong1-3/+3
Signed-off-by: Jaehun Jeong <jh4u.jeong@samsung.com>
2016-12-30Fix build with GCC6Jaehun Jeong12-15/+17
Signed-off-by: Jaehun Jeong <jh4u.jeong@samsung.com>
2016-12-12Remove UI callbacks from feature probes listsubmit/tizen_unified/20170308.100409submit/tizen_3.0/20161214.104520submit/tizen/20161214.104530accepted/tizen/wearable/20161215.073301accepted/tizen/unified/20170309.033633accepted/tizen/tv/20161215.073249accepted/tizen/mobile/20161215.073230accepted/tizen/ivi/20161215.073311accepted/tizen/common/20161214.161003accepted/tizen/3.0/wearable/20161215.045449accepted/tizen/3.0/tv/20161215.045438accepted/tizen/3.0/mobile/20161215.045354accepted/tizen/3.0/ivi/20161215.045501accepted/tizen/3.0/common/20161215.164050Alexander Aksenov1-5/+0
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>
2016-12-09Remove unused labelsubmit/tizen_3.0/20161209.134853submit/tizen/20161209.134902accepted/tizen/wearable/20161212.025647accepted/tizen/tv/20161212.025633accepted/tizen/mobile/20161212.025602accepted/tizen/ivi/20161212.025700accepted/tizen/common/20161210.162224accepted/tizen/3.0/wearable/20161213.091218accepted/tizen/3.0/tv/20161213.091202accepted/tizen/3.0/mobile/20161213.091112accepted/tizen/3.0/ivi/20161213.091241accepted/tizen/3.0/common/20161213.163352Alexander Aksenov1-1/+0
Change-Id: I5f8e4efa8b1bdfae88eb9d56aabad49fc94bdb59 Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
2016-12-09Fix errno for pthread_exit() probeAlexander Aksenov1-1/+1
Change-Id: I57ae484f8287180d2e6cc1460c6d59f62257dbd5 Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
2016-12-09Fix memory allocation for msg dataAlexander Aksenov1-26/+34
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>
2016-12-09Remove gesture hash listsAlexander Aksenov3-156/+1
Because they are useless now. Svace issue. Change-Id: I7a001718deb464b768249c50155d36a931d27f88 Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
2016-12-09Add BSD-2.0 licenseSRR_20161209Dmitry Kovalenko1-1/+1
Change-Id: Iedfed71fa5db15d63292185b430060897a2a25ca
2016-12-07Revert GCC specific changes in LSan code.submit/tizen_3.0/20161208.043057submit/tizen_3.0/20161207.141254submit/tizen/20161207.141311accepted/tizen/wearable/20161208.012941accepted/tizen/tv/20161208.012929accepted/tizen/mobile/20161208.012911accepted/tizen/ivi/20161208.013000accepted/tizen/common/20161207.184833accepted/tizen/3.0/wearable/20161208.065344accepted/tizen/3.0/tv/20161208.065332accepted/tizen/3.0/mobile/20161208.065306accepted/tizen/3.0/ivi/20161208.065358accepted/tizen/3.0/common/20161208.153828Maxim Ostapenko5-69/+8
Change-Id: I52e3cc2f31e3ea1b2d1da9aca6639a94cd56b42a Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
2016-12-07Add LICENSE.compiler-rt file for LSan source directory.Maxim Ostapenko2-0/+99
Change-Id: If24cd1be428ff20b3862a91dcd1ea7f2459fbece Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
2016-12-07Add copyright about code copied from waylandDmitry Kovalenko1-0/+1
Change-Id: I6729c9fdb7e81d707e780a5b5cd32a16392f8d4b
2016-11-30Register readable anonymous mappings in root set during LSan initialization.Maxim Ostapenko4-10/+58
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>
2016-11-24capi: fix lifecyclesubmit/tizen_3.0/20161130.194649submit/tizen_3.0/20161130.194014accepted/tizen/3.0/wearable/20161201.074731accepted/tizen/3.0/tv/20161201.074727accepted/tizen/3.0/mobile/20161201.074714accepted/tizen/3.0/ivi/20161201.074739accepted/tizen/3.0/common/20161201.135346Vyacheslav Cherkashin1-1/+1
Now ui_app_main() is caught for all binaries. Change-Id: Id93a0d4cff75833456fe0727776142ffdc8a3c0b Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
2016-11-24Fix SVACE issuesubmit/tizen_3.0/20161124.145720submit/tizen/20161124.145503accepted/tizen/wearable/20161125.005135accepted/tizen/tv/20161125.005113accepted/tizen/mobile/20161125.005102accepted/tizen/ivi/20161125.005149accepted/tizen/common/20161124.170311Dmitry Kovalenko1-1/+1
- redundant NULL check Change-Id: I660d96fb63b2d8f1ac86154da564cab6e49dc602 Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
2016-11-22parse_elf: add x86_64 environment supportsubmit/tizen_3.0/20161123.142346submit/tizen/20161123.142358accepted/tizen/wearable/20161123.233625accepted/tizen/tv/20161123.233607accepted/tizen/mobile/20161123.233553accepted/tizen/ivi/20161123.233639accepted/tizen/3.0/wearable/20161124.082414accepted/tizen/3.0/tv/20161124.082350accepted/tizen/3.0/mobile/20161124.082329accepted/tizen/3.0/ivi/20161124.082423accepted/tizen/3.0/common/20161124.182045Vyacheslav Cherkashin3-5/+19
Change-Id: Ie153edaa89288c0f08dae80f89f45785b0f70368 Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
2016-11-21GOT: Disable preload addreses search in libs.Vitaliy Cherepanov1-1/+2
Change-Id: Ie12407557eb5cbcce67f0790bdc107eb6a725675 Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
2016-11-21Fix probe_file probes.Vitaliy Cherepanov3-0/+47
add _IO_putc handler add _IO_getc handler add __isoc99_fscanf handler Change-Id: I119ef385d78aeede45b192ded0a6cde682bc337d Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
2016-11-21Fix ungetc probe.Vitaliy Cherepanov1-1/+1
wrong probe API id entry packed to trace Change-Id: I9c3bee3997e86f799b0cf5c41ba428fe70ec6d9f Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
2016-11-21Refactor PROBES_LIST x-macrosesVitaliy Cherepanov17-207/+227
Change-Id: Ic61ac7975d954e186d2a427159874992ffb95352 Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
2016-11-21Fix file io probes handlersVitaliy Cherepanov1-12/+4
replace wrong original function calls Change-Id: Ib9f4810034be9fbda9c56d5985fadf55128f70d4 Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
2016-11-17GOT patcher: support data.rel.roAlexander Aksenov3-40/+121
Change-Id: I9b405aa27d80544edc77e688983c5211d6f40a08 Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
2016-11-09GOT patcher: add profiling by apps commsubmit/tizen_3.0_common/20161110.084657submit/tizen_3.0/20161109.145028submit/tizen/20161109.144928accepted/tizen/wearable/20161110.002028accepted/tizen/tv/20161110.002012accepted/tizen/mobile/20161110.001959accepted/tizen/ivi/20161110.002048accepted/tizen/common/20161110.153652accepted/tizen/3.0/wearable/20161110.022652accepted/tizen/3.0/tv/20161110.022644accepted/tizen/3.0/mobile/20161110.022615accepted/tizen/3.0/ivi/20161110.022708accepted/tizen/3.0/common/20161114.081045Alexander Aksenov1-1/+5
Workaround for web apps Change-Id: I37d8d5a315da53929b77d1d63e15aaebf5044a57 Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
2016-11-09Add field with function address to MSG_PROBE_Vitaliy Cherepanov8-4/+16
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>
2016-11-09Add strdup probe.Maxim Ostapenko4-5/+71
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>
2016-11-09Fix reallocation bug in LSan.Maxim Ostapenko5-14/+9
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>
2016-11-09Fix warnings in LSan code.Maxim Ostapenko4-17/+5
Just a small cleanup patch to get rid of compiler warnings. Change-Id: I3c9bf880e0abb00a884ccc51518b365a7dbf52fd Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
2016-11-08Fix svace issuesAlexander Aksenov2-5/+4
Change-Id: I957fa6efaaceb9bf2b9a5ab0ba93d8ce39a077cb Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
2016-11-02Fix wayland multithreaded issuesubmit/tizen_3.0/20161103.052948submit/tizen_3.0/20161102.124012submit/tizen_3.0/20161102.110933submit/tizen/20161103.052455submit/tizen/20161102.110741accepted/tizen/wearable/20161103.231317accepted/tizen/tv/20161103.231257accepted/tizen/mobile/20161103.231241accepted/tizen/ivi/20161103.231335accepted/tizen/3.0/wearable/20161103.121444accepted/tizen/3.0/tv/20161103.121435accepted/tizen/3.0/mobile/20161103.121154accepted/tizen/3.0/ivi/20161103.121458Anatolii Nikulin1-8/+22
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>
2016-10-26GOT patcher: add libglib to ignoredsubmit/tizen/20161027.065329accepted/tizen/wearable/20161028.151907accepted/tizen/tv/20161028.151859accepted/tizen/mobile/20161028.151839accepted/tizen/ivi/20161028.151922accepted/tizen/common/20161027.073732Alexander Aksenov1-1/+3
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>
2016-10-26GOT patcher: support API-by-pointer callsAlexander Aksenov3-50/+108
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>
2016-10-26GOT patcher: add LSan to ignored libsAlexander Aksenov1-0/+2
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>
2016-10-26GOT patcher: fix memory probes for ARMAlexander Aksenov1-2/+35
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>
2016-10-26GOT patcher: support null program_invocation_nameAlexander Aksenov1-5/+32
Change-Id: Iab5db29972ad2e4f698c1401d16d22e3f0f49f9d Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
2016-10-26GOT patcher: add main binary supportAlexander Aksenov1-6/+20
Change-Id: I09681f727165ccbeda199610d96136e227708097 Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
2016-10-26GOT patcher: allocate system specified stack sizeAlexander Aksenov1-1/+9
Change-Id: Ic6db3d50067825077847a94c47391efc27d4a52e Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
2016-10-26GOT patcher: profiling console appsAlexander Aksenov1-11/+18
Change-Id: Ie737aa22490c5a15800e52d3b0664a589594efd6 Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
2016-10-26Add initialization pthread_attr structAlexander Aksenov1-1/+8
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>
2016-10-26GOT patcher: separate Event featureAlexander Aksenov9-67/+103
Change-Id: Ibc2153566c117989e5a0a01ee4b8068c089b2bd4 Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
2016-10-26GOT patcher: add UIHV lib to ignoredAlexander Aksenov1-0/+2
Change-Id: I1709a04180c073adea96a0576bd8d909501bee06 Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
2016-10-26GOT patcher: improve cb GL function supportAlexander Aksenov6-46/+80
Change-Id: I25b4a9db773f2315e66069d78da3e11149b23c62 Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
2016-10-26Fix GOT patcher build for TVAlexander Aksenov3-6/+19
Change-Id: I72252710b64948d2a474f876f8b9570666c765b7 Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
2016-10-26Fix patching malloc in linker on ARM deviceAlexander Aksenov1-2/+4
Change-Id: Id1711815c3fb8d60d6fad70a3e4ce664ae4d947f Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
2016-10-26GOT patcher: implement intital versionAlexander Aksenov85-1258/+4809
Change-Id: I8a0f2a590fabcdb439b3ec19c29f269379537b53 Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
2016-10-26Fix CHECK failures in LSan from official repositories.submit/tizen/20161026.151724Maxim Ostapenko1-1/+1
Backported from LLVM mainline: https://reviews.llvm.org/rL285177. Change-Id: Ife24ccafe0c23379848969d967b1559554874afc Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
2016-10-25Fix missed runtime dependency from swap-probe to swap-probe-lsan.Maxim Ostapenko1-1/+1
Change-Id: Ibe632fcea77af893b80edf5e847c17da40044aff Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
2016-09-28Add posix_memalign probe.submit/tizen_3.0_wearable/20161015.000006submit/tizen_3.0_tv/20161015.000005submit/tizen_3.0_mobile/20161015.000006submit/tizen_3.0_ivi/20161010.000007submit/tizen_3.0_common/20161104.104000submit/tizen/20160928.072306accepted/tizen/wearable/20160929.002201accepted/tizen/tv/20160929.002030accepted/tizen/mobile/20160929.002052accepted/tizen/ivi/20160929.002141accepted/tizen/common/20160928.164426accepted/tizen/3.0/wearable/20161015.084323accepted/tizen/3.0/tv/20161016.005625accepted/tizen/3.0/mobile/20161015.034209accepted/tizen/3.0/ivi/20161011.065103Maxim Ostapenko2-8/+45
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>
2016-09-28Extract information about leaked chunks from da_swap_lsan.so.Maxim Ostapenko2-9/+113
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>
2016-09-28Support LeakSanitizer.Maxim Ostapenko11-19/+286
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>
2016-09-28Deliver LeakSanitizer sources.Maxim Ostapenko110-2/+31553
- 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>