Anastasia Lyupa [Fri, 6 Sep 2013 09:30:07 +0000 (13:30 +0400)]
Backport plain-C IO probes changes from (653526)
That this patch actually port logic of commit~653526 in sence
that for IO probes send messages before and after actual call
with fields filled as much as possible.
Change-Id: Ic3a556a99bcea1a30b30314cae25445d84bf1262
See-also:
65352634ef85b4cec1a86ad34157099adc7bef70
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
Dmitry Bogatov [Fri, 6 Sep 2013 09:30:33 +0000 (13:30 +0400)]
[STYLE] Indent backslashes in macros
Change-Id: I2cb741fe47ae717ab2de0e75a384d73ee8e3491a
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
Nikita Kalyazin [Tue, 17 Sep 2013 13:30:34 +0000 (17:30 +0400)]
[FIX] eglSwapBuffers probe fix
Probing this function caused black screen for OpenGL applications
before.
The matter of the problem:
- eglSwapBuffers is just a macro in inc/egl_macro.h
(framework/osp/uifw):
#define eglSwapBuffers _SglSwapBuffers
- _SglSwapBuffers is a wrapper that calls true eglSwapBuffers inside;
- we used to call eglSwapBuffers where _SglSwapBuffers must be called.
This caused an error (EGL_BAD_SURFACE).
In order to probe eglSwapBuffers function we need to undef the macro
first.
Moreover, eglSwapBuffers is not called at Emulator (GlesShader sample
application). So I added _SglSwapBuffers function itself as well.
Minor fix: for EGL functions eglGetError (insted of glGetError) should
be called.
Change-Id: I6a99c67a8f28fc2cca3ea0ea78de7afb252cb9c1
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Nikita Kalyazin [Wed, 18 Sep 2013 06:25:22 +0000 (10:25 +0400)]
[FIX] warning of implicit real_pthread_* declaration
Change-Id: Ie2bde59906950f503c34e506dda1146b12de01f8
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Vitaliy Cherepanov [Fri, 13 Sep 2013 12:30:43 +0000 (16:30 +0400)]
[FEATURE] add opengl probes.
(dynamic-analysis-probe) OpenGL probe:
27ba48118bdf41875b3b257d061c5d6b5be0a401
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Change-Id: Id5676710d2f2bd1881ccd47d49a591528cd0af0c
Nikita Kalyazin [Fri, 6 Sep 2013 10:17:47 +0000 (14:17 +0400)]
[FIX] merge from tizen_2.2
Original commit:
cfea84c2fd3e4f5559fc8ab92a785dbcdcab6f6f fix deadlock when
pthread_cancel is called by user
Change-Id: Ifa0ed7b5e01be03d122896a2052e1c8165921d7f
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Nikita Kalyazin [Mon, 2 Sep 2013 13:40:31 +0000 (17:40 +0400)]
[PROTO] merge from tizen_2.2
Original commit:
8f85895b69dcd002cd286ead59e623d61574f9e5 fix file probe bug
Change-Id: If57e037c753fe27fc8b98e3fae680c713dec5e98
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Nikita Kalyazin [Mon, 2 Sep 2013 09:13:25 +0000 (13:13 +0400)]
[PROTO] cherry pick from tizen_2.2
Original commit:
12afa1216d6bf505a6d88f6b8f0f2145fed7701f fix prevent violation
Change-Id: Ia86f422e5a2d56fbe7a27c63c8b91f9144523212
Nikita Kalyazin [Thu, 22 Aug 2013 09:19:31 +0000 (13:19 +0400)]
[FIX] bada_sync.c: PACK_THREAD -> PACK_SYNC
Anastasia Lyupa [Thu, 22 Aug 2013 08:10:42 +0000 (12:10 +0400)]
[PROTO] MSG_PROBE_THREAD: pack both p- and osp- thread id
Anastasia Lyupa [Wed, 21 Aug 2013 17:34:59 +0000 (21:34 +0400)]
[PROTO] MSG_PROBE_RESOURCE: remove FDType field
Nikita Kalyazin [Thu, 8 Aug 2013 14:35:54 +0000 (18:35 +0400)]
[FIX] wrong app start time
Now time is sent in usecs
Anastasia Lyupa [Tue, 30 Jul 2013 07:47:33 +0000 (11:47 +0400)]
[PROTO] probe_file changes
- change FD_API_ defines
- replace FD_API_READ and _WRITE by FD_API_READ_END and _WRITE_END
- add packing of FD_API_READ_START, FD_API_WRITE_START msg
Vitaliy Cherepanov [Thu, 25 Jul 2013 16:33:58 +0000 (20:33 +0400)]
Merge branch 'swap_draft' of 106.109.8.71:/srv/git/sdk/dynamic-analysis-probe into swap_draft
Vitaliy Cherepanov [Thu, 25 Jul 2013 16:32:26 +0000 (20:32 +0400)]
[FIX] total alloc memory
Nikita Kalyazin [Thu, 25 Jul 2013 16:00:00 +0000 (20:00 +0400)]
[FIX] garbage in high bytes of arguments
woojin [Fri, 12 Jul 2013 23:21:34 +0000 (08:21 +0900)]
[FIX] bada_file.cpp: add filesize packing in File::~File(void)
woojin [Fri, 12 Jul 2013 23:21:34 +0000 (08:21 +0900)]
[FIX] cherry-pick
03455c00538208e39ab328dbbc69480b6a18e983 + merge
bug fix for some probe, add filesize value for Tizen::Io::File APIs
Change-Id: Ia85c4c0eeb2d51694195d1756b0bce7461cd1bc9
Conflicts:
packaging/swap-probe.spec
probe_badaapi/bada_file.cpp
woojin [Mon, 8 Jul 2013 20:43:03 +0000 (05:43 +0900)]
[FIX] cherry-pick
6ff4756c4413698f3d67ae7ef5c650c1cff5a57f
patch for gcc 4.8 build
Change-Id: Ica59517e5128594ffd7d0266f84afaf78f1b7472
Conflicts:
probe_socket/libdasocket.c
greatim [Wed, 3 Jul 2013 06:25:26 +0000 (15:25 +0900)]
[FIX] cherry-pick
50d009c869959dcf75dc18728ef8b2c6136cbfaf
change screenshot file name for multi process application
[Issue]
Change-Id: I149a87e4cc5a267a2d9eded70c705a09a1db6d3b
Conflicts:
packaging/swap-probe.spec
greatim [Thu, 20 Jun 2013 16:36:35 +0000 (01:36 +0900)]
[FIX] cherry-pick
015e0b7ac382c13d4136dcb248dd7b7aabbf868c + merge
fix custom chart bug
Change-Id: Id662a17cd4f864189cd39e29a8b894689880d665
Conflicts:
custom_chart/da_chart.c
Anastasia Lyupa [Tue, 23 Jul 2013 08:31:04 +0000 (12:31 +0400)]
Anastasia Lyupa [Tue, 23 Jul 2013 08:20:07 +0000 (12:20 +0400)]
[FIX] in da_event.c fix PACK_UIEVENT (info1: 0->"")
Anastasia Lyupa [Tue, 23 Jul 2013 08:11:34 +0000 (12:11 +0400)]
[PROTO] version of 23.07. MSG_PROBE_COMMON: errno: uint32->uint64
greatim [Tue, 18 Jun 2013 08:32:09 +0000 (17:32 +0900)]
[FIX] cherry-pick
a1a779f6e7dda81b331db36bb07068dd73022041 (#8:6) + merge
change method of probe block count
[Issue]
Change-Id: I97fb9a6885460f3edb3e2fef855d8251bebd2d6c
Conflicts:
helper/dahelper.c
probe_memory/libdamemalloc.c
probe_userfunc/libdauserfunc.c
greatim [Fri, 14 Jun 2013 12:33:44 +0000 (21:33 +0900)]
[FIX] cherry-pick
d89d303d37d714ced2d1a9945ae2ea054c5824c0 (#8:3,4,5) + changes
Additional changes:
- replace da log printing by packing for new functions
- correct args in PACK_COMMON_BEGIN in probe_badaapi/osp_controls.cpp
- correct api_id_mapping in accordance with changes
[Issue]
Change-Id: I94a7e751421e1ff88bccbe2bab794c14274e2293
Conflicts:
helper/dacapture.c
probe_memory/libdamemalloc.c
Dmitry Bogatov [Fri, 19 Jul 2013 09:29:00 +0000 (13:29 +0400)]
[IMPROVE] Script to test preloading on *emulator*
Dmitry Bogatov [Fri, 19 Jul 2013 09:28:04 +0000 (13:28 +0400)]
[PROTO] Merge swap_draft <- tizen_2.2 as generic commit
Anastasia Lyupa [Wed, 17 Jul 2013 11:43:01 +0000 (15:43 +0400)]
correct vfscanf probe in da_io_stdc.c
Anastasia Lyupa [Wed, 17 Jul 2013 11:41:54 +0000 (15:41 +0400)]
MSG_PROBE_RESOURCE: change fd type from int32 to int64
Nikita Kalyazin [Mon, 15 Jul 2013 08:20:23 +0000 (12:20 +0400)]
[RPM] remove old manifest
Nikita Kalyazin [Mon, 15 Jul 2013 07:57:17 +0000 (11:57 +0400)]
[COPYRIGHT] updated authors
Nikita Kalyazin [Mon, 15 Jul 2013 07:56:52 +0000 (11:56 +0400)]
[FIX] remove mapping.txt
Nikita Kalyazin [Sat, 13 Jul 2013 10:15:14 +0000 (14:15 +0400)]
[IMPROVE] add generating scripts for api header and list
Nikita Kalyazin [Sat, 13 Jul 2013 10:12:27 +0000 (14:12 +0400)]
[FIX] add unique api id
- Added header file (with api id macros);
- Updated all probes to conform this change;
- Added api_names.txt file.
Nikita Kalyazin [Wed, 10 Jul 2013 05:27:54 +0000 (09:27 +0400)]
[RPM] rename dynamic-analysis-probe -> swap-probe
Changes:
- spec and manifest files renamed;
- spec: version 2.1.1 -> 3.0, description updated;
- manifest file moved to source root directory.
Anastasia Lyupa [Tue, 9 Jul 2013 08:01:12 +0000 (12:01 +0400)]
replace Copyright (c) 2000 - 2011 by Copyright (c) 2000 - 2013
Anastasia Lyupa [Tue, 9 Jul 2013 07:53:41 +0000 (11:53 +0400)]
change Copyright headers, change line endings to Unix format
Anastasia Lyupa [Mon, 8 Jul 2013 07:25:50 +0000 (11:25 +0400)]
correct PACK_COMMON_BEGIN args in libdamemalloc.c
Anastasia Lyupa [Mon, 8 Jul 2013 07:21:38 +0000 (11:21 +0400)]
Merge branch 'swap_draft' of 106.109.8.71:/srv/git/sdk/dynamic-analysis-probe into swap_draft
Anastasia Lyupa [Mon, 8 Jul 2013 07:19:50 +0000 (11:19 +0400)]
use patch from d.bogatov: rewrite mem managing with glibc hooks
Nikita Kalyazin [Sun, 7 Jul 2013 13:22:19 +0000 (17:22 +0400)]
[IMPROVE] send log messages to manager
- log messages are sent to manager insead of regular file;
- OPT_FUNC option removed;
- OPT_* reordered according the protocol.
Notice: Since this version da-probe will not work with Tizen SDK 2.1!
Anastasia Lyupa [Fri, 5 Jul 2013 07:47:21 +0000 (11:47 +0400)]
remove some printLogStr calls
Anastasia Lyupa [Thu, 4 Jul 2013 15:49:15 +0000 (19:49 +0400)]
move PREPARE_LOCAL_BUF into probeBlock brackets, move FLUSH_LOCAL_BUF out of if(bOption)
Anastasia Lyupa [Thu, 4 Jul 2013 15:38:20 +0000 (19:38 +0400)]
delete unused da log macros
Anastasia Lyupa [Thu, 4 Jul 2013 15:35:34 +0000 (19:35 +0400)]
remove da log printing from probe_memory
Anastasia Lyupa [Thu, 4 Jul 2013 15:23:28 +0000 (19:23 +0400)]
remove or comment da log printing from helper
Anastasia Lyupa [Thu, 4 Jul 2013 15:22:56 +0000 (19:22 +0400)]
remove da log printing from libdauserfunc.c
Anastasia Lyupa [Thu, 4 Jul 2013 14:41:40 +0000 (18:41 +0400)]
remove da log printing from bada_file.cpp
Anastasia Lyupa [Thu, 4 Jul 2013 14:26:55 +0000 (18:26 +0400)]
remove da log printing from bada_lifecycle.cpp
Anastasia Lyupa [Thu, 4 Jul 2013 14:18:40 +0000 (18:18 +0400)]
remove da log printing from bada_sync.cpp
Anastasia Lyupa [Thu, 4 Jul 2013 14:06:39 +0000 (18:06 +0400)]
remove da log printing from bada_thread.cpp
Anastasia Lyupa [Thu, 4 Jul 2013 11:28:47 +0000 (15:28 +0400)]
remove da log printing from osp_controls.cpp
Anastasia Lyupa [Thu, 4 Jul 2013 11:15:02 +0000 (15:15 +0400)]
remove da log printing from libdathread.c
Anastasia Lyupa [Thu, 4 Jul 2013 10:57:55 +0000 (14:57 +0400)]
remove da log printing from libdasync.c
Anastasia Lyupa [Thu, 4 Jul 2013 09:50:34 +0000 (13:50 +0400)]
remove da log printing from osp_scenemanager.cpp
Anastasia Lyupa [Thu, 4 Jul 2013 09:40:12 +0000 (13:40 +0400)]
remove da log printing from custom_chart
Anastasia Lyupa [Thu, 4 Jul 2013 09:34:11 +0000 (13:34 +0400)]
remove da log printing from probe_tizenapi
Anastasia Lyupa [Thu, 4 Jul 2013 09:18:40 +0000 (13:18 +0400)]
replace da log printing by bin writing in probe_socket
Anastasia Lyupa [Thu, 4 Jul 2013 08:53:11 +0000 (12:53 +0400)]
change format for size_t(d -> x) in da_io_posix.c
Anastasia Lyupa [Wed, 3 Jul 2013 16:02:13 +0000 (20:02 +0400)]
remove da log printing from probe_event
Anastasia Lyupa [Wed, 3 Jul 2013 15:43:16 +0000 (19:43 +0400)]
remove da log printing from probe_file
Anastasia Lyupa [Wed, 3 Jul 2013 15:29:53 +0000 (19:29 +0400)]
cut off log_t log from DECLARE_VARIABLE_ macros, remove DECLARE_COMMON_VARIABLE
Anastasia Lyupa [Wed, 3 Jul 2013 11:36:57 +0000 (15:36 +0400)]
add resource probes in da_io_posix.c, da_io_stdc.c; comment da log printing there
Anastasia Lyupa [Wed, 3 Jul 2013 11:01:48 +0000 (15:01 +0400)]
remove args from POST_PACK_PROBEBLOCK_BEGIN
Anastasia Lyupa [Wed, 3 Jul 2013 09:01:12 +0000 (13:01 +0400)]
move probe block into postBlock brackets
Anastasia Lyupa [Tue, 2 Jul 2013 09:22:47 +0000 (13:22 +0400)]
add scene probe
Anastasia Lyupa [Thu, 27 Jun 2013 09:07:29 +0000 (13:07 +0400)]
fix typing error
Anastasia Lyupa [Thu, 27 Jun 2013 09:02:18 +0000 (13:02 +0400)]
uncomment PACK_SCREENSHOT, PACK_SCENE, fix types in PACK_SCENE
Anastasia Lyupa [Thu, 27 Jun 2013 07:36:09 +0000 (11:36 +0400)]
remove BEFORE_PACK_ORIGINAL_THREAD and _SYNC because these macros are not required
Anastasia Lyupa [Wed, 26 Jun 2013 15:28:25 +0000 (19:28 +0400)]
add lifecycle probes in tizen_appfw.c
Anastasia Lyupa [Wed, 26 Jun 2013 14:53:45 +0000 (18:53 +0400)]
set unix line endings instead of windows ones
Anastasia Lyupa [Wed, 26 Jun 2013 14:52:22 +0000 (18:52 +0400)]
add custom probes
Anastasia Lyupa [Wed, 26 Jun 2013 14:23:23 +0000 (18:23 +0400)]
add resource probes in bada_file.cpp
Anastasia Lyupa [Wed, 26 Jun 2013 14:22:44 +0000 (18:22 +0400)]
correct Thread::GetName probe in bada_thread.cpp
Anastasia Lyupa [Wed, 26 Jun 2013 11:09:58 +0000 (15:09 +0400)]
- size_t format: int32 -> int64
- MSG_PROBE_MEMORY: size: int32 -> int64
- correct PACK_RESOURCE and PACK_CUSTOM
Anastasia Lyupa [Tue, 25 Jun 2013 11:34:35 +0000 (15:34 +0400)]
add lifecycle probes in bada_lifecycle.cpp
Anastasia Lyupa [Tue, 25 Jun 2013 11:24:01 +0000 (15:24 +0400)]
correct probe in Monitor::Enter in bada_sync.cpp
Anastasia Lyupa [Tue, 25 Jun 2013 11:03:03 +0000 (15:03 +0400)]
correct MSG_ defines
Anastasia Lyupa [Tue, 25 Jun 2013 10:52:00 +0000 (14:52 +0400)]
add sync probes in bada_sync.cpp
Anastasia Lyupa [Tue, 25 Jun 2013 09:13:03 +0000 (13:13 +0400)]
add osp thread probes in bada_thread.cpp
Anastasia Lyupa [Tue, 25 Jun 2013 09:09:04 +0000 (13:09 +0400)]
add possibility to pack 0 args in pack_args
Anastasia Lyupa [Mon, 24 Jun 2013 14:58:43 +0000 (18:58 +0400)]
add pthread probes
Anastasia Lyupa [Mon, 24 Jun 2013 09:03:21 +0000 (13:03 +0400)]
add the rest sync probes in libdasync.c
Anastasia Lyupa [Mon, 24 Jun 2013 08:36:59 +0000 (12:36 +0400)]
add sync probes in libdasync.c, not all ones(only using macros from da_sync.h)
Anastasia Lyupa [Mon, 24 Jun 2013 07:56:51 +0000 (11:56 +0400)]
add BEFORE_PACK_ORIGINAL_SYNC and AFTER_PACK_ORIGINAL_SYNC macros
Anastasia Lyupa [Mon, 24 Jun 2013 07:48:30 +0000 (11:48 +0400)]
add post block macros without any APPEND_LOG calls
Anastasia Lyupa [Mon, 24 Jun 2013 06:50:13 +0000 (10:50 +0400)]
format PACK_MEMORY: p -> BUF_PTR
Anastasia Lyupa [Mon, 24 Jun 2013 06:48:30 +0000 (10:48 +0400)]
fix sync_val type in PACK_SYNC (int32 -> ptr)
Anastasia Lyupa [Mon, 24 Jun 2013 05:44:31 +0000 (09:44 +0400)]
add memory probes in libdamemmanage.c
Anastasia Lyupa [Fri, 21 Jun 2013 14:40:37 +0000 (18:40 +0400)]
add memory probes in libdamemalloc.c
Anastasia Lyupa [Fri, 21 Jun 2013 14:24:34 +0000 (18:24 +0400)]
add memory probes in libdanew.cpp
Anastasia Lyupa [Fri, 21 Jun 2013 12:11:19 +0000 (16:11 +0400)]
add _EVENT_ORIENTATION in da_event.c
Anastasia Lyupa [Fri, 21 Jun 2013 11:29:55 +0000 (15:29 +0400)]
add _EVENT_GESTURE probes
Anastasia Lyupa [Fri, 21 Jun 2013 10:53:49 +0000 (14:53 +0400)]
mark pack_ functions as static inline instead of static
Anastasia Lyupa [Thu, 20 Jun 2013 13:36:16 +0000 (17:36 +0400)]
remove pc, add define to rewrite return, add several UICONTROL probes
Anastasia Lyupa [Wed, 19 Jun 2013 08:34:56 +0000 (12:34 +0400)]
write new handlers for _EVENT_TOUCH, _EVENT_KEY and LC_UICREATE,SetName
Nikita Kalyazin [Sun, 16 Jun 2013 10:17:54 +0000 (14:17 +0400)]
Add internal call as blockresult (where possible)
Nikita Kalyazin [Sun, 16 Jun 2013 09:44:05 +0000 (13:44 +0400)]
Fix errno obtaining in mutex_lock
Nikita Kalyazin [Sun, 16 Jun 2013 09:43:48 +0000 (13:43 +0400)]
Fix 64-bit arguments