summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-11-02fix error by -Werror=deprecated-declarations.sandbox/dkson95/gcc6Dongkyun, Son1-0/+1
Signed-off-by: Dongkyun, Son <dongkyun.s@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>
2016-09-23Use a sorted list of files in __get_libs_in_dir_by_mask to avoid unnecessary ↵Junghyun Kim1-1/+1
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>
2016-08-29Ignore debug binaries in all libsAlexander Aksenov1-1/+1
Change-Id: I312651d8b372559c81a9bf93b1a7f959032ef47f Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
2016-08-16Fix null pointer dereferenceAlexander Aksenov1-0/+2
When parsing elf binary without any symbols previously null pointer dereference occured. Change-Id: I67316a8e8e9f4d4d912c518f942468974003453f Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
2016-08-03Remove unused source filesDmitry Kovalenko3-242/+0
Change-Id: Ib17155e05390ee3faa248c488b6c57d2333ddb8b Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
2016-07-21Optimize building timeDmitry Kovalenko4-66/+138
- 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>
2016-07-11[FIX] console application instrumentationsubmit/tizen/20160715.080419accepted/tizen/wearable/20160717.034436accepted/tizen/tv/20160717.034448accepted/tizen/mobile/20160717.034408accepted/tizen/ivi/20160717.034458accepted/tizen/common/20160715.175439Vitaliy Cherepanov1-1/+4
Change-Id: Ib1a96b98e0a4f0189000e7fc59082c85d09020d3 Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com> Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
2016-07-08Replace WAYLAND_SUPPORT by TIZEN_FEATURE_WAYLANDDmitry Kovalenko3-9/+9
Change-Id: I1de06928a013db311220617141654b4384831fa1 Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
2016-07-06fix screenshotssubmit/tizen/20160706.112247accepted/tizen/wearable/20160706.132551accepted/tizen/tv/20160706.132513accepted/tizen/mobile/20160706.132526accepted/tizen/ivi/20160706.132927accepted/tizen/common/20160706.142818Anatolii Nikulin5-301/+235
use tbm buffer for image instead shared memory Change-Id: I60afc17c92adf39a8e6ef933d43e0b99a425ae93 Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
2016-07-01add strict dependency for capi-appfw-applicationsubmit/tizen_common/20160701.180000submit/tizen/20160701.120203accepted/tizen/wearable/20160701.133840accepted/tizen/tv/20160701.133818accepted/tizen/mobile/20160701.133801accepted/tizen/ivi/20160701.133851accepted/tizen/common/20160701.193155Anatolii Nikulin1-1/+1
Change-Id: I739c832ff10a45c750bf9382bb0664cf6d74d55f Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
2016-06-23[FIX] symbols searchingsubmit/tizen/20160624.041100submit/tizen/20160623.160615accepted/tizen/wearable/20160624.064816accepted/tizen/tv/20160624.064634accepted/tizen/mobile/20160624.064729accepted/tizen/ivi/20160624.064802accepted/tizen/common/20160624.134015Anatolii Nikulin1-16/+72
Change-Id: I4cf9c53deec67c8dab35409d9d6c7ae8ce87eb71 Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
2016-06-10[IMPROVE] add function names for LD_PRELOAD probessubmit/tizen/20160623.045732submit/tizen/20160621.051449accepted/tizen/wearable/20160623.124206accepted/tizen/tv/20160623.124150accepted/tizen/mobile/20160623.124131accepted/tizen/ivi/20160623.124220accepted/tizen/common/20160623.154355accepted/tizen/common/20160621.184419Vitaliy Cherepanov1-1/+2
Change-Id: Iccbfcb78c262cdbaee07dcece5e8c56977ab85a5 Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
2016-06-10[IMPROVE] parse_elf: add symbol type to outputVyacheslav Cherkashin4-9/+38
Change-Id: I2c124cf5de324e213dd2f97c64ac4e4d4c61b4ac Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
2016-05-20[IMPROVE] Implement screenshot and orientation event featuressubmit/tizen/20160526.101038accepted/tizen/wearable/20160602.021524accepted/tizen/tv/20160602.021543accepted/tizen/mobile/20160602.021511accepted/tizen/ivi/20160602.021551accepted/tizen/common/20160526.150514Anatolii Nikulin12-426/+647
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>
2016-05-17Merge branch 'tizen_2.4_dev' into tizensubmit/tizen/20160524.083432accepted/tizen/wearable/20160525.003320accepted/tizen/tv/20160525.003328accepted/tizen/mobile/20160525.003309accepted/tizen/ivi/20160525.003335accepted/tizen/common/20160525.155748Dmitry Kovalenko36-2204/+70
Change-Id: Ib4cee57f1ac18ffd2879d8f7f9abd3a34c7f0d22
2016-05-13[FIX] remove build warningstizen_2.4_devVitaliy Cherepanov4-19/+24
Change-Id: I795b61c520063b2adb883a9daae6a4e12d96d41d Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
2016-04-19[REFACTOR] Place all probes macro in the same headerAlexander Aksenov2-4/+4
Change-Id: I871eae18a09275cccc3e0e62c12f7f7abebe628c Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
2016-04-19[REFACTOR] Rename recv_threadAlexander Aksenov1-2/+2
Change-Id: Ib141bbe4b992c38ea6b4933068a344b92431bf0b Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
2016-04-19[REFACTOR] Rename createSocketAlexander Aksenov1-10/+10
Change-Id: I574304fd4d1a98683a16bd6df3db5dbf71d3cb57 Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
2016-04-19[CLEAN] Remove some more dead codeAlexander Aksenov23-245/+34
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>
2016-04-19[CLEAN] Remove dead codeAlexander Aksenov15-1938/+1
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>
2016-04-19[FIX] remove build warningssubmit/tizen/20160420.052257submit/tizen/20160419.093641accepted/tizen/wearable/20160421.010753accepted/tizen/tv/20160421.010736accepted/tizen/mobile/20160421.010803accepted/tizen/ivi/20160421.010745accepted/tizen/common/20160420.141815Vitaliy Cherepanov4-19/+24
Change-Id: I795b61c520063b2adb883a9daae6a4e12d96d41d Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
2016-04-15[LICENSE] Fix wrong license headers (gpl->lgpl)submit/tizen/20160415.065220accepted/tizen/wearable/20160415.084127accepted/tizen/tv/20160415.084135accepted/tizen/ivi/20160415.084140accepted/tizen/common/20160415.162542Dmitry Kovalenko3-39/+51
Change-Id: I643b8b3bca9057dd640394c3f89ac259ebd6d1da Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
2016-04-08[FEATURE] start ui viewer implementationAnastasia Lyupa2-1/+18
Change-Id: Ibce8e500c5172ae76aa94858ef2104c5d1775c5c Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
2016-03-11[FIX] Map file parsingsubmit/tizen/20160314.042129accepted/tizen/wearable/20160314.105656accepted/tizen/tv/20160314.105643accepted/tizen/mobile/20160314.105625accepted/tizen/ivi/20160314.105716accepted/tizen/common/20160315.221031SRR_20160331Dmitry Kovalenko1-1/+10
Add checking for length of device path Change-Id: Ia1e9faeec5beee1de5db826f6f865ca5d61f878c Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
2016-03-10[FIX] Probe namesAnatolii Nikulin1-2/+2
Change-Id: I83a7c84e99e83a0c2760c74adeaad5f3f54f1257 Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
2016-02-12[FIX] preloading da_probe_tizen.soVyacheslav Cherkashin12-35/+177
Remove symbols dependency Change-Id: Ie036049c661a769954971bcfbf77f2c671a3373e Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
2016-02-12Merge branch 'tizen_2.4_dev' into tizenVyacheslav Cherkashin6-21/+96
Conflicts: probe_socket/libdasocket.c Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com> Change-Id: I21ecf3c00ea118e027e239884647cab7319309b6
2016-01-22[FIX] Svace issuesVitaliy Cherepanov1-3/+1
Change-Id: I7018b1c62d23b615eb7012a7d840e3651f2e337a Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
2016-01-22[FIX] Svace issuesVitaliy Cherepanov1-3/+2
Change-Id: I07d8d84dfe5e4b4445d6a71f120e6b0f48a26cf7 Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
2015-12-23[FIX] Build Dependencysubmit/tizen_ivi/20160217.000003submit/tizen_ivi/20160217.000000submit/tizen_common/20160127.161648submit/tizen/20151229.043310accepted/tizen/wearable/20151229.073638accepted/tizen/tv/20151229.073607accepted/tizen/mobile/20151229.073456accepted/tizen/ivi/20160218.023735accepted/tizen/common/20160128.122200Mun, Gwan-gyeong1-2/+3
change explicit mesa dependency. Change-Id: I0cf206b982a4553be336b84c63eaf56ddfea6a17 Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
2015-12-22[FIX] Svace issuessubmit/tizen_common/20151229.154718submit/tizen_common/20151229.144031submit/tizen/20151222.145839accepted/tizen/wearable/20151222.225221accepted/tizen/tv/20151222.225201accepted/tizen/mobile/20151222.225148Vitaliy Cherepanov4-45/+14
----------------------------------------------------- | 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>
2015-12-17[FIX] Svace issuesHyeongsik Min1-4/+4
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>
2015-12-09[FEATURE] OpenGL ES 3.0 implement new functionsVitaliy Cherepanov2-8/+77
Change-Id: I2684d99920e5ba8b677e78396633b8b5bf8eb135 Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
2015-12-01[IMPROVE] acceleration build for arm7l and aarch64submit/tizen/20151203.065637accepted/tizen/wearable/20151203.075435accepted/tizen/tv/20151203.075420accepted/tizen/mobile/20151203.075402Vyacheslav Cherkashin1-0/+10
Change-Id: Ib9bc50806f24f18b0dc37b079ff81cf3d6e10bb4 Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
2015-11-27[FIX] disable signal SIGPIPEtizen_2.4_uihvAnatolii Nikulin1-3/+4
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>
2015-11-26[FIX] exit of "already running" processesAnatolii Nikulin2-3/+6
Add message APP_MSG_STOP_WITHOUT_KILL to stop application without exit Change-Id: I0068e47f1238d21c46445260a1990ce483cd0ffc Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
2015-11-24[FIX] build dependency (Emile.h)submit/tizen/20151125.062050accepted/tizen/wearable/20151125.125321accepted/tizen/tv/20151125.125306accepted/tizen/mobile/20151125.125251Vyacheslav Cherkashin1-0/+1
Change-Id: I80d1d24f38386569eb56545fff845a34b7d671a5 Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
2015-11-23[FIX] build for tizen_3.0submit/tizen/20151123.110430Vyacheslav Cherkashin3-26/+41
unsupported feature: - screenshots Change-Id: I717286f21e6db998e0a2ff181cbc56de81670bf6 Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
2015-11-17 [FIX] prevent issuesVitaliy Cherepanov2-3/+5
-------------------------------------------------------------------- | 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>
2015-10-16[FIX] Probes count generationsubmit/tizen/20151105.080754submit/tizen/20151105.071836Alexander Aksenov1-3/+6
Previously it less than probes count Change-Id: Ic56eb155c3b5301329f464120a1897cf9da41728 Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
2015-10-13[FEATURE] add OpenGL3.0 ES prototypesVitaliy Cherepanov7-8/+1695
Change-Id: I1de3ae44ba5a0f7c71e9d09dc8c61850530370c9 Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
2015-10-13[IMPROVE] OpenGl c_probe prototypesVitaliy Cherepanov6-228/+219
Added C aliases for C++ functions Change-Id: Ib456faef2d66ac898806eedb034dd1ae89db39e0 Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
2015-10-08[FIX] prevent issuesVitaliy Cherepanov1-5/+5
-------------------------------------------------------------------- | 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>
2015-10-07[FIX] prevent issuesVitaliy Cherepanov5-76/+38
-----------------------------------------------------------------------| | 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>
2015-10-06[FIX] prevent issuesVitaliy Cherepanov1-3/+10
----------------------------------------------------------- | 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>