Dmitry Kovalenko [Thu, 17 Nov 2016 09:25:20 +0000 (12:25 +0300)]
Add initial version of reformated SWAP protocol document
Protocol is in reStructuredText format.
It can be used as it is or converted to html using docutils (Makefile included )
Change-Id: I73b2dd65c7adf9fd45547c4e038cb5ea53a94f8e
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Dmitry Kovalenko [Wed, 7 Dec 2016 13:30:43 +0000 (16:30 +0300)]
Add copyright about code copied from wayland
Change-Id: Iadcfcb7e15b6e349367083c9414b6e6dac828304
Anatolii Nikulin [Wed, 30 Nov 2016 15:04:26 +0000 (18:04 +0300)]
Add removing GOT patcher probes on stop
Change-Id: Ib49e36020d2ead7ffaf68cd3df9c11566c8f34e8
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Anatolii Nikulin [Wed, 30 Nov 2016 14:39:39 +0000 (17:39 +0300)]
Enable Web startup profiling
Change-Id: I9938acefe6515d23d117ee1e3d71c558abb9438b
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Anatolii Nikulin [Thu, 10 Nov 2016 11:39:57 +0000 (14:39 +0300)]
Update memps from mainstream
Change-Id: I45753fcd754a4403109f2262486363679c0a5cd9
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Dmitry Kovalenko [Thu, 24 Nov 2016 06:26:34 +0000 (09:26 +0300)]
Fix SVACE issues
- Don't check result of strstr()
- No_unlock
Change-Id: Ie65032e435cb4e5a5c8c087a9628f66d31f5fcac
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Vyacheslav Cherkashin [Tue, 22 Nov 2016 15:39:40 +0000 (18:39 +0300)]
nsp: workaround for elm_run@plt search
Now it is found during execution
Change-Id: Id62b56f8bbceb7a6c2062884d2ea959b7902a105
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vitaliy Cherepanov [Mon, 31 Oct 2016 14:34:01 +0000 (17:34 +0300)]
Update memps functionality
Change-Id: Ifdf5b265f85ecc4c7a05bd9d4650c777ba5c020f
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Alexander Aksenov [Wed, 9 Nov 2016 12:34:58 +0000 (15:34 +0300)]
GOT patcher: add profiling by apps comm
Change-Id: I5c07280b566e6fab29bfe83ed7aa7bb852df2cc3
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Vyacheslav Cherkashin [Mon, 7 Nov 2016 12:01:20 +0000 (15:01 +0300)]
Fix memory leak in reset_app_inst()
exe_path wasn't free on stop.
Change-Id: I50333bf1af793cd6aa28ae5e61310aa7ba0cee61
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Mon, 7 Nov 2016 11:48:09 +0000 (14:48 +0300)]
Fix memory leak in process_msg_get_real_path()
Using buffer on stack instead of dynamic memory allocation
for second argument of realpath().
Change-Id: Iff861b5821f77a806eb2ea62403ab34c31a510be
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Dmitry Kovalenko [Thu, 3 Nov 2016 09:18:41 +0000 (12:18 +0300)]
Add strict PATH environment variable into swap_init_gtp.sh
Change-Id: I9e8d6d51a71fd5e9cea34fccfeebbcf3dd0d1eab
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Anatolii Nikulin [Thu, 6 Oct 2016 11:44:46 +0000 (14:44 +0300)]
fix duplicate probes on da_probe_tizen.so
on each start we check probes list for library "da_probe_tizen.so",
and add necessary probes
Change-Id: Ia277c633ea8d41307428439c61ba4f808f838d3f
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Anatolii Nikulin [Wed, 2 Nov 2016 08:03:04 +0000 (11:03 +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: I76027f318660c1c02da533832525c3b3ea55f4ca
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Anatolii Nikulin [Mon, 31 Oct 2016 08:18:52 +0000 (11:18 +0300)]
Fix stopping Web application
We send KILL with "owner" id
Change-Id: I50b040fcdaa4aa6a372f87a27d59b621719a8f2e
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Alexander Aksenov [Tue, 25 Oct 2016 13:16:19 +0000 (16:16 +0300)]
GOT patcher: add pthread's data initialization
Issue:
Now GOT patcher module uses probes on pthread init function, so
it needs data about pthread's path and __pthread_initialize_minimal()
offset.
Solution:
Add to swap_gtp_init.sh generation getting and writing neccessary
information.
Change-Id: If0b8f50d1ccb981d3e6a5e62df14a1a7b50659f6
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Thu, 1 Sep 2016 12:01:32 +0000 (15:01 +0300)]
GOT patcher: correct type for type and info msg
Change-Id: I4d056723ef832a4c20e1f3eaea47d809e2245a86
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Thu, 1 Sep 2016 12:00:37 +0000 (15:00 +0300)]
UIHV: consistent max size of the message
Now it is the same as in probe lib
Change-Id: I775f35f4d4d60613233386238738a1852fcb7bf7
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Fri, 26 Aug 2016 16:10:47 +0000 (19:10 +0300)]
GOT patcher: fix libraries handling
Previosly libraries were handled as applications and were added
to GOT patcher module as target binaries.
Change-Id: I33cd33088fbaf9fbcd6c537f5ffc1a2e69adddef
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Wed, 20 Apr 2016 14:55:57 +0000 (17:55 +0300)]
GOT patcher: implement initial version
Change-Id: I0e3461e75c5e25cb551a7888377cf1dc61bf49af
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Vitaliy Cherepanov [Wed, 19 Oct 2016 17:49:20 +0000 (20:49 +0300)]
fix UIHV screenshot of object placed out of screen
Change-Id: Ib2bf26aae6284f604c635352d87a69bde7fb9202
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Wed, 19 Oct 2016 08:18:12 +0000 (11:18 +0300)]
fix application crash during taking UIHV screenshot
Application crash reason is touching ecore objects from separate thread.
This commit moves getting ecore objects information and screenshot
generation to ecore animator callback which calls from main thread.
Change-Id: I6678a4c03f0dc50dc2fb8c50f7d8b654fb696830
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Anatolii Nikulin [Fri, 14 Oct 2016 15:13:14 +0000 (18:13 +0300)]
Fix WSI build for TV targets
Obtain necessary info from binary instead of debug info
Change-Id: Ic235e6b81933d0c55a902cb48c54f52feeb49e2d
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Anatolii Nikulin [Thu, 8 Sep 2016 09:50:12 +0000 (12:50 +0300)]
Rework WSI
Replace webkit by libchromium, add function to get websoket ID,
update to new libwebsocket API
Change-Id: I2ab20fe23fb04114a42649ba901693de8a6cd38a
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Maxim Ostapenko [Thu, 1 Sep 2016 16:12:08 +0000 (19:12 +0300)]
Reserve one bit for LSan in enum feature_code_0.
Change-Id: Ia498747f34b9a8e29b78c2adcc0d4f53e1379b6b
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
Maxim Ostapenko [Wed, 31 Aug 2016 08:48:36 +0000 (11:48 +0300)]
Add ld.so and libdl.so to ignored objects.
We need this to avoid errors when libc.so calls free on pointer,
allocated by libdl.so with malloc.
Change-Id: I6b1c1a9db60dd44ac88d81a8c1943849eb1d423e
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
Maxim Ostapenko [Mon, 22 Aug 2016 16:04:06 +0000 (19:04 +0300)]
Wait for acknowlegenment before closing t->socket.
Wait for acknowlegenment before closing t->socket to ensure that APP_MSG_STOP
message was handled by da_probe_tizen.so.
Change-Id: Iffcfe076a820dec746777156c43a1eff23120be2
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
Gihun Chang [Mon, 12 Sep 2016 04:13:02 +0000 (13:13 +0900)]
Specify the PATH for gen_nsp_data.sh to find parse_elf
correctly.
Change-Id: I89f442c39f1cacf42019beef63b2823d364fc6d6
Dmitry Kovalenko [Fri, 9 Sep 2016 08:30:21 +0000 (11:30 +0300)]
Fix svace issue 'unreachable code'
Change-Id: I4a943dee5f2d3676e640a034300679395fc99895
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Vitaliy Cherepanov [Thu, 14 Apr 2016 08:10:12 +0000 (11:10 +0300)]
Implement protocol version 4.2
Depends on modules: Implement protocol version 4.2
add 3D and GEM pss memory to system info.
Change-Id: I5b64836a5efb8259f3128af1acbba5b21fccb41f
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Anatolii Nikulin [Fri, 15 Jul 2016 13:17:27 +0000 (16:17 +0300)]
fix UIHV start/stop
Depends on modules:rework UIHV init/deinit
Add enable/disable command for UIHV
Change-Id: I13daf3d9bcba8a7c8161b6fe5011e3428d7a5bf4
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Anatolii Nikulin [Fri, 15 Jul 2016 06:15:42 +0000 (09:15 +0300)]
add missed header file
Change-Id: Ia7d3cbb36b5d655612b5d27a138d97a77e58a119
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Anatolii Nikulin [Fri, 8 Jul 2016 10:57:59 +0000 (13:57 +0300)]
fix uihv screenshots
Use tbm buffers instead of shared memory
Change-Id: Iee460eeec2d30d51109b3f49c626263af126477c
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Anatolii Nikulin [Wed, 6 Jul 2016 11:29:36 +0000 (14:29 +0300)]
fix svace issue
Change-Id: I80318f70ccf55403ef9eb7c73e41f1d02cf5c300
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Dmitry Kovalenko [Mon, 4 Jul 2016 04:07:53 +0000 (07:07 +0300)]
Add sctirct path to WSP dummy script
Change-Id: I09315b0518dff27fe3f3b54a1b7311249f4f445b
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Dmitry Kovalenko [Fri, 1 Jul 2016 11:23:26 +0000 (04:23 -0700)]
Merge "Add strict PATH environment variable into init scripts" into tizen
Anatolii Nikulin [Fri, 1 Jul 2016 09:19:52 +0000 (12:19 +0300)]
[FIX] nsp functions for TV
Change-Id: Ica29ab2c335c13c09fd03cb4fe199015cc673f83
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Dmitry Kovalenko [Fri, 1 Jul 2016 04:37:14 +0000 (07:37 +0300)]
Add strict PATH environment variable into init scripts
This change guarantee execution aux programs only from trusted paths.
Even most of programs has absolute path in scripts this change
will prevent security issues in further changes.
Change-Id: I108f5246c6af29eb8f3f4bff278b38941ad208f8
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Anatolii Nikulin [Thu, 30 Jun 2016 12:40:32 +0000 (15:40 +0300)]
[FIX] web application launch
Change-Id: I9384ae586a89797f6bd9a687948ac406e24e31ef
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Anatolii Nikulin [Wed, 29 Jun 2016 13:54:11 +0000 (16:54 +0300)]
[FIX] change nsp functions
Change-Id: I6457058d3c1120fc0c378cd65426aac8e6edb691
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Dmitry Kovalenko [Fri, 27 May 2016 10:39:24 +0000 (13:39 +0300)]
[FIX] Enable UIHV for Tizen 3.0
Fix UIHV library access rights
return index_prop.priority field
Change-Id: Ib3c0c7004662c606deb62b87c6f4cd16882ea57b
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Vitaliy Cherepanov [Fri, 17 Jun 2016 09:32:01 +0000 (12:32 +0300)]
[FIX] set floor domain name
Change-Id: I9effdfaa4c74c81a6b0fc40f51bc7f109796962f
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Wed, 15 Jun 2016 16:44:24 +0000 (19:44 +0300)]
[FIX] Svace issues
|-------------------------------------------------------|
| WGID | Type | File |
|-------------------------------------------------------|
| 84792 | TAINTED_INT.MIGHT | ui_viewer_lib.c |
| 84797 | TAINTED_INT.MIGHT | ui_viewer_lib.c |
|-------------------------------------------------------|
Change-Id: I04f1266b6dbd37d1b7a934df2b9354c44958503e
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vyacheslav Cherkashin [Tue, 17 May 2016 16:54:15 +0000 (19:54 +0300)]
[IMPROVE] add handling IFUNC for ld_probes
Change-Id: I1cb6563d6ea0cfdd06574dc70e1f17d25f3017d5
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Anatolii Nikulin [Fri, 27 May 2016 10:11:40 +0000 (13:11 +0300)]
[FIX] Svace issues
|-------------------------------------------------------|
| WGID | Type | File |
|-------------------------------------------------------|
| 83591 | NO_UNLOCK | ui_viewer_utils.c |
| 83589 | STATIC_OVERFLOW.SCANF | ui_viewer_lib.c |
| 83587 | PROC_USE.VULNERABLE | ui_viewer_data.c |
| 83586 | PROC_USE.VULNERABLE | ui_viewer_utils.c |
| 83594 | NO_EFFECT | ui_viewer.c |
|-------------------------------------------------------|
Change-Id: I3c4f6a4a22836d541c083ad89c3694df889ffc47
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Dmitry Kovalenko [Wed, 25 May 2016 12:32:08 +0000 (15:32 +0300)]
[FIX] Remove warnings
Change-Id: I2f86f046106ca027cafcec946668db29bfb8249b
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Anatolii Nikulin [Mon, 23 May 2016 11:25:50 +0000 (14:25 +0300)]
[FIX] Svace issues
-----------------------------------------------------
| WGID | Type | File |
|----------------------------------------------------
| 72423 | MEMORY_LEAK | da_protocol.c |
| 78692 | PROC_USE.VULNERABLE | utils.c |
|---------------------------------------------------|
Change-Id: I4896f7aa780cf331d36f729ca1e9b4993c4c0ab4
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Dmitry Kovalenko [Wed, 18 May 2016 10:56:14 +0000 (13:56 +0300)]
[FIX] Build for Tizen 3.0
Change-Id: I460a01ab49e1ad8e2f06fc819dd6b228acd9459d
Dmitry Kovalenko [Tue, 17 May 2016 14:40:59 +0000 (17:40 +0300)]
Merge branch 'tizen_2.4_dev' into tizen
Change-Id: I99cee869615515119a202964305f8a01203ea043
Dmitry Kovalenko [Mon, 16 May 2016 06:22:30 +0000 (09:22 +0300)]
[FIX] Build for TV
Remove app-core-efl-debuginfo dependecy
Change-Id: I5a42363272ce7a001098cbae1636461c5e847c32
Vitaliy Cherepanov [Fri, 15 Apr 2016 15:45:50 +0000 (18:45 +0300)]
[FIX] remove build warnings
Change-Id: I0ce47e4309303e4c74a1ad8e216447a33829ca4f
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Alexander Aksenov [Fri, 13 May 2016 14:41:15 +0000 (17:41 +0300)]
[CLEAN] UIHV: remove APP_MSG_MAPS_INST_LIST
Change-Id: I92efb069e851e84b08718c060258b0cd2d1c8ad8
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Tue, 5 Apr 2016 15:59:44 +0000 (18:59 +0300)]
[CLEAN] Remove useless code
Remove code that is related only with probe's dead code
Change-Id: Ic6311efa6bc640f01d331f4cd079ac55ea02a23f
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Anatolii Nikulin [Thu, 5 May 2016 07:06:51 +0000 (10:06 +0300)]
[FIX] Run target application as owner
Change-Id: I31475e006c1c70e027dbaf4c35cf868f3ebd5daf
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Alexander Aksenov [Tue, 1 Mar 2016 11:49:21 +0000 (14:49 +0300)]
[IMPROVE] Add loader and UIHV modules support
Change-Id: I7a9c908605cc3ad447c8451d9fc6ef0258286ca3
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Thu, 21 Jan 2016 19:29:02 +0000 (22:29 +0300)]
[FIX] UIHV: Writing data to file
Issue:
Previously, there was a dynamically allocated buffer of a
constant size that have been used for all of the UI elements
regardless of their count and used data size.
Sometimes this have led to buffer overflow.
Solution:
Now buffer is not used at all, the whole data is written directly
to a file.
Change-Id: I847321db086f1c8e667d2ba7d12572fb29a6897f
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Mon, 28 Dec 2015 14:06:22 +0000 (17:06 +0300)]
[FIX] Target mem alloc send to host
With UIHV there are two SWAP libraries of different kind,
but manager treats them as the same library. This leads to several
errors.
Change-Id: Ib1afd9b4846084d2c2fd61201f98162cee3e5154
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Fri, 25 Dec 2015 13:04:24 +0000 (16:04 +0300)]
[FIX] UIHV: screenshot geometry
Now for objects with negative coordinates only visible part
is stored.
Change-Id: I6d8689409e09be21293d0b51716c7df32c5dc455
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Thu, 24 Dec 2015 15:29:33 +0000 (18:29 +0300)]
[FIX] UIHV: add build flags
Add -mno-unaligned-access -mfloat-abi=soft to fix
unaligned access.
Change-Id: I1a2c522391bcedd84c419bf650efe5a181c9ccf3
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Thu, 24 Dec 2015 09:23:37 +0000 (12:23 +0300)]
[FIX] UIHV: build for ARM
Add -fPIC flag for UIHV object files building.
Change-Id: Id0d37be92be36bc265bc44c7fb7456acb4abd773
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Tue, 22 Dec 2015 13:43:06 +0000 (16:43 +0300)]
[PROTO] Increment protocol verion
4.0 -> 4.1
Change-Id: I57a3383ce0172c1f7a0200b777b07e415fe0e56b
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Alexander Aksenov [Tue, 22 Dec 2015 12:06:30 +0000 (15:06 +0300)]
[FIX] UIHV: Fixes for release
Issues:
- Screenshots feature failed;
- evas_render() calls failed;
- da_manger segmentation faults.
Solutions:
- Message is sent to all targets: both to the probe and uihv libraries;
- evas_render() calls temporary removed;
- Null-pointer dereference removed;
Change-Id: Ia48896e72322e738c9b27823aa20355209d641fc
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Dmitry Kovalenko [Wed, 20 Apr 2016 06:01:10 +0000 (09:01 +0300)]
[FIX] Fix build warning for emulators
Change-Id: I62399951f661cd7361001891d77930c9dde4c3c8
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Vitaliy Cherepanov [Mon, 18 Apr 2016 10:50:48 +0000 (13:50 +0300)]
[FIX] change hard-coded path for VD
Change-Id: Ib635cf422da947e52751846a632c2e78216cce32
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Fri, 15 Apr 2016 15:45:50 +0000 (18:45 +0300)]
[FIX] remove build warnings
Change-Id: I0ce47e4309303e4c74a1ad8e216447a33829ca4f
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Dmitry Kovalenko [Fri, 15 Apr 2016 06:56:11 +0000 (09:56 +0300)]
[FIX] Build for TV
Change-Id: I5d98d85fb82cd164bee69590729d5ca455841b79
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Alexander Aksenov [Fri, 8 Apr 2016 11:37:05 +0000 (14:37 +0300)]
[FIX] Function name fix
terminate_all_target() -> terminate_all()
Change-Id: I203c6c52e6e65d4ac4f435663f6e95c529484852
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Anastasia Lyupa [Thu, 2 Jul 2015 08:41:57 +0000 (11:41 +0300)]
[FEATURE] start ui viewer implementation
current protocol version : v0.6
add ui viewer lib files,
build it with da_manager,
set up connection with da_manager,
get ui hierarchy,
get ui properties for an object,
get ui rendering time
Change-Id: I5dd5fd22126fdc9dfc0faa4ca50ea1275c28fcb1
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
Vyacheslav Cherkashin [Wed, 10 Feb 2016 12:44:22 +0000 (15:44 +0300)]
Merge branch 'tizen_2.4_dev' into tizen
Conflicts:
scripts/gen_preload_header.sh
scripts/swap_start.sh
Change-Id: I5536610f3156ba18547f53ffe5a78572d546646d
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Tue, 9 Feb 2016 11:29:37 +0000 (14:29 +0300)]
[FIX] NSP support for Tizen 3.0
Change libappcore-efl.so path
Change-Id: I9342d860f792a6612c74453bbca9149cbcc10370
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Tue, 12 Jan 2016 13:49:13 +0000 (16:49 +0300)]
[FIX] incorrect path to BT coefficient
Change-Id: I38fbce8936257eefbe3d8c671cb164bb7085f023
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vitaliy Cherepanov [Mon, 28 Dec 2015 10:22:52 +0000 (13:22 +0300)]
[FIX] added bluetooth & wifi consumption
Added coefficients for calculation energy consumption
Change-Id: Ia6b3c2eb8706c9593778fdecca127a40ea8ce81c
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Fri, 25 Dec 2015 14:48:53 +0000 (17:48 +0300)]
[FEATURE] add wifi and bt energy to SYSTEM_INFO
Change-Id: I34477d1ca114882d33a35891667bb925933fbe06
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Tue, 22 Dec 2015 08:41:02 +0000 (11:41 +0300)]
[FIX] Svace issues
-----------------------------------------------------
| WGID | Type | File |
|----------------------------------------------------
| 24915 | NEGATIVE_CODE_ERROR | da_protocol.c |
| 25135 | TOCTTOU_SEQUENCE | da_protocol.c |
| 25452 | DEREF_AFTER_NULL | da_protocol.c |
| 25453 | DEREF_AFTER_NULL | da_protocol.c |
| 26296 | SIGNED_TO_BIGGER_UNDIGNED | sys_stat.c |
| 26856 | NOCAST.INTEGER_OVERFLOW | sys_stat.c |
|----------------------------------------------------
Change-Id: I08d791b3fb592b1f56d7ecf8ad853f7f423bb2a8
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Tue, 22 Dec 2015 08:41:02 +0000 (11:41 +0300)]
[FIX] Svace issues
-----------------------------------------------------
| WGID | Type | File |
|----------------------------------------------------
| 24915 | NEGATIVE_CODE_ERROR | da_protocol.c |
| 25135 | TOCTTOU_SEQUENCE | da_protocol.c |
| 25452 | DEREF_AFTER_NULL | da_protocol.c |
| 25453 | DEREF_AFTER_NULL | da_protocol.c |
| 26296 | SIGNED_TO_BIGGER_UNDIGNED | sys_stat.c |
| 26856 | NOCAST.INTEGER_OVERFLOW | sys_stat.c |
|----------------------------------------------------
Change-Id: I08d791b3fb592b1f56d7ecf8ad853f7f423bb2a8
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vyacheslav Cherkashin [Thu, 5 Nov 2015 17:27:45 +0000 (20:27 +0300)]
[IMPROVE] remove load/unload swap_task_data.ko module
Change-Id: I4db66a5c99c7d7d930bb491d4168ab39e8c876df
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Anatolii Nikulin [Wed, 25 Nov 2015 11:22:46 +0000 (14:22 +0300)]
[FIX] exit of "already running" processes
Send message APP_MSG_STOP_WITHOUT_KILL
for stopping instrumentation of already running applications
without exit
Change-Id: Idb74c8b9d232fd8bde84e97e3d91a7fcd419916d
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Vyacheslav Cherkashin [Thu, 19 Nov 2015 10:24:13 +0000 (13:24 +0300)]
[FIX] build for tizen_3.0
unsupported features:
- NSP
- WSP
- WSI
Change-Id: I148b715586d3af6ee79d6284363b8014a7ba7c1c
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Alexander Aksenov [Mon, 16 Nov 2015 08:53:20 +0000 (11:53 +0300)]
[IMPROVE] Preload: Generate ignore binaries list
Issue:
Binaries ignored for preloading execution were hardcoded
in modules. This causes errors when binary names are changed.
Solution:
Now ignored binaries pathes are found on manager compile time
and are passed to kernel via debugfs.
Change-Id: Ic81e44dcde2ceff951163f602dff52ca16bc77d0
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Anatolii Nikulin [Fri, 20 Nov 2015 10:48:45 +0000 (13:48 +0300)]
[FIX] deadlock in da_manager
Change-Id: If0cf631ef695c1db94762034a5c6e4adb73a6524
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
Dmitry Kovalenko [Thu, 19 Nov 2015 08:09:46 +0000 (11:09 +0300)]
[REFACTOR] move scripts to /usr/bin
Add prefix "swap_" to all scripts
Move scripts to /usr/bin
Add full paths to modules in start script
Change-Id: I50c4f487c780dec6d2fc5c43dca851c7c042fe97
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Vitaliy Cherepanov [Mon, 16 Nov 2015 15:20:27 +0000 (18:20 +0300)]
[FIX] msg_start parsing error for already runnig app
error if PID=""
if PID is "" we should instrument all applications
Change-Id: I2e1ff602f1d31d5832d8859ca47a97027e4d0beb
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vyacheslav Cherkashin [Thu, 5 Nov 2015 17:27:45 +0000 (20:27 +0300)]
[IMPROVE] remove load/unload swap_task_data.ko module
Change-Id: I4db66a5c99c7d7d930bb491d4168ab39e8c876df
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vyacheslav Cherkashin [Thu, 29 Oct 2015 17:15:02 +0000 (20:15 +0300)]
[FEATURE] already running
add loading/unloading swap_taskctx.ko
Change-Id: I935c61b31f48127deccf64bb034629b8363293af
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Alexander Aksenov [Wed, 7 Oct 2015 09:54:04 +0000 (12:54 +0300)]
[IMPROVE] WSP data via debugfs
Previously webapp and ewebkit paths were hardcoded in modules,
now they are found out during manager compilation.
Change-Id: I3e43b4b3eeacde7e499a7b7796f42cf42dce17be
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Vitaliy Cherepanov [Wed, 7 Oct 2015 15:33:56 +0000 (18:33 +0300)]
[FIX] prevent issues
----------------------------------------------------------------------|
| CID | Type | File | Function |
|---------------------------------------------------------------------|
|451069 | DC.SECURE_CODING_STRTOK | wsi.c | wsi_set_smack_rules |
|451062 | DC.SECURE_CODING_SPRINTF | wsi.c | wsi_set_profile |
|451061 | DC.SECURE_CODING_SPRINTF | utils.c | exec_app_common |
|451060 | DC.SECURE_CODING_SPRINTF | wsi.c | init_wsi_conn |
|451050 | ALLOC_FREE_MISMATCH | buffer.c | insert_buf_modules |
|447744 | DC.SECURE_CODING_USLEEP | thread.c | replay_thread |
|---------------------------------------------------------------------|
Change-Id: Idb5ad86f483b27cca37566ac4250d9205412630f
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Alexander Aksenov [Fri, 2 Oct 2015 13:14:59 +0000 (16:14 +0300)]
[FIX] WSI workaround
For long start applications
Change-Id: I79ed550ad3b0204f88ad77b1663afed1575b79d9
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Vitaliy Cherepanov [Fri, 2 Oct 2015 12:54:11 +0000 (15:54 +0300)]
[FIX] wsi no probes comming
Change-Id: I5f901ed554f114739321734a60e9c6fc1461a0d6
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Thu, 1 Oct 2015 12:27:18 +0000 (15:27 +0300)]
[FIX] prevent issue
---------------------------------------------------------------------------------|
| CID | Type | File | Function |
|--------------------------------------------------------------------------------|
| 482185 | dead code | daemon/wsi.c | all |
|--------------------------------------------------------------------------------|
Change-Id: I2a7d81ad1b859eefa7e8abbcf047372ead858b69
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vyacheslav Cherkashin [Wed, 30 Sep 2015 16:51:47 +0000 (19:51 +0300)]
[IMPROVE] add application to ANR exclude list
Change-Id: I7228f50b4c24c04231aa7847f8ca88a31d69915e
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Alexander Aksenov [Wed, 30 Sep 2015 10:53:46 +0000 (13:53 +0300)]
[FIX] Disabling probes features
Nofeature probes were also deleted from probe lists sended to the modules.
Now it is fixed.
Change-Id: Ieef1a305b806bf89ed6b505f40d97f08fa7e7a2f
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Vitaliy Cherepanov [Tue, 29 Sep 2015 11:40:33 +0000 (14:40 +0300)]
[FIX] Leaky implementaion of parse_app_inst_list.
Change-Id: I52dd11da990895df1c6fa1c2ef89c2bc5cdc99e4
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Sat, 26 Sep 2015 15:23:39 +0000 (18:23 +0300)]
[FIX] da_manager fault on wsi stop if wsi start was not call
Change-Id: I0deae2ece2b8067158b14cc704e10b86660b5533
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Fri, 25 Sep 2015 07:06:06 +0000 (10:06 +0300)]
[FIX] wsi crash, deadlock
Change-Id: I18174cc7071b6d3283db33996dbc02cff87d6d36
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Fri, 25 Sep 2015 07:02:14 +0000 (10:02 +0300)]
[FIX] deadlock
deadlock on stop instrumentation (target threads)
Change-Id: I97b6a9ebe4fcb54fd67d4d0a34ab2b16426a7611
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Thu, 24 Sep 2015 15:04:03 +0000 (18:04 +0300)]
[FIX] applications termination after instrumentition
kill application if it was not connected by socket with da_manager
Change-Id: Id9ee92047c584c6af9b877cdf59f3b4743d7dd85
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vyacheslav Cherkashin [Thu, 27 Aug 2015 19:01:53 +0000 (22:01 +0300)]
[FIX] generate dlopen address
Change-Id: I925f29cdb31b7de7bfec84ba6c01a86119cc3a30
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Vitaliy Cherepanov [Tue, 22 Sep 2015 13:31:37 +0000 (16:31 +0300)]
[FIX] MSG_GET_REAL_PATH ack
Change-Id: I919bacfaf7d6193f2fe11cf077fd10c9bbdb8ffe
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Tue, 15 Sep 2015 09:56:58 +0000 (12:56 +0300)]
[FIX] ack for unknown message
Change-Id: I548c0decfd50c063bfeec7f8a294ae8177662a2f
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Vitaliy Cherepanov [Fri, 11 Sep 2015 10:01:14 +0000 (13:01 +0300)]
[PROTO] add MSG_GET_REAL_PATH message support
Change-Id: I46123a338ab9dad9f7026dc4b109be2cf15f7033
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>