platform/core/system/swap-probe.git
10 years ago[FIX] pack return value error 04/21704/1
Vitaliy Cherepanov [Mon, 26 May 2014 14:33:37 +0000 (18:33 +0400)]
[FIX] pack return value error

Change-Id: I4215f12ac196f4a07018d43170b9a43a9f4f64a9
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[STYLE] add comments 02/21702/1
Vitaliy Cherepanov [Mon, 26 May 2014 14:28:09 +0000 (18:28 +0400)]
[STYLE] add comments

add comments to defines.

Change-Id: If86287641a7f62d9d29f0a758f47371c5c3395c2
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[IMPROVE] Build: add provides swap-probe 80/20280/2
Alexander Aksenov [Wed, 30 Apr 2014 12:00:49 +0000 (16:00 +0400)]
[IMPROVE] Build: add provides swap-probe

Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
Change-Id: I6aceb6b717db8a1c5496e1224e87f83dd2ac0b19

10 years ago[FIX] build with -Wunused-but-set-variable 80/21480/1
Vitaliy Cherepanov [Wed, 21 May 2014 10:01:18 +0000 (14:01 +0400)]
[FIX] build with -Wunused-but-set-variable

Change-Id: I9c68eda2a62391989c7d4ba31497720785381c0c
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[FIX] application termination by manager request for common app type 08/20908/1
Vitaliy Cherepanov [Tue, 13 May 2014 17:55:24 +0000 (21:55 +0400)]
[FIX] application termination by manager request for common app type

add app_efl_main function call flag.
if app_efl_main was not called then terminate app by exit(0) call

Change-Id: Ia2397144b334005fcce12fce707f39583be22c86
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[FIX] gbs build error 74/20274/1
Vitaliy Cherepanov [Wed, 30 Apr 2014 09:47:52 +0000 (13:47 +0400)]
[FIX] gbs build error

add rm -f to rm headers before make

Change-Id: I6065856eed11fba3fdc17f5adbfd80c2b4f04700
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[PROTO] string size limitation 56/20256/1
Vitaliy Cherepanov [Tue, 29 Apr 2014 14:52:10 +0000 (18:52 +0400)]
[PROTO] string size limitation

column          limit         description
File path       4K or ByFile  either in function argument or as protocol value
Shader sources  4K or ByFile  glGetShaderSource and glGetShaderiv probes
Http contents   1024 bytes
string type
arguments       256 bytes     there is not any case of string type yet

Change-Id: I4c5a940ae7f7d4831d41d226e701fd548cfa1777
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[PROTO] add tread class name to thread probes 62/18662/2
Vitaliy Cherepanov [Thu, 27 Mar 2014 16:07:49 +0000 (20:07 +0400)]
[PROTO] add tread class name to thread probes

Change-Id: I0f079ddc2693b200c09bd074e2d337285f33b820
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[FIX] gbs build error 96/18296/2
Vitaliy Cherepanov [Thu, 20 Mar 2014 07:57:52 +0000 (11:57 +0400)]
[FIX] gbs build error

fix problem with unterminated #if

Change-Id: Ia2410b3f2659e1fd45a8545b12e4d75b4c435a47
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[PROTO] implement pack array types for probe arguments 26/17926/4
Vitaliy Cherepanov [Wed, 12 Mar 2014 13:03:43 +0000 (17:03 +0400)]
[PROTO] implement pack array types for probe arguments

implemented 'F'(float array) 'D'(uint32_t array) 'W'(double array) types
   array format. example for float array:
        type     info/sample            size
        ---------------------------------------------------
        char     'F'                    (1byte),
        uint64_t original array pointer (8bytes),
        uint32_t elements count         (4 bytes),
        float    el #1                  (sizeof(float) bytes)
        ...
        float    el #n                  (sizeof(float) bytes)

Change-Id: I33f0bd6026b56d57e1554686ea38317cc705253f
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[REFACTOR] gl probes refactor 48/17148/2
Vitaliy Cherepanov [Tue, 4 Mar 2014 09:41:00 +0000 (13:41 +0400)]
[REFACTOR] gl probes refactor

init lib and dlsym search moved to separate function
to minimize lib size

Change-Id: I895ebceab2ad32ef1155154c1e67a64b6192f58a
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[PROTO] add current context to all openGL probes 45/17145/3
Vitaliy Cherepanov [Tue, 4 Mar 2014 08:40:48 +0000 (12:40 +0400)]
[PROTO] add current context to all openGL probes

Change-Id: I1ddc0f1f5ab85932b01fc45a832705432a4dc9a8
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[FEATURE] add egl probes. 39/16939/6
Vitaliy Cherepanov [Thu, 27 Feb 2014 08:43:11 +0000 (12:43 +0400)]
[FEATURE] add egl probes.

Change-Id: Ia73055097f0ed201f7e67153fa2e8c5077546db4
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[FIX] correct processing multi-process applications 82/15582/11
Vitaliy Cherepanov [Thu, 23 Jan 2014 16:14:24 +0000 (20:14 +0400)]
[FIX] correct processing multi-process applications

On fork call reconnect to swap daemon as separate process.
On call exec disconnect from swap daemon.
If exec returns error connect to swap daemon again.

Change-Id: I0f99b96507e2f1d52460fba5e4ed0eb997e39981
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[PROTO] pack long shaders to file 48/14248/4
Vitaliy Cherepanov [Wed, 22 Jan 2014 14:43:31 +0000 (18:43 +0400)]
[PROTO] pack long shaders to file

Change-Id: Ia0528a5ab58a53f2cab02d50249da0d1170c8cee
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[FIX] gl probe pack event on dlopen if feature off 04/14904/1
Vitaliy Cherepanov [Mon, 13 Jan 2014 13:06:38 +0000 (17:06 +0400)]
[FIX] gl probe pack event on dlopen if feature off

Change-Id: I5b458f41fe380cd701aa5b64aedc03b0856d7b59
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[FIX] glGetError probe return value 73/14673/7
Vitaliy Cherepanov [Thu, 9 Jan 2014 13:37:44 +0000 (17:37 +0400)]
[FIX] glGetError probe return value

now glGetError function returns right value

Change-Id: I3f43b24c83388015b6567c446c59965006afe87a
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[FIX] connect probe info 44/14144/4
Vitaliy Cherepanov [Tue, 24 Dec 2013 11:47:16 +0000 (15:47 +0400)]
[FIX] connect probe info

add unix socket handle (AF_UNIX) to get socket information

Change-Id: Iaffb29b793e558d26936f97ef291b4207d21540e
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[FIX] internet application crash 90/13990/5
Vitaliy Cherepanov [Thu, 19 Dec 2013 16:00:00 +0000 (20:00 +0400)]
[FIX] internet application crash

The reason is call ecore_x_init before
register_orientation_event_listener function.

It was fixed by adding ecore_x_init and ecore_x_shutdown handlers.
So call register_orientation_event_listener on ecore_x_init first call.

Change-Id: I3757147ec0cbc20dbc52d33426c9dca88e170899
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[COPYRIGHT] update license
Anastasia Lyupa [Thu, 12 Dec 2013 08:53:14 +0000 (12:53 +0400)]
[COPYRIGHT] update license

original da port commits:
69ae52143016f258402e8f6395d93143c4fa9342
ce177810028c2635c04362dfb550b5e5cc9d8030

Change-Id: I0a4e5fcfd270d851be401a48483b20dc61871a14
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
10 years ago[FIX] fix http client fault
Vitaliy Cherepanov [Fri, 13 Dec 2013 11:25:55 +0000 (15:25 +0400)]
[FIX] fix http client fault

Change-Id: I5f89aa0511b0426051419231f867a0ead4c7cc48
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[FIX] build for armv7l
Vitaliy Cherepanov [Tue, 10 Dec 2013 10:34:18 +0000 (14:34 +0400)]
[FIX] build for armv7l

Change-Id: Ie36e441782dcaea3f97151c48d3038ad953fd232
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[IMPROVE] add debug to defines
Vitaliy Cherepanov [Thu, 5 Dec 2013 14:40:52 +0000 (18:40 +0400)]
[IMPROVE] add debug to defines

when use make -f makefile_preproc
PACK_COMMON_BEGIN define becomes
do {
    ...
} while(0)

but now it will be like
do {    /* PACK_COMMON_BEGIN */
    ...
} while(0)

Change-Id: Ib9c9bc13729ac5062031577cd982b37e9ed6a639
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[FIX] make headers
Vitaliy Cherepanov [Mon, 9 Dec 2013 14:16:52 +0000 (18:16 +0400)]
[FIX] make headers

Change-Id: I5fa63f9c18544e4d5e4f2a9ef0e78d111a376f45
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[IMPROVE] open GL native probes added
Vitaliy Cherepanov [Fri, 6 Dec 2013 11:49:20 +0000 (15:49 +0400)]
[IMPROVE] open GL native probes added

Change-Id: I5f5febd1c2533532f31f0d7dce2bd8ffe518afab
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[FIX] fix tizen open GL probes
Vitaliy Cherepanov [Fri, 6 Dec 2013 09:38:21 +0000 (13:38 +0400)]
[FIX] fix tizen open GL probes

Change-Id: I5b075a1d1352bd458537332ed17bbaeffb727a36

10 years ago[FIX] pack_string: correct null string handling
Nikita Kalyazin [Mon, 2 Dec 2013 05:00:15 +0000 (09:00 +0400)]
[FIX] pack_string: correct null string handling

Change-Id: Ic3d7ea27c78b820625958148e473da810efa2d2e
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
10 years ago[FIX] scenemanager: too small buffer
Nikita Kalyazin [Sun, 1 Dec 2013 11:55:09 +0000 (15:55 +0400)]
[FIX] scenemanager: too small buffer

Change-Id: I27df8e05ec49cb235468fe31b8a7b59aed6dde0b
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
10 years ago[FIX] missing log from destructor of tizen class
Anastasia Lyupa [Mon, 25 Nov 2013 08:21:39 +0000 (12:21 +0400)]
[FIX] missing log from destructor of tizen class

Port original DA commit:
d4db830c925b52d5df8f18baa1beadb77e7e159f

Change-Id: I5c7bf4057e4b6b44a43b420a6ffacb266059018c
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
10 years ago[REFACTOR] direct call from app determination
Nikita Kalyazin [Thu, 28 Nov 2013 09:26:08 +0000 (13:26 +0400)]
[REFACTOR] direct call from app determination

Change-Id: I2921bd85c47f663af10e10876e5bf77c4fa0699d
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
10 years ago[PROTO] filtering logic
Nikita Kalyazin [Wed, 27 Nov 2013 14:12:05 +0000 (18:12 +0400)]
[PROTO] filtering logic

Involves:
 - regular option flags;
 - non-filtering option flags;
 - bFiltering.

Change-Id: Ice513a9ccffb492a2b8e584a705fbac1d058f256
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
10 years ago[IMPROVE] tizen_controls.cpp (OPT_UI)
Anastasia Lyupa [Tue, 19 Nov 2013 13:46:19 +0000 (17:46 +0400)]
[IMPROVE] tizen_controls.cpp (OPT_UI)

add PRE_PROBEBLOCK, POST_PROBEBLOCK checks
fix return type in Container::RemoveControl

check whether AddControl is called inside wrapper
AddControl or not, send only one log

original da port commit: 2be5e9fa3e3def3c72ad997bfc89f03ca22ce07b

Change-Id: Ia30d5a1b679b3d7f8c25b5e1e183d331728cb3c9
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
10 years ago[IMPROVE] add MSG_ERR support
Vitaliy Cherepanov [Mon, 25 Nov 2013 09:33:52 +0000 (13:33 +0400)]
[IMPROVE] add MSG_ERR support

Change-Id: I9c5c4d8bf24949c8c86b9693d11c3c591c66cb5d
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[FIX] app segfault if OPT_NETWORK_ALWAYS enabled
Vitaliy Cherepanov [Fri, 22 Nov 2013 13:20:12 +0000 (17:20 +0400)]
[FIX] app segfault if OPT_NETWORK_ALWAYS enabled

increase local buffer size

Change-Id: I0ee23cbcf72a37b1cb9cb0f0385fef47efb99a9f
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[PROTO] add new features for no filtering, enable 64bit features
Anastasia Lyupa [Mon, 18 Nov 2013 15:51:26 +0000 (19:51 +0400)]
[PROTO] add new features for no filtering, enable 64bit features

Change-Id: I7b96750c60bf08b69abeeabe8001823c4cc42445
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
10 years ago[FIX] Fix buffer overflow crash
Dmitry Bogatov [Wed, 20 Nov 2013 11:29:07 +0000 (15:29 +0400)]
[FIX] Fix buffer overflow crash

This is temporary solution: it still will crash on
filenames, longer than PATH_MAX.

Change-Id: Ifb818eab7c34bd9e1e93bbcb4b558b5b7026b519
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
10 years ago[FIX] workaround for va_arg on arm
Nikita Kalyazin [Fri, 15 Nov 2013 08:13:37 +0000 (12:13 +0400)]
[FIX] workaround for va_arg on arm

Change-Id: I91c131d78fefbc5d1bbdb8dc4201c13eb3b9b387
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
10 years ago[PROTO] add return type for socket probes
Vitaliy Cherepanov [Tue, 12 Nov 2013 08:32:21 +0000 (12:32 +0400)]
[PROTO] add return type for socket probes

Change-Id: Ibb64089b8a1fee90ea10a6bd2aa8d44edcd69ea9
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[PROTO] actualize return types for tizenapi
Nikita Kalyazin [Wed, 13 Nov 2013 09:09:45 +0000 (13:09 +0400)]
[PROTO] actualize return types for tizenapi

Files concerned:
 - probe_tizenapi/tizen_controls.cpp
 - probe_tizenapi/tizen_file.cpp
 - probe_tizenapi/tizen_sync.cpp
 - probe_tizenapi/tizen_thread.cpp

Change-Id: I27e44a6109450847c07e750580fd882898e6fca5
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
10 years ago[FIX] Build for ARM target
Dmitry Bogatov [Wed, 13 Nov 2013 08:27:35 +0000 (12:27 +0400)]
[FIX] Build for ARM target

Change-Id: I4667238848b634ef2fa322dae8318bfb7e3b47e2
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
10 years ago[FIX] appState argument type ("p" -> "x")
Nikita Kalyazin [Tue, 12 Nov 2013 07:58:47 +0000 (11:58 +0400)]
[FIX] appState argument type ("p" -> "x")

AppState appState is an enum actually.

Change-Id: I3ddf27e15d6fb8cd05fa48b3ea0d7c352b374e3b
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
10 years ago[PROTO] actualize return type for tizen_lifecycle
Nikita Kalyazin [Tue, 12 Nov 2013 07:55:53 +0000 (11:55 +0400)]
[PROTO] actualize return type for tizen_lifecycle

Change-Id: I6aacd9d917fab8a4b8b4034fac0e607a3dc45600
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
10 years ago[PROTO] MSG_PROBE: replace return by return type, return value pair
Anastasia Lyupa [Thu, 31 Oct 2013 12:00:58 +0000 (16:00 +0400)]
[PROTO] MSG_PROBE: replace return by return type, return value pair

It's a draft.
Now new packing function calls are commented.

TODO: add correct return type packing to
PACK_COMMON_END and PACK_RETURN_END calls
in probe_socket/ and probe_tizenapi/

Change-Id: I1238b2a22530620f53e16a18cebd379639f58463
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
10 years ago[FIX] argument types conformance
Nikita Kalyazin [Sun, 10 Nov 2013 09:50:23 +0000 (13:50 +0400)]
[FIX] argument types conformance

"x", "p" arguments are wrapped with type casting.
Otherwise they are saved as 32-bit ones and poison next arguments.

Change-Id: I3ed635a0b7f1a7cc5c3fc09154ca138466300fea
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
10 years ago[FIX] libc memory alloc probes collection
Dmitry Bogatov [Thu, 7 Nov 2013 11:24:56 +0000 (15:24 +0400)]
[FIX] libc memory alloc probes collection

Move from hooks to overloading, since hooks are deprecated.

Change-Id: I0632ab0580d4f1f1304eee829ace302b0a22233c
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
10 years ago[FIX] Absolute filenames
Dmitry Bogatov [Fri, 8 Nov 2013 09:04:06 +0000 (13:04 +0400)]
[FIX] Absolute filenames

Change-Id: Ib3fb05ea833e02fbd3a49f7c89f9b0b88b1e3d72
Fix: bc19c3728beae88801914b7ba975c53b31fce46e
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
10 years ago[REFACTOR] Redesign Makefile
Dmitry Bogatov [Thu, 7 Nov 2013 06:29:27 +0000 (10:29 +0400)]
[REFACTOR] Redesign Makefile

Reasons:
  + Clear rules due use of predefined capabilities of GNU Make
  + Separation of compilation and linking
    * Avoid work duplication while compiling `capi` and `tizen`
    * Potencial for paralleling compilation
    * Potencial for per-file flags and defines

Change-Id: I3c4a606734a1cb2851fb4ece465317fac7f837f9
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
10 years ago[PROTO] add message size to msg_probe_network
Vitaliy Cherepanov [Thu, 7 Nov 2013 13:41:13 +0000 (17:41 +0400)]
[PROTO] add message size to msg_probe_network

Change-Id: I928e266abe3c8d21826072d44e304c9db93ef13f
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[FIX] gProbeDepth modification when child thread running
Alexander Aksenov [Thu, 7 Nov 2013 13:14:04 +0000 (17:14 +0400)]
[FIX] gProbeDepth modification when child thread running

Now gProbeDepth variable is changed only if thread API tracing is
activated

Change-Id: Id495d5bfcfd92f2f12acf563162ae53850e3696a
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
10 years ago[REFACTOR] Refactor creating recv thread
Dmitry Bogatov [Wed, 6 Nov 2013 07:55:31 +0000 (11:55 +0400)]
[REFACTOR] Refactor creating recv thread

Change-Id: Ic68cbba577ccf7dd0884329a1a1152e853fd6b9a
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
10 years ago[REFACTOR] Refactor getting app start time
Dmitry Bogatov [Wed, 6 Nov 2013 07:49:57 +0000 (11:49 +0400)]
[REFACTOR] Refactor getting app start time

Change-Id: I2e3099a700d5281e1517b28f0923cd4c533f5864
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
10 years ago[REFACTOR] Refactor timerfd initialization
Dmitry Bogatov [Wed, 6 Nov 2013 07:33:51 +0000 (11:33 +0400)]
[REFACTOR] Refactor timerfd initialization

Change-Id: If9dc4f94edce99ddac6b812da68c60926b7c2cd7
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
10 years ago[PROTO] add MSG_GET_SCREENSHOT support
Vitaliy Cherepanov [Wed, 6 Nov 2013 08:17:15 +0000 (12:17 +0400)]
[PROTO] add MSG_GET_SCREENSHOT support

Change-Id: I3fe6ac0a3a9a4e587d49d7f98dd5bcad752987c2
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[FIX] Remove postBlockBegin() from pthread_self
Alexander Aksenov [Wed, 6 Nov 2013 12:29:53 +0000 (16:29 +0400)]
[FIX] Remove postBlockBegin() from pthread_self

Cause it is already included in AFTER_PACK_ORIGINAL_THREAD define

Change-Id: Ia1f9bcf718a48aa3bc2a3fedbb16f8822420c2aa
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
10 years ago[PROTO] File probes sends absolute filename
Dmitry Bogatov [Wed, 23 Oct 2013 07:27:33 +0000 (11:27 +0400)]
[PROTO] File probes sends absolute filename

Change-Id: I810cccdcd17718256054c4d4e99ced2aad4f4636
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
10 years ago[FIX] read and write for non regular/socket fd
Nikita Kalyazin [Fri, 1 Nov 2013 07:36:49 +0000 (11:36 +0400)]
[FIX] read and write for non regular/socket fd

This concerns the situation of invalid fd.  fstat also returns false
(regular/socket fd) in such cases.

Change-Id: I3af55ad524ce2e0d19b7e298a224e736af3a30bc
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
10 years ago[IMPROVE] add cache for pid
Nikita Kalyazin [Thu, 31 Oct 2013 10:07:26 +0000 (14:07 +0400)]
[IMPROVE] add cache for pid

As it's done for tid

Change-Id: Ieecf7ce5cc7f82bd1a9e1ad3bc078278152ab573
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
10 years ago[FIX] memory leaks (new [])
Nikita Kalyazin [Thu, 31 Oct 2013 11:16:26 +0000 (15:16 +0400)]
[FIX] memory leaks (new [])

Change-Id: I35aab19289d4e40e74a2c5374f2b6d90c0b779e9
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
10 years ago[REFACTOR] More modular Makefile
Dmitry Bogatov [Wed, 30 Oct 2013 08:49:31 +0000 (12:49 +0400)]
[REFACTOR] More modular Makefile

Reason: simplify control of included probes
by scripting tools (e.g just removing line with sed(1))

Change-Id: I3fdedc4e95a3b9681ad572b19db9f79e867dc6e7
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
10 years ago[FIX] Fix arm build
Dmitry Bogatov [Wed, 30 Oct 2013 08:55:53 +0000 (12:55 +0400)]
[FIX] Fix arm build

Change-Id: I7a6a7c80d980686496ee374e8db6afd14b75ae61

10 years ago[FIX] Internet app closing during file inst
Anastasia Lyupa [Tue, 29 Oct 2013 09:46:32 +0000 (13:46 +0400)]
[FIX] Internet app closing during file inst

It is a temporary solution

Change-Id: I22cf5fcb056251635c553ee84a8bb7eeb358369f
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
10 years ago[STYLE] Fix compiler warnings
Dmitry Bogatov [Mon, 28 Oct 2013 09:47:50 +0000 (13:47 +0400)]
[STYLE] Fix compiler warnings

Patch is checked with checkpatch.pl and edited accordingly.
Point of note: there is no reason for pthread_t be integral type.

Change-Id: I32e63ce8a74ee94ac4d62629bba339edb4a8d804
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
10 years ago[FIX] Stop takes long time
Vitaliy Cherepanov [Mon, 21 Oct 2013 10:10:24 +0000 (14:10 +0400)]
[FIX] Stop takes long time

merge dynamic-analysis-probe
eaaa5255eb87e8a887fdb170a263f5066d1f5689
70343d43a50d1f49fb60607c6167a2f706ccb2c8

Change-Id: I70471af6f4a4c8862087cf4787334f6801b2887f
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[PROTO] message id update (probe starting from 0x0101)
Nikita Kalyazin [Fri, 11 Oct 2013 10:19:15 +0000 (14:19 +0400)]
[PROTO] message id update (probe starting from 0x0101)

Change-Id: I8878d5cc474ccafebc388989d77109859b201820
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
10 years ago[STYLE] Remove all trailing whitespaces
Dmitry Bogatov [Mon, 7 Oct 2013 08:30:53 +0000 (12:30 +0400)]
[STYLE] Remove all trailing whitespaces

Change-Id: Ie529f50f01ecb915ef0eeda27d6d8736ce588598

10 years ago[RPM] add API ID map to probe RPM
Nikita Kalyazin [Fri, 4 Oct 2013 05:06:02 +0000 (09:06 +0400)]
[RPM] add API ID map to probe RPM

It is installed at /usr/lib/da_api_map.

Change-Id: Ie0941e8f475558a2ab98a2e14ed6c216e03bc95d
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
10 years ago[FEATURE] add tizen http probes
Vitaliy Cherepanov [Thu, 26 Sep 2013 12:11:14 +0000 (16:11 +0400)]
[FEATURE] add tizen http probes

- merge dynamic-analysis-probe c336179244e6a0fbd70408587a7c2d9443b5170f
- remove unused variable inp warning
- update copyright tizen_socket

Change-Id: I18e88ba65329a56e4be5731473516edd25f0371e
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[FEATURE] add tizen network socket probes
Vitaliy Cherepanov [Wed, 25 Sep 2013 12:12:48 +0000 (16:12 +0400)]
[FEATURE] add tizen network socket probes

- merge dynamic-analysis-probe (c336179244e6a0fbd70408587a7c2d9443b5170f)
- some changes in api_names.txt format
  you can add line like <name1>###<name2>
  so <name1> will be used for defines generation (include/api_id_mapping.h)
  and <name2> will be used for decode lists generation:
  (include/api_id_list.h, include/id_list)
  use this feature to decode ugly names
  for example <_ZN5Tizen3Net7Sockets6Socket5CloseEv###Socket::Close> line
  will be tranformed to
  include/id_list: <525 Socket::Close>
  include/api_id_list.h: <"Socket::Close",>
  include/api_id_mapping.h: <#define API_ID__ZN5Tizen3Net7Sockets6Socket5CloseEv 525>

Change-Id: I372318367f0cbcf38e603bbeb7ca0ba38d433609
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[PROTO] GL: add library init event packing
Anastasia Lyupa [Wed, 25 Sep 2013 11:48:14 +0000 (15:48 +0400)]
[PROTO] GL: add library init event packing

da-probe: commit 27ba48118bdf41875b3b257d061c5d6b5be0a401

Change-Id: I753b53c4b0887943945173ed19b001df9dd378e4
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
10 years ago[FIX] additional Makefile fix for renaming : tizen -> capi, osp -> tizen
Vitaliy Cherepanov [Mon, 23 Sep 2013 09:48:08 +0000 (13:48 +0400)]
[FIX] additional Makefile fix for renaming : tizen -> capi, osp -> tizen

additional fix for commit 8f91637f134d08d0ceda7c58ed2287b418d58a71
- da_probe_osp.so -> da_probe_capi.so
- tizen flags -DOSPAPP -> -DTIZENAPP

Change-Id: Ia01c234ea47f8a4b1a7ca0e044fd34c38f6d603b
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[REFACTOR] renaming : tizen -> capi, osp -> tizen
Vitaliy Cherepanov [Fri, 20 Sep 2013 15:17:13 +0000 (19:17 +0400)]
[REFACTOR] renaming : tizen -> capi, osp -> tizen

merge dynamic-analysis-probe
(commit 64df7f4b5e5b1ff8c810c765e647161ef6f46924)
- change terms appropriately : tizen -> capi, osp -> tizen
- change directory name, file name, variable/flag name inside source
code

Change-Id: I18c738ec741151e4cb80dfe303b2e0f2ae7522be
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[PROTO] Send probes only for regular files or descriptors
Dmitry Bogatov [Fri, 20 Sep 2013 11:57:14 +0000 (15:57 +0400)]
[PROTO] Send probes only for regular files or descriptors

Affected functions:
  creat
  dup
  dup2
  fchmod
  fchown
  fcntl
  fdatasync
  fstat
  fsync
  ftruncate
  futimens
  lockf
  lseek
  open
  openat

Change-Id: I846aecb520169a9a5d4e3738fb1b3199311b1648
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
10 years ago[FIX] Correctly decrement counter in case of irregular descriptor
Dmitry Bogatov [Fri, 20 Sep 2013 12:30:52 +0000 (16:30 +0400)]
[FIX] Correctly decrement counter in case of irregular descriptor

Change-Id: I6d0e5a7ad2c39cfa255cdca721265dec53855355
See-also: 272fced7a209be0528725870a135393d9fc43e58
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
10 years ago[FEATURE] add network probes
Vitaliy Cherepanov [Fri, 20 Sep 2013 09:43:05 +0000 (13:43 +0400)]
[FEATURE] add network probes

Changes to merge (dynamic-analysis-probe. develop branch):
Network probe: c336179244e6a0fbd70408587a7c2d9443b5170f
probe: 9f94a9db5c59241a4cf8fd6f8d2941a0ad914912

Change-Id: I60df03dabc9047b9b0025de0c2c4d967ae41120b
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 years ago[PROTO] Send probes from {r,v,}{read,write} only for socket and reg files
Dmitry Bogatov [Fri, 20 Sep 2013 09:53:27 +0000 (13:53 +0400)]
[PROTO] Send probes from {r,v,}{read,write} only for socket and reg files

See-also: 02637c31710324818e36a0455c6f79c0def786ea
Change-Id: I66760615a24c02e2ae7054dcc745db0d3ab7341d
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
10 years ago[IMPROVE] write START/END probe macro for files like in da-probe
Anastasia Lyupa [Thu, 19 Sep 2013 12:40:45 +0000 (16:40 +0400)]
[IMPROVE] write START/END probe macro for files like in da-probe

improve 82a7637e17582f058abff4027cbd429d9c54b8ef
da-probe commit 65352634ef85b4cec1a86ad34157099adc7bef70

Change-Id: Ic64abcb391ad932134377a3f8abdcb3b58f547bf
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
10 years ago[PROTO] opengl probes: elapsed time in nsec (8 bytes)
Nikita Kalyazin [Thu, 19 Sep 2013 15:50:08 +0000 (19:50 +0400)]
[PROTO] opengl probes: elapsed time in nsec (8 bytes)

Change-Id: Iae78d19f6996f8f7b6ef250d75a951ad82d2e931
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
10 years agoMerge "[FIX] eglSwapBuffers probe fix"
Nikita Kalyazin [Thu, 19 Sep 2013 14:53:57 +0000 (14:53 +0000)]
Merge "[FIX] eglSwapBuffers probe fix"

10 years agoMerge "[FIX] warning of implicit real_pthread_* declaration"
Nikita Kalyazin [Thu, 19 Sep 2013 08:06:20 +0000 (08:06 +0000)]
Merge "[FIX] warning of implicit real_pthread_* declaration"

10 years ago[PROTO] bada_file.cpp:
Anastasia Lyupa [Wed, 18 Sep 2013 11:26:54 +0000 (15:26 +0400)]
[PROTO] bada_file.cpp:

 - add FD_API_READ_START, FD_API_WRITE_START probes
 - remove ret == E_SUCCESS checking from postBlock

according to da-probe commit 65352634ef85b4cec1a86ad34157099adc7bef70

Change-Id: Ice2a15a620d55dde6f34083b28b42213d5e7c5b6
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
10 years ago[PROTO] Backport unused probe removal
Dmitry Bogatov [Wed, 18 Sep 2013 07:42:47 +0000 (11:42 +0400)]
[PROTO] Backport unused probe removal

Change-Id: I0ef30b0d08d4482b399a5cc0d6b3bf4c697f079c
See-also: 02637c31710324818e36a0455c6f79c0def786ea
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
10 years agoBackport plain-C IO probes changes from (653526)
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>
10 years ago[STYLE] Indent backslashes in macros
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>
10 years ago[FIX] eglSwapBuffers probe fix
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>
10 years ago[FIX] warning of implicit real_pthread_* declaration
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>
10 years ago[FEATURE] add opengl probes.
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

10 years ago[FIX] merge from tizen_2.2
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>
10 years ago[PROTO] merge from tizen_2.2
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>
10 years ago[PROTO] cherry pick from tizen_2.2
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

10 years ago[FIX] bada_sync.c: PACK_THREAD -> PACK_SYNC
Nikita Kalyazin [Thu, 22 Aug 2013 09:19:31 +0000 (13:19 +0400)]
[FIX] bada_sync.c: PACK_THREAD -> PACK_SYNC

10 years ago[PROTO] MSG_PROBE_THREAD: pack both p- and osp- thread id
Anastasia Lyupa [Thu, 22 Aug 2013 08:10:42 +0000 (12:10 +0400)]
[PROTO] MSG_PROBE_THREAD: pack both p- and osp- thread id

10 years ago[PROTO] MSG_PROBE_RESOURCE: remove FDType field
Anastasia Lyupa [Wed, 21 Aug 2013 17:34:59 +0000 (21:34 +0400)]
[PROTO] MSG_PROBE_RESOURCE: remove FDType field

10 years ago[FIX] wrong app start time
Nikita Kalyazin [Thu, 8 Aug 2013 14:35:54 +0000 (18:35 +0400)]
[FIX] wrong app start time

Now time is sent in usecs

10 years ago[PROTO] probe_file changes
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

10 years agoMerge branch 'swap_draft' of 106.109.8.71:/srv/git/sdk/dynamic-analysis-probe into...
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

10 years ago[FIX] total alloc memory
Vitaliy Cherepanov [Thu, 25 Jul 2013 16:32:26 +0000 (20:32 +0400)]
[FIX] total alloc memory

10 years ago[FIX] garbage in high bytes of arguments
Nikita Kalyazin [Thu, 25 Jul 2013 16:00:00 +0000 (20:00 +0400)]
[FIX] garbage in high bytes of arguments

10 years ago[FIX] bada_file.cpp: add filesize packing in File::~File(void)
woojin [Fri, 12 Jul 2013 23:21:34 +0000 (08:21 +0900)]
[FIX] bada_file.cpp: add filesize packing in File::~File(void)

10 years ago[FIX] cherry-pick 03455c00538208e39ab328dbbc69480b6a18e983 + merge
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

10 years ago[FIX] cherry-pick 6ff4756c4413698f3d67ae7ef5c650c1cff5a57f
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