[FIX] add unique api id
authorNikita Kalyazin <n.kalyazin@samsung.com>
Sat, 13 Jul 2013 10:12:27 +0000 (14:12 +0400)
committerNikita Kalyazin <n.kalyazin@samsung.com>
Sat, 13 Jul 2013 10:14:08 +0000 (14:14 +0400)
 - Added header file (with api id macros);
 - Updated all probes to conform this change;
 - Added api_names.txt file.

28 files changed:
custom_chart/da_chart.c
include/api_id_mapping.h [new file with mode: 0644]
include/binproto.h
include/probeinfo.h
probe_badaapi/bada_file.cpp
probe_badaapi/bada_lifecycle.cpp
probe_badaapi/bada_sync.cpp
probe_badaapi/bada_thread.cpp
probe_badaapi/osp_controls.cpp
probe_event/da_event.c
probe_event/gesture.cpp
probe_event/keytouch.c
probe_file/da_io.h
probe_file/da_io_posix.c
probe_file/da_io_stdc.c
probe_memory/libdamemalloc.c
probe_memory/libdamemmanage.c
probe_memory/libdanew.cpp
probe_socket/da_socket.h
probe_socket/libdasocket.c
probe_thread/da_sync.h
probe_thread/da_thread.h
probe_thread/libdasync.c
probe_thread/libdathread.c
probe_tizenapi/tizen_appfw.c
probe_ui/osp_scenemanager.cpp
scripts/api_names.txt [new file with mode: 0644]
scripts/mapping.txt [new file with mode: 0644]

index 346c384..ad8140f 100755 (executable)
@@ -134,7 +134,9 @@ void* _chart_timerThread(void* data)
                        setProbePoint(&probeInfo);
 
                        PREPARE_LOCAL_BUF();
-                       PACK_COMMON_BEGIN(MSG_PROBE_CUSTOM, LC_CUSTOM, "", 0);
+                       PACK_COMMON_BEGIN(MSG_PROBE_CUSTOM,
+                                         API_ID__chart_timerThread,
+                                         "", 0);
                        PACK_COMMON_END(0, 0, 2);
                        PACK_CUSTOM(cur->series_handle, 0, "", 0, value);
                        FLUSH_LOCAL_BUF();
@@ -450,7 +452,9 @@ void da_mark(chart_color color, char* mark_text)
        setProbePoint(&probeInfo);
 
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_CUSTOM, LC_CUSTOM, "dp", color, mark_text);
+       PACK_COMMON_BEGIN(MSG_PROBE_CUSTOM,
+                         API_ID_da_mark,
+                         "dp", color, mark_text);
        PACK_COMMON_END(0, 0, 2);
        PACK_CUSTOM(0, 0, mark_text, color, 0.0f);
        FLUSH_LOCAL_BUF();
@@ -476,7 +480,9 @@ da_handle da_create_chart(char* chart_name)
        setProbePoint(&probeInfo);
 
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_CUSTOM, LC_CUSTOM, "p", chart_name);
+       PACK_COMMON_BEGIN(MSG_PROBE_CUSTOM,
+                         API_ID_da_create_chart,
+                         "p", chart_name);
        PACK_COMMON_END(ret, 0, 2);
        PACK_CUSTOM(0, 0, chart_name, 0, 0.0f);
        FLUSH_LOCAL_BUF();
@@ -510,7 +516,9 @@ da_handle da_create_series(da_handle charthandle, char* seriesname,
        setProbePoint(&probeInfo);
 
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_CUSTOM, LC_CUSTOM, "dpdd",  charthandle, seriesname, type, color);
+       PACK_COMMON_BEGIN(MSG_PROBE_CUSTOM,
+                         API_ID_da_create_series,
+                         "dpdd",  charthandle, seriesname, type, color);
        PACK_COMMON_END(ret, 0, 2);
        PACK_CUSTOM(charthandle, type, seriesname, color, 0.0f);
        FLUSH_LOCAL_BUF();
@@ -580,7 +588,9 @@ void da_log(da_handle series_handle, float uservalue)
        setProbePoint(&probeInfo);
 
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_CUSTOM, LC_CUSTOM, "dw", series_handle, uservalue);
+       PACK_COMMON_BEGIN(MSG_PROBE_CUSTOM,
+                         API_ID_da_log,
+                         "dw", series_handle, uservalue);
        PACK_COMMON_END(0, 0, 2);
        PACK_CUSTOM(series_handle, 0, "", 0, uservalue);
        FLUSH_LOCAL_BUF();
diff --git a/include/api_id_mapping.h b/include/api_id_mapping.h
new file mode 100644 (file)
index 0000000..c0ac678
--- /dev/null
@@ -0,0 +1,794 @@
+/*
+ *  DA probe
+ *
+ * Copyright (c) 2013 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ *
+ * Nikita Kalyazin <n.kalyazin@samsung.com>
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the
+ * Free Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but WITHOUT ANY
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation, Inc., 51
+ * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Contributors:
+ * - Samsung RnD Institute Russia
+ *
+ */
+
+#ifndef __API_ID_MAPPING__
+#define __API_ID_MAPPING__
+
+#define API_ID_result_UiApp__Execute_UiAppInstanceFactory_pUiAppFactory__const_IList__pArguments_                                               1 // result UiApp::Execute(UiAppInstanceFactory pUiAppFactory, const IList* pArguments)
+#define API_ID_void__AppImpl__OnTerminate_void__user_data_                                                                                      2 // void _AppImpl::OnTerminate(void* user_data)
+#define API_ID_void__AppInfo__SetAppState_AppState_appState_                                                                                    3 // void _AppInfo::SetAppState(AppState appState)
+#define API_ID_void__UiAppImpl__OnBackground_void_                                                                                              4 // void _UiAppImpl::OnBackground(void)
+#define API_ID_void__UiAppImpl__OnForeground_void_                                                                                              5 // void _UiAppImpl::OnForeground(void)
+
+#define API_ID_result_Mutex__Create_void_                                                                                                       6 // result Mutex::Create(void)
+#define API_ID_result_Mutex__Create_const_Tizen__Base__String__name_                                                                            7 // result Mutex::Create(const Tizen::Base::String& name)
+#define API_ID_result_Mutex__Release_void_                                                                                                      8 // result Mutex::Release(void)
+#define API_ID_result_Mutex__Acquire_void_                                                                                                      9 // result Mutex::Acquire(void)
+#define API_ID_result_Mutex__TryToAcquire_void_                                                                                                 10 // result Mutex::TryToAcquire(void)
+#define API_ID_result_Semaphore__Create_int_count_                                                                                              11 // result Semaphore::Create(int count)
+#define API_ID_result_Semaphore__Create_const_Tizen__Base__String__name__int_count_                                                             12 // result Semaphore::Create(const Tizen::Base::String& name, int count)
+#define API_ID_result_Semaphore__Acquire_long_timeout_                                                                                          13 // result Semaphore::Acquire(long timeout)
+#define API_ID_result_Semaphore__TryToAcquire_void_                                                                                             14 // result Semaphore::TryToAcquire(void)
+#define API_ID_result_Semaphore__Release_void_                                                                                                  15 // result Semaphore::Release(void)
+#define API_ID_result_Monitor__Construct_void_                                                                                                  16 // result Monitor::Construct(void)
+#define API_ID_result_Monitor__Enter_void_                                                                                                      17 // result Monitor::Enter(void)
+#define API_ID_result_Monitor__Exit_void_                                                                                                       18 // result Monitor::Exit(void)
+#define API_ID_result_Monitor__Wait_void_                                                                                                       19 // result Monitor::Wait(void)
+#define API_ID_result_Monitor__Notify_void_                                                                                                     20 // result Monitor::Notify(void)
+#define API_ID_result_Monitor__NotifyAll_void_                                                                                                  21 // result Monitor::NotifyAll(void)
+
+#define API_ID_void___ThreadImpl__ThreadProc_void__params_                                                                                      22 // void *_ThreadImpl::ThreadProc(void* params)
+#define API_ID_result_Thread__Sleep_long_milliSeconds_                                                                                          23 // result Thread::Sleep(long milliSeconds)
+#define API_ID_result_Thread__Yield_void_                                                                                                       24 // result Thread::Yield(void)
+#define API_ID_result_Thread__Exit_int_exitCode_                                                                                                25 // result Thread::Exit(int exitCode)
+#define API_ID_result_Thread__Construct_ThreadType_threadType__long_stackSize__ThreadPriority_priority_                                         26 // result Thread::Construct(ThreadType threadType, long stackSize, ThreadPriority priority)
+#define API_ID_result_Thread__Construct_long_stackSize__ThreadPriority_priority_                                                                27 // result Thread::Construct(long stackSize, ThreadPriority priority)
+#define API_ID_result_Thread__Construct_const_Tizen__Base__String__name__long_stackSize__ThreadPriority_priority_                               28 // result Thread::Construct(const Tizen::Base::String &name, long stackSize, ThreadPriority priority)
+#define API_ID_result_Thread__Construct_const_Tizen__Base__String__name__ThreadType_threadType__long_stackSize__ThreadPriority_priority_        29 // result Thread::Construct(const Tizen::Base::String &name, ThreadType threadType, long stackSize, ThreadPriority priority)
+#define API_ID_result_Thread__Construct_IRunnable__target__long_stackSize__ThreadPriority_priority_                                             30 // result Thread::Construct(IRunnable &target, long stackSize, ThreadPriority priority)
+#define API_ID_result_Thread__Construct_const_Tizen__Base__String__name__IRunnable__target__long_stackSize__ThreadPriority_priority_            31 // result Thread::Construct(const Tizen::Base::String &name, IRunnable &target, long stackSize, ThreadPriority priority)
+#define API_ID_result_Thread__GetExitCode_int__exitCode__const                                                                                  32 // result Thread::GetExitCode(int &exitCode) const
+#define API_ID_const_Tizen__Base__String___Thread__GetName_void__const                                                                          33 // const Tizen::Base::String & Thread::GetName(void) const
+#define API_ID_result_Thread__Join_void_                                                                                                        34 // result Thread::Join(void)
+#define API_ID_result_Thread__Start_void_                                                                                                       35 // result Thread::Start(void)
+#define API_ID_result_Thread__Stop_void_                                                                                                        36 // result Thread::Stop(void)
+#define API_ID_result_EventDrivenThread__Construct_long_stackSize__ThreadPriority_priority_                                                     37 // result EventDrivenThread::Construct(long stackSize, ThreadPriority priority)
+#define API_ID_result_EventDrivenThread__Construct_const_Tizen__Base__String__name__long_stackSize__ThreadPriority_priority_                    38 // result EventDrivenThread::Construct(const Tizen::Base::String &name, long stackSize, ThreadPriority priority)
+#define API_ID_result_EventDrivenThread__Quit__                                                                                                 39 // result EventDrivenThread::Quit()
+
+#define API_ID_result_File__Construct_const_Tizen__Base__String__filePath__const_Tizen__Base__String__openMode__bool_createParentDirectories_   40 // result File::Construct(const Tizen::Base::String& filePath, const Tizen::Base::String& openMode, bool createParentDirectories)
+#define API_ID_result_File__Construct_const_Tizen__Base__String__filePath__const_Tizen__Base__String__openMode_                                 41 // result File::Construct(const Tizen::Base::String& filePath, const Tizen::Base::String& openMode)
+#define API_ID_result_File__Construct_const_Tizen__Base__String__filePath__const_char__pOpenMode_                                               42 // result File::Construct(const Tizen::Base::String& filePath, const char *pOpenMode)
+#define API_ID_result_File__Construct_const_Tizen__Base__String__filePath__const_char__pOpenMode__const_Tizen__Base__ByteBuffer__secretKey_     43 // result File::Construct(const Tizen::Base::String& filePath, const char *pOpenMode, const Tizen::Base::ByteBuffer& secretKey)
+#define API_ID_result_File__Flush_void_                                                                                                         44 // result File::Flush(void)
+#define API_ID_Tizen__Base__String_File__GetName_void__const                                                                                    45 // Tizen::Base::String File::GetName(void) const
+#define API_ID_result_File__Read_Tizen__Base__String__buffer_                                                                                   46 // result File::Read(Tizen::Base::String& buffer)
+#define API_ID_result_File__Read_Tizen__Base__ByteBuffer__buffer_                                                                               47 // result File::Read(Tizen::Base::ByteBuffer& buffer)
+#define API_ID_int_File__Read_void__buffer__int_length_                                                                                         48 // int File::Read(void *buffer, int length)
+#define API_ID_result_File__Seek_FileSeekPosition_position__long_offset_                                                                        49 // result File::Seek(FileSeekPosition position, long offset)
+#define API_ID_int_File__Tell_void__const                                                                                                       50 // int File::Tell(void) const
+#define API_ID_result_File__Truncate_int_length_                                                                                                51 // result File::Truncate(int length)
+#define API_ID_result_File__Write_const_void__buffer__int_length_                                                                               52 // result File::Write(const void *buffer, int length)
+#define API_ID_result_File__Write_const_Tizen__Base__ByteBuffer__buffer_                                                                        53 // result File::Write(const Tizen::Base::ByteBuffer& buffer)
+#define API_ID_result_File__Write_const_Tizen__Base__String__buffer_                                                                            54 // result File::Write(const Tizen::Base::String& buffer)
+#define API_ID_File___File_void_                                                                                                                55 // File::~File(void)
+
+#define API_ID_result_UiApp__AddFrame_const_Tizen__Ui__Controls__Frame__frame_                                                                  56 // result UiApp::AddFrame(const Tizen::Ui::Controls::Frame& frame)
+#define API_ID_result_UiApp__RemoveFrame_const_Tizen__Ui__Controls__Frame__frame_                                                               57 // result UiApp::RemoveFrame(const Tizen::Ui::Controls::Frame &frame)
+#define API_ID_void_Control__SetName_const_Tizen__Base__String__name_                                                                           58 // void Control::SetName(const Tizen::Base::String &name)
+#define API_ID_result_Container__AddControl_const_Control__control_                                                                             59 // result Container::AddControl(const Control &control)
+#define API_ID_result_Container__RemoveControl_const_Control__control_                                                                          60 // result Container::RemoveControl(const Control &control)
+#define API_ID_result_Container__RemoveControl_int_index_                                                                                       61 // result Container::RemoveControl(int index)
+#define API_ID_void_Container__RemoveAllControls_void_                                                                                          62 // void Container::RemoveAllControls(void)
+
+#define API_ID__chart_timerThread                                                                                                               63 // _chart_timerThread
+#define API_ID_da_mark                                                                                                                          64 // da_mark
+#define API_ID_da_create_chart                                                                                                                  65 // da_create_chart
+#define API_ID_da_create_series                                                                                                                 66 // da_create_series
+#define API_ID_da_log                                                                                                                           67 // da_log
+
+#define API_ID_malloc                                                                                                                           68 // malloc
+#define API_ID_free                                                                                                                             69 // free
+#define API_ID_realloc                                                                                                                          70 // realloc
+#define API_ID_calloc                                                                                                                           71 // calloc
+
+#define API_ID_void__operator_new_std__size_t_size__throw__std__bad_alloc_                                                                      72 // void *operator new(std::size_t size) throw (std::bad_alloc)
+#define API_ID_void__operator_new___std__size_t_size__throw__std__bad_alloc_                                                                    73 // void *operator new[](std::size_t size) throw (std::bad_alloc)
+#define API_ID_void_operator_delete_void__ptr__throw__                                                                                          74 // void operator delete(void *ptr) throw()
+#define API_ID_void_operator_delete___void__ptr__throw__                                                                                        75 // void operator delete[](void *ptr) throw()
+#define API_ID_void__operator_new_std__size_t_size__const_std__nothrow_t__nothrow__throw__                                                      76 // void *operator new(std::size_t size, const std::nothrow_t& nothrow) throw()
+#define API_ID_void__operator_new___std__size_t_size__const_std__nothrow_t__nothrow__throw__                                                    77 // void *operator new[](std::size_t size, const std::nothrow_t& nothrow) throw()
+#define API_ID_void_operator_delete_void__ptr__const_std__nothrow_t__nothrow__throw__                                                           78 // void operator delete(void *ptr, const std::nothrow_t& nothrow) throw()
+#define API_ID_void_operator_delete___void__ptr__const_std__nothrow_t__nothrow__throw__                                                         79 // void operator delete[](void *ptr, const std::nothrow_t& nothrow) throw()
+
+#define API_ID_memset                                                                                                                           80 // memset
+#define API_ID_memcmp                                                                                                                           81 // memcmp
+#define API_ID_memcpy                                                                                                                           82 // memcpy
+
+#define API_ID__dalc_app_create                                                                                                                 83 // _dalc_app_create
+#define API_ID__dalc_app_terminate                                                                                                              84 // _dalc_app_terminate
+#define API_ID__dalc_app_pause                                                                                                                  85 // _dalc_app_pause
+#define API_ID__dalc_app_resume                                                                                                                 86 // _dalc_app_resume
+#define API_ID__dalc_app_service                                                                                                                87 // _dalc_app_service
+
+#define API_ID__da_cleanup_handler                                                                                                              88 // _da_cleanup_handler
+#define API_ID__da_ThreadProc                                                                                                                   89 // _da_ThreadProc
+#define API_ID_pthread_create                                                                                                                   90 // pthread_create
+#define API_ID_pthread_join                                                                                                                     91 // pthread_join
+#define API_ID_pthread_exit                                                                                                                     92 // pthread_exit
+#define API_ID_pthread_cancel                                                                                                                   93 // pthread_cancel
+#define API_ID_pthread_detach                                                                                                                   94 // pthread_detach
+#define API_ID_pthread_self                                                                                                                     95 // pthread_self
+#define API_ID_pthread_equal                                                                                                                    96 // pthread_equal
+#define API_ID_pthread_setcancelstate                                                                                                           97 // pthread_setcancelstate
+#define API_ID_pthread_setcanceltype                                                                                                            98 // pthread_setcanceltype
+#define API_ID_pthread_attr_init                                                                                                                99 // pthread_attr_init
+#define API_ID_pthread_attr_destroy                                                                                                             100 // pthread_attr_destroy
+#define API_ID_pthread_attr_getdetachstate                                                                                                      101 // pthread_attr_getdetachstate
+#define API_ID_pthread_attr_setdetachstate                                                                                                      102 // pthread_attr_setdetachstate
+#define API_ID_pthread_attr_getstacksize                                                                                                        103 // pthread_attr_getstacksize
+#define API_ID_pthread_attr_setstacksize                                                                                                        104 // pthread_attr_setstacksize
+#define API_ID_pthread_attr_getstackaddr                                                                                                        105 // pthread_attr_getstackaddr
+#define API_ID_pthread_attr_setstackaddr                                                                                                        106 // pthread_attr_setstackaddr
+#define API_ID_pthread_attr_getinheritsched                                                                                                     107 // pthread_attr_getinheritsched
+#define API_ID_pthread_attr_setinheritsched                                                                                                     108 // pthread_attr_setinheritsched
+#define API_ID_pthread_attr_getschedparam                                                                                                       109 // pthread_attr_getschedparam
+#define API_ID_pthread_attr_setschedparam                                                                                                       110 // pthread_attr_setschedparam
+#define API_ID_pthread_attr_getschedpolicy                                                                                                      111 // pthread_attr_getschedpolicy
+#define API_ID_pthread_attr_setschedpolicy                                                                                                      112 // pthread_attr_setschedpolicy
+#define API_ID_pthread_attr_getguardsize                                                                                                        113 // pthread_attr_getguardsize
+#define API_ID_pthread_attr_setguardsize                                                                                                        114 // pthread_attr_setguardsize
+#define API_ID_pthread_attr_getscope                                                                                                            115 // pthread_attr_getscope
+#define API_ID_pthread_attr_setscope                                                                                                            116 // pthread_attr_setscope
+#define API_ID_pthread_attr_getstack                                                                                                            117 // pthread_attr_getstack
+#define API_ID_pthread_attr_setstack                                                                                                            118 // pthread_attr_setstack
+
+#define API_ID_pthread_mutex_init                                                                                                               119 // pthread_mutex_init
+#define API_ID_pthread_mutex_destroy                                                                                                            120 // pthread_mutex_destroy
+#define API_ID_real_pthread_mutex_lock                                                                                                          121 // real_pthread_mutex_lock
+#define API_ID_pthread_mutex_lock                                                                                                               122 // pthread_mutex_lock
+#define API_ID_pthread_mutex_timedlock                                                                                                          123 // pthread_mutex_timedlock
+#define API_ID_pthread_mutex_trylock                                                                                                            124 // pthread_mutex_trylock
+#define API_ID_real_pthread_mutex_unlock                                                                                                        125 // real_pthread_mutex_unlock
+#define API_ID_pthread_mutex_unlock                                                                                                             126 // pthread_mutex_unlock
+#define API_ID_pthread_mutexattr_init                                                                                                           127 // pthread_mutexattr_init
+#define API_ID_pthread_mutexattr_destroy                                                                                                        128 // pthread_mutexattr_destroy
+#define API_ID_pthread_mutexattr_getprioceiling                                                                                                 129 // pthread_mutexattr_getprioceiling
+#define API_ID_pthread_mutexattr_setprioceiling                                                                                                 130 // pthread_mutexattr_setprioceiling
+#define API_ID_pthread_mutexattr_getprotocol                                                                                                    131 // pthread_mutexattr_getprotocol
+#define API_ID_pthread_mutexattr_setprotocol                                                                                                    132 // pthread_mutexattr_setprotocol
+#define API_ID_pthread_mutexattr_getpshared                                                                                                     133 // pthread_mutexattr_getpshared
+#define API_ID_pthread_mutexattr_setpshared                                                                                                     134 // pthread_mutexattr_setpshared
+#define API_ID_pthread_mutexattr_gettype                                                                                                        135 // pthread_mutexattr_gettype
+#define API_ID_pthread_mutexattr_settype                                                                                                        136 // pthread_mutexattr_settype
+#define API_ID_pthread_cond_init                                                                                                                137 // pthread_cond_init
+#define API_ID_pthread_cond_destroy                                                                                                             138 // pthread_cond_destroy
+#define API_ID_pthread_cond_wait                                                                                                                139 // pthread_cond_wait
+#define API_ID_pthread_cond_timedwait                                                                                                           140 // pthread_cond_timedwait
+#define API_ID_pthread_cond_signal                                                                                                              141 // pthread_cond_signal
+#define API_ID_pthread_cond_broadcast                                                                                                           142 // pthread_cond_broadcast
+
+#define API_ID_open                                                                                                                             143 // open
+#define API_ID_openat                                                                                                                           144 // openat
+#define API_ID_creat                                                                                                                            145 // creat
+#define API_ID_close                                                                                                                            146 // close
+#define API_ID_access                                                                                                                           147 // access
+#define API_ID_faccessat                                                                                                                        148 // faccessat
+#define API_ID_lseek                                                                                                                            149 // lseek
+#define API_ID_fsync                                                                                                                            150 // fsync
+#define API_ID_fdatasync                                                                                                                        151 // fdatasync
+#define API_ID_truncate                                                                                                                         152 // truncate
+#define API_ID_ftruncate                                                                                                                        153 // ftruncate
+#define API_ID_mkfifo                                                                                                                           154 // mkfifo
+#define API_ID_mkfifoat                                                                                                                         155 // mkfifoat
+#define API_ID_mknod                                                                                                                            156 // mknod
+#define API_ID_mknodat                                                                                                                          157 // mknodat
+#define API_ID_chown                                                                                                                            158 // chown
+#define API_ID_fchownat                                                                                                                         159 // fchownat
+#define API_ID_fchown                                                                                                                           160 // fchown
+#define API_ID_lchown                                                                                                                           161 // lchown
+#define API_ID_lockf                                                                                                                            162 // lockf
+#define API_ID_chmod                                                                                                                            163 // chmod
+#define API_ID_fchmodat                                                                                                                         164 // fchmodat
+#define API_ID_fchmod                                                                                                                           165 // fchmod
+#define API_ID_pread                                                                                                                            166 // pread
+#define API_ID_read                                                                                                                             167 // read
+#define API_ID_pwrite                                                                                                                           168 // pwrite
+#define API_ID_write                                                                                                                            169 // write
+#define API_ID_readv                                                                                                                            170 // readv
+#define API_ID_rmdir                                                                                                                            171 // rmdir
+#define API_ID_fchdir                                                                                                                           172 // fchdir
+#define API_ID_chdir                                                                                                                            173 // chdir
+#define API_ID_link                                                                                                                             174 // link
+#define API_ID_linkat                                                                                                                           175 // linkat
+#define API_ID_unlink                                                                                                                           176 // unlink
+#define API_ID_unlinkat                                                                                                                         177 // unlinkat
+#define API_ID_symlink                                                                                                                          178 // symlink
+#define API_ID_symlinkat                                                                                                                        179 // symlinkat
+#define API_ID_readlink                                                                                                                         180 // readlink
+#define API_ID_readlinkat                                                                                                                       181 // readlinkat
+#define API_ID_mkdir                                                                                                                            182 // mkdir
+#define API_ID_mkdirat                                                                                                                          183 // mkdirat
+#define API_ID_closedir                                                                                                                         184 // closedir
+#define API_ID_fdopendir                                                                                                                        185 // fdopendir
+#define API_ID_opendir                                                                                                                          186 // opendir
+#define API_ID_readdir                                                                                                                          187 // readdir
+#define API_ID_readdir_r                                                                                                                        188 // readdir_r
+#define API_ID_rewinddir                                                                                                                        189 // rewinddir
+#define API_ID_seekdir                                                                                                                          190 // seekdir
+#define API_ID_telldir                                                                                                                          191 // telldir
+#define API_ID_fcntl                                                                                                                            192 // fcntl
+#define API_ID_dup                                                                                                                              193 // dup
+#define API_ID_dup2                                                                                                                             194 // dup2
+#define API_ID_fstatat                                                                                                                          195 // fstatat
+#define API_ID_lstat                                                                                                                            196 // lstat
+#define API_ID_futimens                                                                                                                         197 // futimens
+#define API_ID_utimensat                                                                                                                        198 // utimensat
+#define API_ID_utimes                                                                                                                           199 // utimes
+#define API_ID_utime                                                                                                                            200 // utime
+
+#define API_ID_clearerr                                                                                                                         201 // clearerr
+#define API_ID_fclose                                                                                                                           202 // fclose
+#define API_ID_fdopen                                                                                                                           203 // fdopen
+#define API_ID_feof                                                                                                                             204 // feof
+#define API_ID_ferror                                                                                                                           205 // ferror
+#define API_ID_fflush                                                                                                                           206 // fflush
+#define API_ID_fgetc                                                                                                                            207 // fgetc
+#define API_ID_fgetpos                                                                                                                          208 // fgetpos
+#define API_ID_fileno                                                                                                                           209 // fileno
+#define API_ID_fopen                                                                                                                            210 // fopen
+#define API_ID_fprintf                                                                                                                          211 // fprintf
+#define API_ID_fputc                                                                                                                            212 // fputc
+#define API_ID_fputs                                                                                                                            213 // fputs
+#define API_ID_fread                                                                                                                            214 // fread
+#define API_ID_freopen                                                                                                                          215 // freopen
+#define API_ID_fscanf                                                                                                                           216 // fscanf
+#define API_ID_fseek                                                                                                                            217 // fseek
+#define API_ID_fsetpos                                                                                                                          218 // fsetpos
+#define API_ID_fwrite                                                                                                                           219 // fwrite
+#define API_ID_getc                                                                                                                             220 // getc
+#define API_ID_getchar                                                                                                                          221 // getchar
+#define API_ID_gets                                                                                                                             222 // gets
+#define API_ID_int                                                                                                                              223 // int
+#define API_ID_perror                                                                                                                           224 // perror
+#define API_ID_printf                                                                                                                           225 // printf
+#define API_ID_putc                                                                                                                             226 // putc
+#define API_ID_putchar                                                                                                                          227 // putchar
+#define API_ID_puts                                                                                                                             228 // puts
+#define API_ID_remove                                                                                                                           229 // remove
+#define API_ID_rename                                                                                                                           230 // rename
+#define API_ID_rewind                                                                                                                           231 // rewind
+#define API_ID_scanf                                                                                                                            232 // scanf
+#define API_ID_setbuf                                                                                                                           233 // setbuf
+#define API_ID_setbuffer                                                                                                                        234 // setbuffer
+#define API_ID_setlinebuf                                                                                                                       235 // setlinebuf
+#define API_ID_setvbuf                                                                                                                          236 // setvbuf
+#define API_ID_tmpnam                                                                                                                           237 // tmpnam
+#define API_ID_ungetc                                                                                                                           238 // ungetc
+#define API_ID_vfprintf                                                                                                                         239 // vfprintf
+#define API_ID_vfscanf                                                                                                                          240 // vfscanf
+
+#define API_ID_void_SceneManagerEventListener__OnSceneTransitionCompleted_const_SceneId__previousSceneId__const_SceneId__currentSceneId_        241 // void SceneManagerEventListener::OnSceneTransitionCompleted(const SceneId &previousSceneId, const SceneId &currentSceneId)
+
+#define API_ID_void_GestureEventListener__OnCustomGestureCanceled__TouchGestureDetector__gestureDetector_                                       242 // void GestureEventListener::OnCustomGestureCanceled (TouchGestureDetector &gestureDetector)
+#define API_ID_void_GestureEventListener__OnCustomGestureChanged__TouchGestureDetector__gestureDetector_                                        243 // void GestureEventListener::OnCustomGestureChanged (TouchGestureDetector &gestureDetector)
+#define API_ID_void_GestureEventListener__OnCustomGestureFinished__TouchGestureDetector__gestureDetector_                                       244 // void GestureEventListener::OnCustomGestureFinished (TouchGestureDetector &gestureDetector)
+#define API_ID_void_GestureEventListener__OnCustomGestureStarted__TouchGestureDetector__gestureDetector_                                        245 // void GestureEventListener::OnCustomGestureStarted (TouchGestureDetector &gestureDetector)
+#define API_ID_void_GestureEventListener__OnFlickGestureCanceled__TouchFlickGestureDetector__gestureDetector_                                   246 // void GestureEventListener::OnFlickGestureCanceled (TouchFlickGestureDetector &gestureDetector)
+#define API_ID_void_GestureEventListener__OnFlickGestureDetected__TouchFlickGestureDetector__gestureDetector_                                   247 // void GestureEventListener::OnFlickGestureDetected (TouchFlickGestureDetector &gestureDetector)
+#define API_ID_void_GestureEventListener__OnLongPressGestureCanceled__TouchLongPressGestureDetector__gestureDetector_                           248 // void GestureEventListener::OnLongPressGestureCanceled (TouchLongPressGestureDetector &gestureDetector)
+#define API_ID_void_GestureEventListener__OnLongPressGestureDetected__TouchLongPressGestureDetector__gestureDetector_                           249 // void GestureEventListener::OnLongPressGestureDetected (TouchLongPressGestureDetector &gestureDetector)
+#define API_ID_void_GestureEventListener__OnPanningGestureCanceled__TouchPanningGestureDetector__gestureDetector_                               250 // void GestureEventListener::OnPanningGestureCanceled (TouchPanningGestureDetector &gestureDetector)
+#define API_ID_void_GestureEventListener__OnPanningGestureChanged__TouchPanningGestureDetector__gestureDetector_                                251 // void GestureEventListener::OnPanningGestureChanged (TouchPanningGestureDetector &gestureDetector)
+#define API_ID_void_GestureEventListener__OnPanningGestureFinished__TouchPanningGestureDetector__gestureDetector_                               252 // void GestureEventListener::OnPanningGestureFinished (TouchPanningGestureDetector &gestureDetector)
+#define API_ID_void_GestureEventListener__OnPanningGestureStarted__TouchPanningGestureDetector__gestureDetector_                                253 // void GestureEventListener::OnPanningGestureStarted (TouchPanningGestureDetector &gestureDetector)
+#define API_ID_void_GestureEventListener__OnPinchGestureCanceled__TouchPinchGestureDetector__gestureDetector_                                   254 // void GestureEventListener::OnPinchGestureCanceled (TouchPinchGestureDetector &gestureDetector)
+#define API_ID_void_GestureEventListener__OnPinchGestureChanged__TouchPinchGestureDetector__gestureDetector_                                    255 // void GestureEventListener::OnPinchGestureChanged (TouchPinchGestureDetector &gestureDetector)
+#define API_ID_void_GestureEventListener__OnPinchGestureFinished__TouchPinchGestureDetector__gestureDetector_                                   256 // void GestureEventListener::OnPinchGestureFinished (TouchPinchGestureDetector &gestureDetector)
+#define API_ID_void_GestureEventListener__OnPinchGestureStarted__TouchPinchGestureDetector__gestureDetector_                                    257 // void GestureEventListener::OnPinchGestureStarted (TouchPinchGestureDetector &gestureDetector)
+#define API_ID_void_GestureEventListener__OnRotationGestureCanceled__TouchRotationGestureDetector__gestureDetector_                             258 // void GestureEventListener::OnRotationGestureCanceled (TouchRotationGestureDetector &gestureDetector)
+#define API_ID_void_GestureEventListener__OnRotationGestureChanged__TouchRotationGestureDetector__gestureDetector_                              259 // void GestureEventListener::OnRotationGestureChanged (TouchRotationGestureDetector &gestureDetector)
+#define API_ID_void_GestureEventListener__OnRotationGestureFinished__TouchRotationGestureDetector__gestureDetector_                             260 // void GestureEventListener::OnRotationGestureFinished (TouchRotationGestureDetector &gestureDetector)
+#define API_ID_void_GestureEventListener__OnRotationGestureStarted__TouchRotationGestureDetector__gestureDetector_                              261 // void GestureEventListener::OnRotationGestureStarted (TouchRotationGestureDetector &gestureDetector)
+#define API_ID_void_GestureEventListener__OnTapGestureCanceled__TouchTapGestureDetector__gestureDetector_                                       262 // void GestureEventListener::OnTapGestureCanceled (TouchTapGestureDetector &gestureDetector)
+#define API_ID_void_GestureEventListener__OnTapGestureDetected__TouchTapGestureDetector__gestureDetector_                                       263 // void GestureEventListener::OnTapGestureDetected (TouchTapGestureDetector &gestureDetector)
+
+#define API_ID_on_orientation_changed                                                                                                           264 // on_orientation_changed
+
+#define API_ID_ecore_event_evas_key_down                                                                                                        265 // ecore_event_evas_key_down
+#define API_ID_ecore_event_evas_key_up                                                                                                          266 // ecore_event_evas_key_up
+#define API_ID_ecore_event_evas_mouse_button_down                                                                                               267 // ecore_event_evas_mouse_button_down
+#define API_ID_ecore_event_evas_mouse_button_up                                                                                                 268 // ecore_event_evas_mouse_button_up
+#define API_ID_ecore_event_evas_mouse_move                                                                                                      269 // ecore_event_evas_mouse_move
+
+#define API_ID_accept                                                                                                                           270 // accept
+#define API_ID_accept4                                                                                                                          271 // accept4
+#define API_ID_bind                                                                                                                             272 // bind
+#define API_ID_gai_strerror                                                                                                                     273 // gai_strerror
+#define API_ID_hstrerror                                                                                                                        274 // hstrerror
+#define API_ID_inet_ntop                                                                                                                        275 // inet_ntop
+#define API_ID_connect                                                                                                                          276 // connect
+#define API_ID_endhostent                                                                                                                       277 // endhostent
+#define API_ID_endnetent                                                                                                                        278 // endnetent
+#define API_ID_endprotoent                                                                                                                      279 // endprotoent
+#define API_ID_endservent                                                                                                                       280 // endservent
+#define API_ID_freeaddrinfo                                                                                                                     281 // freeaddrinfo
+#define API_ID_freeifaddrs                                                                                                                      282 // freeifaddrs
+#define API_ID_gai_cancel                                                                                                                       283 // gai_cancel
+#define API_ID_gai_error                                                                                                                        284 // gai_error
+#define API_ID_gai_suspend                                                                                                                      285 // gai_suspend
+#define API_ID_getaddrinfo                                                                                                                      286 // getaddrinfo
+#define API_ID_getaddrinfo_a                                                                                                                    287 // getaddrinfo_a
+#define API_ID_getdomainname                                                                                                                    288 // getdomainname
+#define API_ID_gethostbyaddr_r                                                                                                                  289 // gethostbyaddr_r
+#define API_ID_gethostbyname2_r                                                                                                                 290 // gethostbyname2_r
+#define API_ID_gethostbyname_r                                                                                                                  291 // gethostbyname_r
+#define API_ID_gethostent_r                                                                                                                     292 // gethostent_r
+#define API_ID_gethostname                                                                                                                      293 // gethostname
+#define API_ID_getifaddrs                                                                                                                       294 // getifaddrs
+#define API_ID_getnameinfo                                                                                                                      295 // getnameinfo
+#define API_ID_getnetbyaddr_r                                                                                                                   296 // getnetbyaddr_r
+#define API_ID_getnetbyname_r                                                                                                                   297 // getnetbyname_r
+#define API_ID_getnetent_r                                                                                                                      298 // getnetent_r
+#define API_ID_getpeername                                                                                                                      299 // getpeername
+#define API_ID_getprotobyname_r                                                                                                                 300 // getprotobyname_r
+#define API_ID_getprotobynumber_r                                                                                                               301 // getprotobynumber_r
+#define API_ID_getprotoent_r                                                                                                                    302 // getprotoent_r
+#define API_ID_getservbyname_r                                                                                                                  303 // getservbyname_r
+#define API_ID_getservbyport_r                                                                                                                  304 // getservbyport_r
+#define API_ID_getservent_r                                                                                                                     305 // getservent_r
+#define API_ID_getsockname                                                                                                                      306 // getsockname
+#define API_ID_getsockopt                                                                                                                       307 // getsockopt
+#define API_ID_herror                                                                                                                           308 // herror
+#define API_ID_gethostbyaddr                                                                                                                    309 // gethostbyaddr
+#define API_ID_gethostbyname                                                                                                                    310 // gethostbyname
+#define API_ID_gethostbyname2                                                                                                                   311 // gethostbyname2
+#define API_ID_gethostent                                                                                                                       312 // gethostent
+#define API_ID_htonl                                                                                                                            313 // htonl
+#define API_ID_htons                                                                                                                            314 // htons
+#define API_ID_if_freenameindex                                                                                                                 315 // if_freenameindex
+#define API_ID_if_indextoname                                                                                                                   316 // if_indextoname
+#define API_ID_if_nameindex                                                                                                                     317 // if_nameindex
+#define API_ID_inet_makeaddr                                                                                                                    318 // inet_makeaddr
+#define API_ID_inet_addr                                                                                                                        319 // inet_addr
+#define API_ID_inet_aton                                                                                                                        320 // inet_aton
+#define API_ID_inet_lnaof                                                                                                                       321 // inet_lnaof
+#define API_ID_inet_netof                                                                                                                       322 // inet_netof
+#define API_ID_inet_network                                                                                                                     323 // inet_network
+#define API_ID_inet_ntoa                                                                                                                        324 // inet_ntoa
+#define API_ID_inet_pton                                                                                                                        325 // inet_pton
+#define API_ID_if_nametoindex                                                                                                                   326 // if_nametoindex
+#define API_ID_le32toh                                                                                                                          327 // le32toh
+#define API_ID_le64toh                                                                                                                          328 // le64toh
+#define API_ID_listen                                                                                                                           329 // listen
+#define API_ID_getnetbyaddr                                                                                                                     330 // getnetbyaddr
+#define API_ID_getnetbyname                                                                                                                     331 // getnetbyname
+#define API_ID_getnetent                                                                                                                        332 // getnetent
+#define API_ID_ntohl                                                                                                                            333 // ntohl
+#define API_ID_ntohs                                                                                                                            334 // ntohs
+#define API_ID_getprotobyname                                                                                                                   335 // getprotobyname
+#define API_ID_getprotobynumber                                                                                                                 336 // getprotobynumber
+#define API_ID_getprotoent                                                                                                                      337 // getprotoent
+#define API_ID_pselect                                                                                                                          338 // pselect
+#define API_ID_recv                                                                                                                             339 // recv
+#define API_ID_recvfrom                                                                                                                         340 // recvfrom
+#define API_ID_recvmsg                                                                                                                          341 // recvmsg
+#define API_ID_select                                                                                                                           342 // select
+#define API_ID_send                                                                                                                             343 // send
+#define API_ID_sendmsg                                                                                                                          344 // sendmsg
+#define API_ID_sendto                                                                                                                           345 // sendto
+#define API_ID_getservbyname                                                                                                                    346 // getservbyname
+#define API_ID_getservbyport                                                                                                                    347 // getservbyport
+#define API_ID_getservent                                                                                                                       348 // getservent
+#define API_ID_setdomainname                                                                                                                    349 // setdomainname
+#define API_ID_sethostent                                                                                                                       350 // sethostent
+#define API_ID_sethostname                                                                                                                      351 // sethostname
+#define API_ID_setnetent                                                                                                                        352 // setnetent
+#define API_ID_setprotoent                                                                                                                      353 // setprotoent
+#define API_ID_setservent                                                                                                                       354 // setservent
+#define API_ID_setsockopt                                                                                                                       355 // setsockopt
+#define API_ID_shutdown                                                                                                                         356 // shutdown
+#define API_ID_socket                                                                                                                           357 // socket
+#define API_ID_socketpair                                                                                                                       358 // socketpair
+
+#define API_ID_Thread__Thread__GetCurrentThread_void_                                                                                           359 // Thread* Thread::GetCurrentThread(void)
+
+#define API_ID_result_UiApp__Execute_UiAppInstanceFactory_pUiAppFactory__const_IList__pArguments_                                               1 // result UiApp::Execute(UiAppInstanceFactory pUiAppFactory, const IList* pArguments)
+#define API_ID_void__AppImpl__OnTerminate_void__user_data_                                                                                      2 // void _AppImpl::OnTerminate(void* user_data)
+#define API_ID_void__AppInfo__SetAppState_AppState_appState_                                                                                    3 // void _AppInfo::SetAppState(AppState appState)
+#define API_ID_void__UiAppImpl__OnBackground_void_                                                                                              4 // void _UiAppImpl::OnBackground(void)
+#define API_ID_void__UiAppImpl__OnForeground_void_                                                                                              5 // void _UiAppImpl::OnForeground(void)
+
+#define API_ID_result_Mutex__Create_void_                                                                                                       6 // result Mutex::Create(void)
+#define API_ID_result_Mutex__Create_const_Tizen__Base__String__name_                                                                            7 // result Mutex::Create(const Tizen::Base::String_ name)
+#define API_ID_result_Mutex__Release_void_                                                                                                      8 // result Mutex::Release(void)
+#define API_ID_result_Mutex__Acquire_void_                                                                                                      9 // result Mutex::Acquire(void)
+#define API_ID_result_Mutex__TryToAcquire_void_                                                                                                 10 // result Mutex::TryToAcquire(void)
+#define API_ID_result_Semaphore__Create_int_count_                                                                                              11 // result Semaphore::Create(int count)
+#define API_ID_result_Semaphore__Create_const_Tizen__Base__String__name__int_count_                                                             12 // result Semaphore::Create(const Tizen::Base::String_ name, int count)
+#define API_ID_result_Semaphore__Acquire_long_timeout_                                                                                          13 // result Semaphore::Acquire(long timeout)
+#define API_ID_result_Semaphore__TryToAcquire_void_                                                                                             14 // result Semaphore::TryToAcquire(void)
+#define API_ID_result_Semaphore__Release_void_                                                                                                  15 // result Semaphore::Release(void)
+#define API_ID_result_Monitor__Construct_void_                                                                                                  16 // result Monitor::Construct(void)
+#define API_ID_result_Monitor__Enter_void_                                                                                                      17 // result Monitor::Enter(void)
+#define API_ID_result_Monitor__Exit_void_                                                                                                       18 // result Monitor::Exit(void)
+#define API_ID_result_Monitor__Wait_void_                                                                                                       19 // result Monitor::Wait(void)
+#define API_ID_result_Monitor__Notify_void_                                                                                                     20 // result Monitor::Notify(void)
+#define API_ID_result_Monitor__NotifyAll_void_                                                                                                  21 // result Monitor::NotifyAll(void)
+
+#define API_ID_void___ThreadImpl__ThreadProc_void__params_                                                                                      22 // void *_ThreadImpl::ThreadProc(void* params)
+#define API_ID_result_Thread__Sleep_long_milliSeconds_                                                                                          23 // result Thread::Sleep(long milliSeconds)
+#define API_ID_result_Thread__Yield_void_                                                                                                       24 // result Thread::Yield(void)
+#define API_ID_result_Thread__Exit_int_exitCode_                                                                                                25 // result Thread::Exit(int exitCode)
+#define API_ID_result_Thread__Construct_ThreadType_threadType__long_stackSize__ThreadPriority_priority_                                         26 // result Thread::Construct(ThreadType threadType, long stackSize, ThreadPriority priority)
+#define API_ID_result_Thread__Construct_long_stackSize__ThreadPriority_priority_                                                                27 // result Thread::Construct(long stackSize, ThreadPriority priority)
+#define API_ID_result_Thread__Construct_const_Tizen__Base__String__name__long_stackSize__ThreadPriority_priority_                               28 // result Thread::Construct(const Tizen::Base::String _name, long stackSize, ThreadPriority priority)
+#define API_ID_result_Thread__Construct_const_Tizen__Base__String__name__ThreadType_threadType__long_stackSize__ThreadPriority_priority_        29 // result Thread::Construct(const Tizen::Base::String _name, ThreadType threadType, long stackSize, ThreadPriority priority)
+#define API_ID_result_Thread__Construct_IRunnable__target__long_stackSize__ThreadPriority_priority_                                             30 // result Thread::Construct(IRunnable _target, long stackSize, ThreadPriority priority)
+#define API_ID_result_Thread__Construct_const_Tizen__Base__String__name__IRunnable__target__long_stackSize__ThreadPriority_priority_            31 // result Thread::Construct(const Tizen::Base::String _name, IRunnable _target, long stackSize, ThreadPriority priority)
+#define API_ID_result_Thread__GetExitCode_int__exitCode__const                                                                                  32 // result Thread::GetExitCode(int _exitCode) const
+#define API_ID_const_Tizen__Base__String___Thread__GetName_void__const                                                                          33 // const Tizen::Base::String _ Thread::GetName(void) const
+#define API_ID_result_Thread__Join_void_                                                                                                        34 // result Thread::Join(void)
+#define API_ID_result_Thread__Start_void_                                                                                                       35 // result Thread::Start(void)
+#define API_ID_result_Thread__Stop_void_                                                                                                        36 // result Thread::Stop(void)
+#define API_ID_result_EventDrivenThread__Construct_long_stackSize__ThreadPriority_priority_                                                     37 // result EventDrivenThread::Construct(long stackSize, ThreadPriority priority)
+#define API_ID_result_EventDrivenThread__Construct_const_Tizen__Base__String__name__long_stackSize__ThreadPriority_priority_                    38 // result EventDrivenThread::Construct(const Tizen::Base::String _name, long stackSize, ThreadPriority priority)
+#define API_ID_result_EventDrivenThread__Quit__                                                                                                 39 // result EventDrivenThread::Quit()
+
+#define API_ID_result_File__Construct_const_Tizen__Base__String__filePath__const_Tizen__Base__String__openMode__bool_createParentDirectories_   40 // result File::Construct(const Tizen::Base::String_ filePath, const Tizen::Base::String_ openMode, bool createParentDirectories)
+#define API_ID_result_File__Construct_const_Tizen__Base__String__filePath__const_Tizen__Base__String__openMode_                                 41 // result File::Construct(const Tizen::Base::String_ filePath, const Tizen::Base::String_ openMode)
+#define API_ID_result_File__Construct_const_Tizen__Base__String__filePath__const_char__pOpenMode_                                               42 // result File::Construct(const Tizen::Base::String_ filePath, const char *pOpenMode)
+#define API_ID_result_File__Construct_const_Tizen__Base__String__filePath__const_char__pOpenMode__const_Tizen__Base__ByteBuffer__secretKey_     43 // result File::Construct(const Tizen::Base::String_ filePath, const char *pOpenMode, const Tizen::Base::ByteBuffer_ secretKey)
+#define API_ID_result_File__Flush_void_                                                                                                         44 // result File::Flush(void)
+#define API_ID_Tizen__Base__String_File__GetName_void__const                                                                                    45 // Tizen::Base::String File::GetName(void) const
+#define API_ID_result_File__Read_Tizen__Base__String__buffer_                                                                                   46 // result File::Read(Tizen::Base::String_ buffer)
+#define API_ID_result_File__Read_Tizen__Base__ByteBuffer__buffer_                                                                               47 // result File::Read(Tizen::Base::ByteBuffer_ buffer)
+#define API_ID_int_File__Read_void__buffer__int_length_                                                                                         48 // int File::Read(void *buffer, int length)
+#define API_ID_result_File__Seek_FileSeekPosition_position__long_offset_                                                                        49 // result File::Seek(FileSeekPosition position, long offset)
+#define API_ID_int_File__Tell_void__const                                                                                                       50 // int File::Tell(void) const
+#define API_ID_result_File__Truncate_int_length_                                                                                                51 // result File::Truncate(int length)
+#define API_ID_result_File__Write_const_void__buffer__int_length_                                                                               52 // result File::Write(const void *buffer, int length)
+#define API_ID_result_File__Write_const_Tizen__Base__ByteBuffer__buffer_                                                                        53 // result File::Write(const Tizen::Base::ByteBuffer_ buffer)
+#define API_ID_result_File__Write_const_Tizen__Base__String__buffer_                                                                            54 // result File::Write(const Tizen::Base::String_ buffer)
+#define API_ID_File___File_void_                                                                                                                55 // File::_File(void)
+
+#define API_ID_result_UiApp__AddFrame_const_Tizen__Ui__Controls__Frame__frame_                                                                  56 // result UiApp::AddFrame(const Tizen::Ui::Controls::Frame_ frame)
+#define API_ID_result_UiApp__RemoveFrame_const_Tizen__Ui__Controls__Frame__frame_                                                               57 // result UiApp::RemoveFrame(const Tizen::Ui::Controls::Frame _frame)
+#define API_ID_void_Control__SetName_const_Tizen__Base__String__name_                                                                           58 // void Control::SetName(const Tizen::Base::String _name)
+#define API_ID_result_Container__AddControl_const_Control__control_                                                                             59 // result Container::AddControl(const Control _control)
+#define API_ID_result_Container__RemoveControl_const_Control__control_                                                                          60 // result Container::RemoveControl(const Control _control)
+#define API_ID_result_Container__RemoveControl_int_index_                                                                                       61 // result Container::RemoveControl(int index)
+#define API_ID_void_Container__RemoveAllControls_void_                                                                                          62 // void Container::RemoveAllControls(void)
+
+#define API_ID__chart_timerThread                                                                                                               63 // _chart_timerThread
+#define API_ID_da_mark                                                                                                                          64 // da_mark
+#define API_ID_da_create_chart                                                                                                                  65 // da_create_chart
+#define API_ID_da_create_series                                                                                                                 66 // da_create_series
+#define API_ID_da_log                                                                                                                           67 // da_log
+
+#define API_ID_malloc                                                                                                                           68 // malloc
+#define API_ID_free                                                                                                                             69 // free
+#define API_ID_realloc                                                                                                                          70 // realloc
+#define API_ID_calloc                                                                                                                           71 // calloc
+
+#define API_ID_void__operator_new_std__size_t_size__throw__std__bad_alloc_                                                                      72 // void *operator new(std::size_t size) throw (std::bad_alloc)
+#define API_ID_void__operator_new___std__size_t_size__throw__std__bad_alloc_                                                                    73 // void *operator new__(std::size_t size) throw (std::bad_alloc)
+#define API_ID_void_operator_delete_void__ptr__throw__                                                                                          74 // void operator delete(void *ptr) throw()
+#define API_ID_void_operator_delete___void__ptr__throw__                                                                                        75 // void operator delete__(void *ptr) throw()
+#define API_ID_void__operator_new_std__size_t_size__const_std__nothrow_t__nothrow__throw__                                                      76 // void *operator new(std::size_t size, const std::nothrow_t_ nothrow) throw()
+#define API_ID_void__operator_new___std__size_t_size__const_std__nothrow_t__nothrow__throw__                                                    77 // void *operator new__(std::size_t size, const std::nothrow_t_ nothrow) throw()
+#define API_ID_void_operator_delete_void__ptr__const_std__nothrow_t__nothrow__throw__                                                           78 // void operator delete(void *ptr, const std::nothrow_t_ nothrow) throw()
+#define API_ID_void_operator_delete___void__ptr__const_std__nothrow_t__nothrow__throw__                                                         79 // void operator delete__(void *ptr, const std::nothrow_t_ nothrow) throw()
+
+#define API_ID_memset                                                                                                                           80 // memset
+#define API_ID_memcmp                                                                                                                           81 // memcmp
+#define API_ID_memcpy                                                                                                                           82 // memcpy
+
+#define API_ID__dalc_app_create                                                                                                                 83 // _dalc_app_create
+#define API_ID__dalc_app_terminate                                                                                                              84 // _dalc_app_terminate
+#define API_ID__dalc_app_pause                                                                                                                  85 // _dalc_app_pause
+#define API_ID__dalc_app_resume                                                                                                                 86 // _dalc_app_resume
+#define API_ID__dalc_app_service                                                                                                                87 // _dalc_app_service
+
+#define API_ID__da_cleanup_handler                                                                                                              88 // _da_cleanup_handler
+#define API_ID__da_ThreadProc                                                                                                                   89 // _da_ThreadProc
+#define API_ID_pthread_create                                                                                                                   90 // pthread_create
+#define API_ID_pthread_join                                                                                                                     91 // pthread_join
+#define API_ID_pthread_exit                                                                                                                     92 // pthread_exit
+#define API_ID_pthread_cancel                                                                                                                   93 // pthread_cancel
+#define API_ID_pthread_detach                                                                                                                   94 // pthread_detach
+#define API_ID_pthread_self                                                                                                                     95 // pthread_self
+#define API_ID_pthread_equal                                                                                                                    96 // pthread_equal
+#define API_ID_pthread_setcancelstate                                                                                                           97 // pthread_setcancelstate
+#define API_ID_pthread_setcanceltype                                                                                                            98 // pthread_setcanceltype
+#define API_ID_pthread_attr_init                                                                                                                99 // pthread_attr_init
+#define API_ID_pthread_attr_destroy                                                                                                             100 // pthread_attr_destroy
+#define API_ID_pthread_attr_getdetachstate                                                                                                      101 // pthread_attr_getdetachstate
+#define API_ID_pthread_attr_setdetachstate                                                                                                      102 // pthread_attr_setdetachstate
+#define API_ID_pthread_attr_getstacksize                                                                                                        103 // pthread_attr_getstacksize
+#define API_ID_pthread_attr_setstacksize                                                                                                        104 // pthread_attr_setstacksize
+#define API_ID_pthread_attr_getstackaddr                                                                                                        105 // pthread_attr_getstackaddr
+#define API_ID_pthread_attr_setstackaddr                                                                                                        106 // pthread_attr_setstackaddr
+#define API_ID_pthread_attr_getinheritsched                                                                                                     107 // pthread_attr_getinheritsched
+#define API_ID_pthread_attr_setinheritsched                                                                                                     108 // pthread_attr_setinheritsched
+#define API_ID_pthread_attr_getschedparam                                                                                                       109 // pthread_attr_getschedparam
+#define API_ID_pthread_attr_setschedparam                                                                                                       110 // pthread_attr_setschedparam
+#define API_ID_pthread_attr_getschedpolicy                                                                                                      111 // pthread_attr_getschedpolicy
+#define API_ID_pthread_attr_setschedpolicy                                                                                                      112 // pthread_attr_setschedpolicy
+#define API_ID_pthread_attr_getguardsize                                                                                                        113 // pthread_attr_getguardsize
+#define API_ID_pthread_attr_setguardsize                                                                                                        114 // pthread_attr_setguardsize
+#define API_ID_pthread_attr_getscope                                                                                                            115 // pthread_attr_getscope
+#define API_ID_pthread_attr_setscope                                                                                                            116 // pthread_attr_setscope
+#define API_ID_pthread_attr_getstack                                                                                                            117 // pthread_attr_getstack
+#define API_ID_pthread_attr_setstack                                                                                                            118 // pthread_attr_setstack
+
+#define API_ID_pthread_mutex_init                                                                                                               119 // pthread_mutex_init
+#define API_ID_pthread_mutex_destroy                                                                                                            120 // pthread_mutex_destroy
+#define API_ID_real_pthread_mutex_lock                                                                                                          121 // real_pthread_mutex_lock
+#define API_ID_pthread_mutex_lock                                                                                                               122 // pthread_mutex_lock
+#define API_ID_pthread_mutex_timedlock                                                                                                          123 // pthread_mutex_timedlock
+#define API_ID_pthread_mutex_trylock                                                                                                            124 // pthread_mutex_trylock
+#define API_ID_real_pthread_mutex_unlock                                                                                                        125 // real_pthread_mutex_unlock
+#define API_ID_pthread_mutex_unlock                                                                                                             126 // pthread_mutex_unlock
+#define API_ID_pthread_mutexattr_init                                                                                                           127 // pthread_mutexattr_init
+#define API_ID_pthread_mutexattr_destroy                                                                                                        128 // pthread_mutexattr_destroy
+#define API_ID_pthread_mutexattr_getprioceiling                                                                                                 129 // pthread_mutexattr_getprioceiling
+#define API_ID_pthread_mutexattr_setprioceiling                                                                                                 130 // pthread_mutexattr_setprioceiling
+#define API_ID_pthread_mutexattr_getprotocol                                                                                                    131 // pthread_mutexattr_getprotocol
+#define API_ID_pthread_mutexattr_setprotocol                                                                                                    132 // pthread_mutexattr_setprotocol
+#define API_ID_pthread_mutexattr_getpshared                                                                                                     133 // pthread_mutexattr_getpshared
+#define API_ID_pthread_mutexattr_setpshared                                                                                                     134 // pthread_mutexattr_setpshared
+#define API_ID_pthread_mutexattr_gettype                                                                                                        135 // pthread_mutexattr_gettype
+#define API_ID_pthread_mutexattr_settype                                                                                                        136 // pthread_mutexattr_settype
+#define API_ID_pthread_cond_init                                                                                                                137 // pthread_cond_init
+#define API_ID_pthread_cond_destroy                                                                                                             138 // pthread_cond_destroy
+#define API_ID_pthread_cond_wait                                                                                                                139 // pthread_cond_wait
+#define API_ID_pthread_cond_timedwait                                                                                                           140 // pthread_cond_timedwait
+#define API_ID_pthread_cond_signal                                                                                                              141 // pthread_cond_signal
+#define API_ID_pthread_cond_broadcast                                                                                                           142 // pthread_cond_broadcast
+
+#define API_ID_open                                                                                                                             143 // open
+#define API_ID_openat                                                                                                                           144 // openat
+#define API_ID_creat                                                                                                                            145 // creat
+#define API_ID_close                                                                                                                            146 // close
+#define API_ID_access                                                                                                                           147 // access
+#define API_ID_faccessat                                                                                                                        148 // faccessat
+#define API_ID_lseek                                                                                                                            149 // lseek
+#define API_ID_fsync                                                                                                                            150 // fsync
+#define API_ID_fdatasync                                                                                                                        151 // fdatasync
+#define API_ID_truncate                                                                                                                         152 // truncate
+#define API_ID_ftruncate                                                                                                                        153 // ftruncate
+#define API_ID_mkfifo                                                                                                                           154 // mkfifo
+#define API_ID_mkfifoat                                                                                                                         155 // mkfifoat
+#define API_ID_mknod                                                                                                                            156 // mknod
+#define API_ID_mknodat                                                                                                                          157 // mknodat
+#define API_ID_chown                                                                                                                            158 // chown
+#define API_ID_fchownat                                                                                                                         159 // fchownat
+#define API_ID_fchown                                                                                                                           160 // fchown
+#define API_ID_lchown                                                                                                                           161 // lchown
+#define API_ID_lockf                                                                                                                            162 // lockf
+#define API_ID_chmod                                                                                                                            163 // chmod
+#define API_ID_fchmodat                                                                                                                         164 // fchmodat
+#define API_ID_fchmod                                                                                                                           165 // fchmod
+#define API_ID_pread                                                                                                                            166 // pread
+#define API_ID_read                                                                                                                             167 // read
+#define API_ID_pwrite                                                                                                                           168 // pwrite
+#define API_ID_write                                                                                                                            169 // write
+#define API_ID_readv                                                                                                                            170 // readv
+#define API_ID_rmdir                                                                                                                            171 // rmdir
+#define API_ID_fchdir                                                                                                                           172 // fchdir
+#define API_ID_chdir                                                                                                                            173 // chdir
+#define API_ID_link                                                                                                                             174 // link
+#define API_ID_linkat                                                                                                                           175 // linkat
+#define API_ID_unlink                                                                                                                           176 // unlink
+#define API_ID_unlinkat                                                                                                                         177 // unlinkat
+#define API_ID_symlink                                                                                                                          178 // symlink
+#define API_ID_symlinkat                                                                                                                        179 // symlinkat
+#define API_ID_readlink                                                                                                                         180 // readlink
+#define API_ID_readlinkat                                                                                                                       181 // readlinkat
+#define API_ID_mkdir                                                                                                                            182 // mkdir
+#define API_ID_mkdirat                                                                                                                          183 // mkdirat
+#define API_ID_closedir                                                                                                                         184 // closedir
+#define API_ID_fdopendir                                                                                                                        185 // fdopendir
+#define API_ID_opendir                                                                                                                          186 // opendir
+#define API_ID_readdir                                                                                                                          187 // readdir
+#define API_ID_readdir_r                                                                                                                        188 // readdir_r
+#define API_ID_rewinddir                                                                                                                        189 // rewinddir
+#define API_ID_seekdir                                                                                                                          190 // seekdir
+#define API_ID_telldir                                                                                                                          191 // telldir
+#define API_ID_fcntl                                                                                                                            192 // fcntl
+#define API_ID_dup                                                                                                                              193 // dup
+#define API_ID_dup2                                                                                                                             194 // dup2
+#define API_ID_fstatat                                                                                                                          195 // fstatat
+#define API_ID_lstat                                                                                                                            196 // lstat
+#define API_ID_futimens                                                                                                                         197 // futimens
+#define API_ID_utimensat                                                                                                                        198 // utimensat
+#define API_ID_utimes                                                                                                                           199 // utimes
+#define API_ID_utime                                                                                                                            200 // utime
+
+#define API_ID_clearerr                                                                                                                         201 // clearerr
+#define API_ID_fclose                                                                                                                           202 // fclose
+#define API_ID_fdopen                                                                                                                           203 // fdopen
+#define API_ID_feof                                                                                                                             204 // feof
+#define API_ID_ferror                                                                                                                           205 // ferror
+#define API_ID_fflush                                                                                                                           206 // fflush
+#define API_ID_fgetc                                                                                                                            207 // fgetc
+#define API_ID_fgetpos                                                                                                                          208 // fgetpos
+#define API_ID_fileno                                                                                                                           209 // fileno
+#define API_ID_fopen                                                                                                                            210 // fopen
+#define API_ID_fprintf                                                                                                                          211 // fprintf
+#define API_ID_fputc                                                                                                                            212 // fputc
+#define API_ID_fputs                                                                                                                            213 // fputs
+#define API_ID_fread                                                                                                                            214 // fread
+#define API_ID_freopen                                                                                                                          215 // freopen
+#define API_ID_fscanf                                                                                                                           216 // fscanf
+#define API_ID_fseek                                                                                                                            217 // fseek
+#define API_ID_fsetpos                                                                                                                          218 // fsetpos
+#define API_ID_fwrite                                                                                                                           219 // fwrite
+#define API_ID_getc                                                                                                                             220 // getc
+#define API_ID_getchar                                                                                                                          221 // getchar
+#define API_ID_gets                                                                                                                             222 // gets
+#define API_ID_int                                                                                                                              223 // int
+#define API_ID_perror                                                                                                                           224 // perror
+#define API_ID_printf                                                                                                                           225 // printf
+#define API_ID_putc                                                                                                                             226 // putc
+#define API_ID_putchar                                                                                                                          227 // putchar
+#define API_ID_puts                                                                                                                             228 // puts
+#define API_ID_remove                                                                                                                           229 // remove
+#define API_ID_rename                                                                                                                           230 // rename
+#define API_ID_rewind                                                                                                                           231 // rewind
+#define API_ID_scanf                                                                                                                            232 // scanf
+#define API_ID_setbuf                                                                                                                           233 // setbuf
+#define API_ID_setbuffer                                                                                                                        234 // setbuffer
+#define API_ID_setlinebuf                                                                                                                       235 // setlinebuf
+#define API_ID_setvbuf                                                                                                                          236 // setvbuf
+#define API_ID_tmpnam                                                                                                                           237 // tmpnam
+#define API_ID_ungetc                                                                                                                           238 // ungetc
+#define API_ID_vfprintf                                                                                                                         239 // vfprintf
+#define API_ID_vfscanf                                                                                                                          240 // vfscanf
+
+#define API_ID_void_SceneManagerEventListener__OnSceneTransitionCompleted_const_SceneId__previousSceneId__const_SceneId__currentSceneId_        241 // void SceneManagerEventListener::OnSceneTransitionCompleted(const SceneId _previousSceneId, const SceneId _currentSceneId)
+
+#define API_ID_void_GestureEventListener__OnCustomGestureCanceled__TouchGestureDetector__gestureDetector_                                       242 // void GestureEventListener::OnCustomGestureCanceled (TouchGestureDetector _gestureDetector)
+#define API_ID_void_GestureEventListener__OnCustomGestureChanged__TouchGestureDetector__gestureDetector_                                        243 // void GestureEventListener::OnCustomGestureChanged (TouchGestureDetector _gestureDetector)
+#define API_ID_void_GestureEventListener__OnCustomGestureFinished__TouchGestureDetector__gestureDetector_                                       244 // void GestureEventListener::OnCustomGestureFinished (TouchGestureDetector _gestureDetector)
+#define API_ID_void_GestureEventListener__OnCustomGestureStarted__TouchGestureDetector__gestureDetector_                                        245 // void GestureEventListener::OnCustomGestureStarted (TouchGestureDetector _gestureDetector)
+#define API_ID_void_GestureEventListener__OnFlickGestureCanceled__TouchFlickGestureDetector__gestureDetector_                                   246 // void GestureEventListener::OnFlickGestureCanceled (TouchFlickGestureDetector _gestureDetector)
+#define API_ID_void_GestureEventListener__OnFlickGestureDetected__TouchFlickGestureDetector__gestureDetector_                                   247 // void GestureEventListener::OnFlickGestureDetected (TouchFlickGestureDetector _gestureDetector)
+#define API_ID_void_GestureEventListener__OnLongPressGestureCanceled__TouchLongPressGestureDetector__gestureDetector_                           248 // void GestureEventListener::OnLongPressGestureCanceled (TouchLongPressGestureDetector _gestureDetector)
+#define API_ID_void_GestureEventListener__OnLongPressGestureDetected__TouchLongPressGestureDetector__gestureDetector_                           249 // void GestureEventListener::OnLongPressGestureDetected (TouchLongPressGestureDetector _gestureDetector)
+#define API_ID_void_GestureEventListener__OnPanningGestureCanceled__TouchPanningGestureDetector__gestureDetector_                               250 // void GestureEventListener::OnPanningGestureCanceled (TouchPanningGestureDetector _gestureDetector)
+#define API_ID_void_GestureEventListener__OnPanningGestureChanged__TouchPanningGestureDetector__gestureDetector_                                251 // void GestureEventListener::OnPanningGestureChanged (TouchPanningGestureDetector _gestureDetector)
+#define API_ID_void_GestureEventListener__OnPanningGestureFinished__TouchPanningGestureDetector__gestureDetector_                               252 // void GestureEventListener::OnPanningGestureFinished (TouchPanningGestureDetector _gestureDetector)
+#define API_ID_void_GestureEventListener__OnPanningGestureStarted__TouchPanningGestureDetector__gestureDetector_                                253 // void GestureEventListener::OnPanningGestureStarted (TouchPanningGestureDetector _gestureDetector)
+#define API_ID_void_GestureEventListener__OnPinchGestureCanceled__TouchPinchGestureDetector__gestureDetector_                                   254 // void GestureEventListener::OnPinchGestureCanceled (TouchPinchGestureDetector _gestureDetector)
+#define API_ID_void_GestureEventListener__OnPinchGestureChanged__TouchPinchGestureDetector__gestureDetector_                                    255 // void GestureEventListener::OnPinchGestureChanged (TouchPinchGestureDetector _gestureDetector)
+#define API_ID_void_GestureEventListener__OnPinchGestureFinished__TouchPinchGestureDetector__gestureDetector_                                   256 // void GestureEventListener::OnPinchGestureFinished (TouchPinchGestureDetector _gestureDetector)
+#define API_ID_void_GestureEventListener__OnPinchGestureStarted__TouchPinchGestureDetector__gestureDetector_                                    257 // void GestureEventListener::OnPinchGestureStarted (TouchPinchGestureDetector _gestureDetector)
+#define API_ID_void_GestureEventListener__OnRotationGestureCanceled__TouchRotationGestureDetector__gestureDetector_                             258 // void GestureEventListener::OnRotationGestureCanceled (TouchRotationGestureDetector _gestureDetector)
+#define API_ID_void_GestureEventListener__OnRotationGestureChanged__TouchRotationGestureDetector__gestureDetector_                              259 // void GestureEventListener::OnRotationGestureChanged (TouchRotationGestureDetector _gestureDetector)
+#define API_ID_void_GestureEventListener__OnRotationGestureFinished__TouchRotationGestureDetector__gestureDetector_                             260 // void GestureEventListener::OnRotationGestureFinished (TouchRotationGestureDetector _gestureDetector)
+#define API_ID_void_GestureEventListener__OnRotationGestureStarted__TouchRotationGestureDetector__gestureDetector_                              261 // void GestureEventListener::OnRotationGestureStarted (TouchRotationGestureDetector _gestureDetector)
+#define API_ID_void_GestureEventListener__OnTapGestureCanceled__TouchTapGestureDetector__gestureDetector_                                       262 // void GestureEventListener::OnTapGestureCanceled (TouchTapGestureDetector _gestureDetector)
+#define API_ID_void_GestureEventListener__OnTapGestureDetected__TouchTapGestureDetector__gestureDetector_                                       263 // void GestureEventListener::OnTapGestureDetected (TouchTapGestureDetector _gestureDetector)
+
+#define API_ID_on_orientation_changed                                                                                                           264 // on_orientation_changed
+
+#define API_ID_ecore_event_evas_key_down                                                                                                        265 // ecore_event_evas_key_down
+#define API_ID_ecore_event_evas_key_up                                                                                                          266 // ecore_event_evas_key_up
+#define API_ID_ecore_event_evas_mouse_button_down                                                                                               267 // ecore_event_evas_mouse_button_down
+#define API_ID_ecore_event_evas_mouse_button_up                                                                                                 268 // ecore_event_evas_mouse_button_up
+#define API_ID_ecore_event_evas_mouse_move                                                                                                      269 // ecore_event_evas_mouse_move
+
+#define API_ID_accept                                                                                                                           270 // accept
+#define API_ID_accept4                                                                                                                          271 // accept4
+#define API_ID_bind                                                                                                                             272 // bind
+#define API_ID_gai_strerror                                                                                                                     273 // gai_strerror
+#define API_ID_hstrerror                                                                                                                        274 // hstrerror
+#define API_ID_inet_ntop                                                                                                                        275 // inet_ntop
+#define API_ID_connect                                                                                                                          276 // connect
+#define API_ID_endhostent                                                                                                                       277 // endhostent
+#define API_ID_endnetent                                                                                                                        278 // endnetent
+#define API_ID_endprotoent                                                                                                                      279 // endprotoent
+#define API_ID_endservent                                                                                                                       280 // endservent
+#define API_ID_freeaddrinfo                                                                                                                     281 // freeaddrinfo
+#define API_ID_freeifaddrs                                                                                                                      282 // freeifaddrs
+#define API_ID_gai_cancel                                                                                                                       283 // gai_cancel
+#define API_ID_gai_error                                                                                                                        284 // gai_error
+#define API_ID_gai_suspend                                                                                                                      285 // gai_suspend
+#define API_ID_getaddrinfo                                                                                                                      286 // getaddrinfo
+#define API_ID_getaddrinfo_a                                                                                                                    287 // getaddrinfo_a
+#define API_ID_getdomainname                                                                                                                    288 // getdomainname
+#define API_ID_gethostbyaddr_r                                                                                                                  289 // gethostbyaddr_r
+#define API_ID_gethostbyname2_r                                                                                                                 290 // gethostbyname2_r
+#define API_ID_gethostbyname_r                                                                                                                  291 // gethostbyname_r
+#define API_ID_gethostent_r                                                                                                                     292 // gethostent_r
+#define API_ID_gethostname                                                                                                                      293 // gethostname
+#define API_ID_getifaddrs                                                                                                                       294 // getifaddrs
+#define API_ID_getnameinfo                                                                                                                      295 // getnameinfo
+#define API_ID_getnetbyaddr_r                                                                                                                   296 // getnetbyaddr_r
+#define API_ID_getnetbyname_r                                                                                                                   297 // getnetbyname_r
+#define API_ID_getnetent_r                                                                                                                      298 // getnetent_r
+#define API_ID_getpeername                                                                                                                      299 // getpeername
+#define API_ID_getprotobyname_r                                                                                                                 300 // getprotobyname_r
+#define API_ID_getprotobynumber_r                                                                                                               301 // getprotobynumber_r
+#define API_ID_getprotoent_r                                                                                                                    302 // getprotoent_r
+#define API_ID_getservbyname_r                                                                                                                  303 // getservbyname_r
+#define API_ID_getservbyport_r                                                                                                                  304 // getservbyport_r
+#define API_ID_getservent_r                                                                                                                     305 // getservent_r
+#define API_ID_getsockname                                                                                                                      306 // getsockname
+#define API_ID_getsockopt                                                                                                                       307 // getsockopt
+#define API_ID_herror                                                                                                                           308 // herror
+#define API_ID_gethostbyaddr                                                                                                                    309 // gethostbyaddr
+#define API_ID_gethostbyname                                                                                                                    310 // gethostbyname
+#define API_ID_gethostbyname2                                                                                                                   311 // gethostbyname2
+#define API_ID_gethostent                                                                                                                       312 // gethostent
+#define API_ID_htonl                                                                                                                            313 // htonl
+#define API_ID_htons                                                                                                                            314 // htons
+#define API_ID_if_freenameindex                                                                                                                 315 // if_freenameindex 
+#define API_ID_if_indextoname                                                                                                                   316 // if_indextoname 
+#define API_ID_if_nameindex                                                                                                                     317 // if_nameindex
+#define API_ID_inet_makeaddr                                                                                                                    318 // inet_makeaddr
+#define API_ID_inet_addr                                                                                                                        319 // inet_addr
+#define API_ID_inet_aton                                                                                                                        320 // inet_aton
+#define API_ID_inet_lnaof                                                                                                                       321 // inet_lnaof
+#define API_ID_inet_netof                                                                                                                       322 // inet_netof
+#define API_ID_inet_network                                                                                                                     323 // inet_network
+#define API_ID_inet_ntoa                                                                                                                        324 // inet_ntoa
+#define API_ID_inet_pton                                                                                                                        325 // inet_pton
+#define API_ID_if_nametoindex                                                                                                                   326 // if_nametoindex
+#define API_ID_le32toh                                                                                                                          327 // le32toh
+#define API_ID_le64toh                                                                                                                          328 // le64toh
+#define API_ID_listen                                                                                                                           329 // listen
+#define API_ID_getnetbyaddr                                                                                                                     330 // getnetbyaddr
+#define API_ID_getnetbyname                                                                                                                     331 // getnetbyname
+#define API_ID_getnetent                                                                                                                        332 // getnetent
+#define API_ID_ntohl                                                                                                                            333 // ntohl
+#define API_ID_ntohs                                                                                                                            334 // ntohs
+#define API_ID_getprotobyname                                                                                                                   335 // getprotobyname
+#define API_ID_getprotobynumber                                                                                                                 336 // getprotobynumber
+#define API_ID_getprotoent                                                                                                                      337 // getprotoent
+#define API_ID_pselect                                                                                                                          338 // pselect
+#define API_ID_recv                                                                                                                             339 // recv
+#define API_ID_recvfrom                                                                                                                         340 // recvfrom
+#define API_ID_recvmsg                                                                                                                          341 // recvmsg
+#define API_ID_select                                                                                                                           342 // select
+#define API_ID_send                                                                                                                             343 // send
+#define API_ID_sendmsg                                                                                                                          344 // sendmsg
+#define API_ID_sendto                                                                                                                           345 // sendto
+#define API_ID_getservbyname                                                                                                                    346 // getservbyname
+#define API_ID_getservbyport                                                                                                                    347 // getservbyport
+#define API_ID_getservent                                                                                                                       348 // getservent
+#define API_ID_setdomainname                                                                                                                    349 // setdomainname
+#define API_ID_sethostent                                                                                                                       350 // sethostent
+#define API_ID_sethostname                                                                                                                      351 // sethostname
+#define API_ID_setnetent                                                                                                                        352 // setnetent
+#define API_ID_setprotoent                                                                                                                      353 // setprotoent
+#define API_ID_setservent                                                                                                                       354 // setservent
+#define API_ID_setsockopt                                                                                                                       355 // setsockopt
+#define API_ID_shutdown                                                                                                                         356 // shutdown
+#define API_ID_socket                                                                                                                           357 // socket
+#define API_ID_socketpair                                                                                                                       358 // socketpair
+
+#define API_ID_Thread__Thread__GetCurrentThread_void_                                                                                           359 // Thread* Thread::GetCurrentThread(void)
+
+#define API_ID_tmpfile                                                                                                                          360 // tmpfile
+#define API_ID_ftell                                                                                                                            361 // ftell
+
+
+#endif /* __API_ID_MAPPING__ */
index 21f090c..b1d6c38 100644 (file)
@@ -51,6 +51,7 @@
 
 #include <sys/socket.h>
 #include "dahelper.h"
+#include "api_id_mapping.h"
 
 #define MSG_PROBE_MEMORY 0x3001
 #define MSG_PROBE_UICONTROL 0x3002
index 0c9fea8..5ce0d88 100755 (executable)
@@ -55,20 +55,20 @@ extern "C"{
 #define                VT_MODE_T               16
 #define                VT_DEV_T                17
 
-#define                LC_MEMORY               1
-#define                LC_UICREATE             2
-#define                LC_UIEVENT              3
-#define                LC_USERFUNC             4
-#define                LC_RESOURCE             5
-#define                LC_LIFECYCLE    6
-#define                LC_SNAPSHOT             7
-#define                LC_SCENE                8
-#define                LC_DEVICE               9
-#define                LC_ALLOCMEM             10
-#define                LC_SAMPLE               11
-#define                LC_THREAD               12
-#define                LC_CUSTOM               13
-#define                LC_SYNC                 14
+/* #define             LC_MEMORY               1 */
+/* #define             LC_UICREATE             2 */
+/* #define             LC_UIEVENT              3 */
+/* #define             LC_USERFUNC             4 */
+/* #define             LC_RESOURCE             5 */
+/* #define             LC_LIFECYCLE    6 */
+/* #define             LC_SNAPSHOT             7 */
+/* #define             LC_SCENE                8 */
+/* #define             LC_DEVICE               9 */
+/* #define             LC_ALLOCMEM             10 */
+/* #define             LC_SAMPLE               11 */
+/* #define             LC_THREAD               12 */
+/* #define             LC_CUSTOM               13 */
+/* #define             LC_SYNC                 14 */
 
 #define                FD_FILE         0
 #define                FD_SOCKET       1
index d21d7c8..93487b5 100755 (executable)
@@ -185,7 +185,7 @@ result File::Construct(const Tizen::Base::String& filePath,
                 WcharToChar(temp_mode,openMode.GetPointer()); 
                 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, LC_RESOURCE,
+               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, API_ID_result_File__Construct_const_Tizen__Base__String__filePath__const_Tizen__Base__String__openMode__bool_createParentDirectories_,
                                  "ssd", temp_path, temp_mode, createParentDirectories);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_RESOURCE(0, (unsigned int)this, FD_FILE, FD_API_OPEN, 0, temp_path);
@@ -385,7 +385,9 @@ result File::Construct(const Tizen::Base::String& filePath,
                 WcharToChar(temp_mode,openMode.GetPointer());
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, LC_RESOURCE, "ss", temp_path, temp_mode);
+               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
+                                 API_ID_result_File__Construct_const_Tizen__Base__String__filePath__const_Tizen__Base__String__openMode_,
+                                 "ss", temp_path, temp_mode);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_RESOURCE(0, (unsigned int)this, FD_FILE, FD_API_OPEN, 0, temp_path);
                FLUSH_LOCAL_BUF();
@@ -508,7 +510,9 @@ result File::Construct(const Tizen::Base::String& filePath,
                 WcharToChar(temp,filePath.GetPointer());
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, LC_RESOURCE, "sp", temp, pOpenMode);
+               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
+                                 API_ID_result_File__Construct_const_Tizen__Base__String__filePath__const_char__pOpenMode_,
+                                 "sp", temp, pOpenMode);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_RESOURCE(0, (unsigned int)this, FD_FILE, FD_API_OPEN, 0, temp);
                FLUSH_LOCAL_BUF();
@@ -559,7 +563,9 @@ result File::Construct(const Tizen::Base::String& filePath,
                 WcharToChar(temp,filePath.GetPointer());
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, LC_RESOURCE, "sp", temp, pOpenMode);
+               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
+                                 API_ID_result_File__Construct_const_Tizen__Base__String__filePath__const_char__pOpenMode__const_Tizen__Base__ByteBuffer__secretKey_,
+                                 "sp", temp, pOpenMode);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_RESOURCE(0, (unsigned int)this, FD_FILE, FD_API_OPEN, 0, temp);
                FLUSH_LOCAL_BUF();
@@ -605,7 +611,9 @@ result File::Flush(void) {
                 WcharToChar(temp,this->GetName().GetPointer());
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, LC_RESOURCE, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
+                                 API_ID_result_File__Flush_void_,
+                                 "", 0);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_RESOURCE(0, (unsigned int)this, FD_FILE, FD_API_OTHER, 0, temp);
                FLUSH_LOCAL_BUF();
@@ -652,7 +660,9 @@ Tizen::Base::String File::GetName(void) const{
                 WcharToChar(temp,ret.GetPointer());
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, LC_RESOURCE, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
+                                 API_ID_Tizen__Base__String_File__GetName_void__const,
+                                 "", 0);
                PACK_COMMON_END(ret.GetPointer(), res, blockresult);
                PACK_RESOURCE(0, (unsigned int)this, FD_FILE, FD_API_OTHER, 0, temp);
                FLUSH_LOCAL_BUF();
@@ -701,7 +711,9 @@ result File::Read(Tizen::Base::String& buffer) {
                 nRead = buffer.GetLength();
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, LC_RESOURCE, "x", (unsigned int)&buffer);
+               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
+                                 API_ID_result_File__Read_Tizen__Base__String__buffer_,
+                                 "x", (unsigned int)&buffer);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_RESOURCE(nRead, (unsigned int)this, FD_FILE, FD_API_READ, 0, temp);
                FLUSH_LOCAL_BUF();
@@ -750,7 +762,9 @@ result File::Read(Tizen::Base::ByteBuffer& buffer) {
                 buffer.GetInt(nRead);
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, LC_RESOURCE, "x", (unsigned int)&buffer);
+               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
+                                 API_ID_result_File__Read_Tizen__Base__ByteBuffer__buffer_,
+                                 "x", (unsigned int)&buffer);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_RESOURCE(nRead, (unsigned int)this, FD_FILE, FD_API_READ, 0, temp);
                FLUSH_LOCAL_BUF();
@@ -800,7 +814,9 @@ int File::Read(void *buffer, int length) {
                 nRead = Tell() - nRead;
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, LC_RESOURCE, "xd", (unsigned int)buffer, length);
+               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
+                                 API_ID_int_File__Read_void__buffer__int_length_,
+                                 "xd", (unsigned int)buffer, length);
                PACK_COMMON_END(ret, res, blockresult);
                PACK_RESOURCE(nRead, (unsigned int)this, FD_FILE, FD_API_READ, 0, temp);
                FLUSH_LOCAL_BUF();
@@ -859,7 +875,9 @@ result File::Seek(FileSeekPosition position, long offset) {
                 WcharToChar(temp,this->GetName().GetPointer());
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, LC_RESOURCE, "sx", temp_pos, offset);
+               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
+                                 API_ID_result_File__Seek_FileSeekPosition_position__long_offset_,
+                                 "sx", temp_pos, offset);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_RESOURCE(0, (unsigned int)this, FD_FILE, FD_API_OTHER, 0, temp);
                FLUSH_LOCAL_BUF();
@@ -907,7 +925,9 @@ int File::Tell(void) const {
                 WcharToChar(temp,this->GetName().GetPointer());
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, LC_RESOURCE, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
+                                 API_ID_int_File__Tell_void__const,
+                                 "", 0);
                PACK_COMMON_END(ret, res, blockresult);
                PACK_RESOURCE(0, (unsigned int)this, FD_FILE, FD_API_OTHER, 0, temp);
                FLUSH_LOCAL_BUF();
@@ -953,7 +973,9 @@ result File::Truncate(int length) {
                 WcharToChar(temp,this->GetName().GetPointer());
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, LC_RESOURCE, "d", length);
+               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
+                                 API_ID_result_File__Truncate_int_length_,
+                                 "d", length);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_RESOURCE(0, (unsigned int)this, FD_FILE, FD_API_OTHER, 0, temp);
                FLUSH_LOCAL_BUF();
@@ -1002,7 +1024,9 @@ result File::Write(const void *buffer, int length) {
                 nWritten = Tell() - nWritten;
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, LC_RESOURCE, "xd", (unsigned int)buffer, length);
+               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
+                                 API_ID_result_File__Write_const_void__buffer__int_length_,
+                                 "xd", (unsigned int)buffer, length);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_RESOURCE(nWritten, (unsigned int)this, FD_FILE, FD_API_WRITE, 0, temp);
                FLUSH_LOCAL_BUF();
@@ -1051,7 +1075,9 @@ result File::Write(const Tizen::Base::ByteBuffer& buffer) {
                 nWritten = Tell() - nWritten;
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, LC_RESOURCE, "x", (unsigned int)&buffer);
+               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
+                                 API_ID_result_File__Write_const_Tizen__Base__ByteBuffer__buffer_,
+                                 "x", (unsigned int)&buffer);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_RESOURCE(nWritten, (unsigned int)this, FD_FILE, FD_API_WRITE, 0, temp);
                FLUSH_LOCAL_BUF();
@@ -1102,7 +1128,9 @@ result File::Write(const Tizen::Base::String& buffer) {
                 nWritten = Tell() - nWritten;
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, LC_RESOURCE, "s", temp_buf);
+               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
+                                 API_ID_result_File__Write_const_Tizen__Base__String__buffer_,
+                                 "s", temp_buf);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_RESOURCE(nWritten, (unsigned int)this, FD_FILE, FD_API_WRITE, 0, temp_path);
                FLUSH_LOCAL_BUF();
@@ -1144,7 +1172,9 @@ File::~File(void) {
        if(postBlockBegin(blockresult)) {
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, LC_RESOURCE, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
+                                 API_ID_File___File_void_,
+                                 "", 0);
                PACK_COMMON_END(0, 0, blockresult);
                PACK_RESOURCE(0, (unsigned int)this, FD_FILE, FD_API_CLOSE, 0, "");
                FLUSH_LOCAL_BUF();
index c1d694d..0264988 100755 (executable)
@@ -97,7 +97,8 @@ result UiApp::Execute(UiAppInstanceFactory pUiAppFactory,
        probeBlockStart();
 
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_LIFECYCLE, LC_LIFECYCLE,
+       PACK_COMMON_BEGIN(MSG_PROBE_LIFECYCLE,
+                         API_ID_result_UiApp__Execute_UiAppInstanceFactory_pUiAppFactory__const_IList__pArguments_,
                          "pp", pUiAppFactory, pArguments);
        PACK_COMMON_END(ret, 0, 0);
        FLUSH_LOCAL_BUF();
@@ -119,7 +120,9 @@ void _AppImpl::OnTerminate(void* user_data)
        setProbePoint(&probeInfo);
 
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_LIFECYCLE, LC_LIFECYCLE, "p", user_data);
+       PACK_COMMON_BEGIN(MSG_PROBE_LIFECYCLE,
+                         API_ID_void__AppImpl__OnTerminate_void__user_data_,
+                         "p", user_data);
        PACK_COMMON_END(0, 0, 0);
        FLUSH_LOCAL_BUF();
 
@@ -157,7 +160,9 @@ void _AppInfo::SetAppState(AppState appState)
                setProbePoint(&probeInfo);
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_LIFECYCLE, LC_LIFECYCLE, "p", appState);
+               PACK_COMMON_BEGIN(MSG_PROBE_LIFECYCLE,
+                                 API_ID_void__AppInfo__SetAppState_AppState_appState_,
+                                 "p", appState);
                PACK_COMMON_END(0, 0, 0);
                FLUSH_LOCAL_BUF();
        }
@@ -179,7 +184,9 @@ void _UiAppImpl::OnBackground(void)
        setProbePoint(&probeInfo);
 
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_LIFECYCLE, LC_LIFECYCLE, "", 0);
+       PACK_COMMON_BEGIN(MSG_PROBE_LIFECYCLE,
+                         API_ID_void__UiAppImpl__OnBackground_void_,
+                         "", 0);
        PACK_COMMON_END(0, 0, 0);
        FLUSH_LOCAL_BUF();
 
@@ -200,7 +207,9 @@ void _UiAppImpl::OnForeground(void)
        setProbePoint(&probeInfo);
 
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_LIFECYCLE, LC_LIFECYCLE, "", 0);
+       PACK_COMMON_BEGIN(MSG_PROBE_LIFECYCLE,
+                         API_ID_void__UiAppImpl__OnForeground_void_,
+                         "", 0);
        PACK_COMMON_END(0, 0, 0);
        FLUSH_LOCAL_BUF();
 
index 19072b6..7546ffd 100755 (executable)
@@ -150,7 +150,9 @@ result Mutex::Create(void) {
        if (postBlockBegin(blockresult)) {
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                 API_ID_result_Mutex__Create_void_,
+                                 "", 0);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, SYNC_OSP_MUTEX, SYNC_API_NEW);
                FLUSH_LOCAL_BUF();
@@ -204,7 +206,9 @@ result Mutex::Create(const Tizen::Base::String& name) {
                WcharToChar(temp, name.GetPointer());
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "s", temp);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                 API_ID_result_Mutex__Create_const_Tizen__Base__String__name_,
+                                 "s", temp);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, SYNC_OSP_MUTEX, SYNC_API_NEW);
                FLUSH_LOCAL_BUF();
@@ -255,7 +259,9 @@ result Mutex::Release(void) {
        if (postBlockBegin(blockresult)) {
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                 API_ID_result_Mutex__Release_void_,
+                                 "", 0);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, SYNC_OSP_MUTEX, SYNC_API_RELEASE);
                FLUSH_LOCAL_BUF();
@@ -300,7 +306,9 @@ result Mutex::Acquire(void) {
                setProbePoint(&probeInfo);
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                 API_ID_result_Mutex__Acquire_void_,
+                                 "", 0);
                PACK_COMMON_END(0, 0, blockresult);
                PACK_THREAD((unsigned int) this, SYNC_OSP_MUTEX, SYNC_API_ACQUIRE_WAIT_START);
                FLUSH_LOCAL_BUF();
@@ -314,7 +322,9 @@ result Mutex::Acquire(void) {
                setProbePoint(&probeInfo);
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                 API_ID_result_Mutex__Acquire_void_,
+                                 "", 0);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, SYNC_OSP_MUTEX, SYNC_API_ACQUIRE_WAIT_END);
                FLUSH_LOCAL_BUF();
@@ -365,7 +375,9 @@ result Mutex::TryToAcquire(void) {
        if (postBlockBegin(blockresult)) {
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                 API_ID_result_Mutex__TryToAcquire_void_,
+                                 "", 0);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, SYNC_OSP_MUTEX, SYNC_API_TRY_ACQUIRE);
                FLUSH_LOCAL_BUF();
@@ -417,7 +429,9 @@ result Semaphore::Create(int count) {
        if (postBlockBegin(blockresult)) {
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "d", count);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                 API_ID_result_Semaphore__Create_int_count_,
+                                 "d", count);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, SYNC_OSP_SEMAPHORE, SYNC_API_NEW);
                FLUSH_LOCAL_BUF();
@@ -471,7 +485,9 @@ result Semaphore::Create(const Tizen::Base::String& name, int count) {
                WcharToChar(temp, name.GetPointer());
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "sd", temp, count);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                 API_ID_result_Semaphore__Create_const_Tizen__Base__String__name__int_count_,
+                                 "sd", temp, count);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, SYNC_OSP_SEMAPHORE, SYNC_API_NEW);
                FLUSH_LOCAL_BUF();
@@ -517,7 +533,9 @@ result Semaphore::Acquire(long timeout) {
                setProbePoint(&probeInfo);
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "x", timeout);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                 API_ID_result_Semaphore__Acquire_long_timeout_,
+                                 "x", timeout);
                PACK_COMMON_END(0, 0, blockresult);
                PACK_THREAD((unsigned int) this, SYNC_OSP_SEMAPHORE, SYNC_API_ACQUIRE_WAIT_START);
                FLUSH_LOCAL_BUF();
@@ -531,7 +549,9 @@ result Semaphore::Acquire(long timeout) {
                setProbePoint(&probeInfo);
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "x", timeout);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                 API_ID_result_Semaphore__Acquire_long_timeout_,
+                                 "x", timeout);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, SYNC_OSP_SEMAPHORE, SYNC_API_ACQUIRE_WAIT_END);
                FLUSH_LOCAL_BUF();
@@ -582,7 +602,9 @@ result Semaphore::TryToAcquire(void) {
        if (postBlockBegin(blockresult)) {
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                 API_ID_result_Semaphore__TryToAcquire_void_,
+                                 "", 0);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, SYNC_OSP_SEMAPHORE, SYNC_API_TRY_ACQUIRE);
                FLUSH_LOCAL_BUF();
@@ -633,7 +655,9 @@ result Semaphore::Release(void) {
        if (postBlockBegin(blockresult)) {
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                 API_ID_result_Semaphore__Release_void_,
+                                 "", 0);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, SYNC_OSP_SEMAPHORE, SYNC_API_RELEASE);
                FLUSH_LOCAL_BUF();
@@ -684,7 +708,9 @@ result Monitor::Construct(void) {
        if (postBlockBegin(blockresult)) {
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                 API_ID_result_Monitor__Construct_void_,
+                                 "", 0);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, SYNC_OSP_MONITOR, SYNC_API_NEW);
                FLUSH_LOCAL_BUF();
@@ -729,7 +755,9 @@ result Monitor::Enter(void) {
                setProbePoint(&probeInfo);
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                 API_ID_result_Monitor__Enter_void_,
+                                 "", 0);
                PACK_COMMON_END(0, 0, blockresult);
                PACK_THREAD((unsigned int) this, SYNC_OSP_MONITOR, SYNC_API_ACQUIRE_WAIT_START);
                FLUSH_LOCAL_BUF();
@@ -743,7 +771,9 @@ result Monitor::Enter(void) {
                setProbePoint(&probeInfo);
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                 API_ID_result_Monitor__Enter_void_,
+                                 "", 0);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, SYNC_OSP_MONITOR, SYNC_API_ACQUIRE_WAIT_END);
                FLUSH_LOCAL_BUF();
@@ -794,7 +824,9 @@ result Monitor::Exit(void) {
        if (postBlockBegin(blockresult)) {
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                  API_ID_result_Monitor__Exit_void_,
+                                 "", 0);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, SYNC_OSP_MONITOR, SYNC_API_RELEASE);
                FLUSH_LOCAL_BUF();
@@ -839,7 +871,9 @@ result Monitor::Wait(void) {
                setProbePoint(&probeInfo);
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                 API_ID_result_Monitor__Wait_void_,
+                                 "", 0);
                PACK_COMMON_END(0, 0, blockresult);
                PACK_THREAD((unsigned int) this, SYNC_OSP_MONITOR, SYNC_API_COND_WAIT_START);
                FLUSH_LOCAL_BUF();
@@ -853,7 +887,9 @@ result Monitor::Wait(void) {
                setProbePoint(&probeInfo);
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                 API_ID_result_Monitor__Wait_void_,
+                                 "", 0);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, SYNC_OSP_MONITOR, SYNC_API_COND_WAIT_END);
                FLUSH_LOCAL_BUF();
@@ -904,7 +940,9 @@ result Monitor::Notify(void) {
        if (postBlockBegin(blockresult)) {
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                 API_ID_result_Monitor__Notify_void_,
+                                 "", 0);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, SYNC_OSP_MONITOR, SYNC_API_NOTIFY);
                FLUSH_LOCAL_BUF();
@@ -955,7 +993,9 @@ result Monitor::NotifyAll(void) {
        if (postBlockBegin(blockresult)) {
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                 API_ID_result_Monitor__NotifyAll_void_,
+                                 "", 0);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, SYNC_OSP_MONITOR, SYNC_API_NOTIFY_ALL);
                FLUSH_LOCAL_BUF();
index 7ce6a16..0199607 100755 (executable)
@@ -256,7 +256,9 @@ _ThreadImpl::ThreadProc(void* params) {
                }
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "p", params);
+               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                                 API_ID_void___ThreadImpl__ThreadProc_void__params_,
+                                 "p", params);
                PACK_COMMON_END((unsigned int)pSelf, 0, blockresult);
                PACK_THREAD((unsigned int)pThread, THREAD_OSPTHREAD_WORKER, THREAD_API_INTERNAL_START);
                FLUSH_LOCAL_BUF();
@@ -280,7 +282,9 @@ _ThreadImpl::ThreadProc(void* params) {
                }
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "p", params);
+               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                                 API_ID_void___ThreadImpl__ThreadProc_void__params_,
+                                 "p", params);
                PACK_COMMON_END((unsigned int)pSelf, 0, blockresult);
                PACK_THREAD((unsigned int)pThread, THREAD_OSPTHREAD_WORKER, THREAD_API_INTERNAL_STOP);
                FLUSH_LOCAL_BUF();
@@ -561,7 +565,9 @@ result Thread::Sleep(long milliSeconds) {
                currentThread = GetCurrentThread();
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "x", milliSeconds);
+               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                                 API_ID_result_Thread__Sleep_long_milliSeconds_,
+                                 "x", milliSeconds);
                PACK_COMMON_END(0, 0, blockresult);
                PACK_THREAD((unsigned int)currentThread, THREAD_OSPTHREAD_WORKER, THREAD_API_WAIT_START);
                FLUSH_LOCAL_BUF();
@@ -578,7 +584,9 @@ result Thread::Sleep(long milliSeconds) {
                currentThread = GetCurrentThread();
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "x", milliSeconds);
+               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                                 API_ID_result_Thread__Yield_void_,
+                                 "x", milliSeconds);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int)currentThread, THREAD_OSPTHREAD_WORKER, THREAD_API_WAIT_END);
                FLUSH_LOCAL_BUF();
@@ -629,7 +637,9 @@ Thread* Thread::GetCurrentThread(void) {
        if (postBlockBegin(blockresult)) {
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                                 API_ID_Thread__Thread__GetCurrentThread_void_,
+                                 "", 0);
                PACK_COMMON_END((unsigned int)currentThread, res, blockresult);
                PACK_THREAD((unsigned int)currentThread, THREAD_OSPTHREAD_WORKER, THREAD_API_OTHER);
                FLUSH_LOCAL_BUF();
@@ -681,7 +691,9 @@ result Thread::Yield(void) {
                currentThread = GetCurrentThread();
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                                 API_ID_result_Thread__Yield_void_,
+                                 "", 0);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int)currentThread, THREAD_OSPTHREAD_WORKER, THREAD_API_OTHER);
                FLUSH_LOCAL_BUF();
@@ -728,7 +740,9 @@ result Thread::Exit(int exitCode) {
                currentThread = GetCurrentThread();
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "d", exitCode);
+               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                                 API_ID_result_Thread__Exit_int_exitCode_,
+                                 "d", exitCode);
                PACK_COMMON_END(0, 0, blockresult);
                PACK_THREAD((unsigned int)currentThread, THREAD_OSPTHREAD_WORKER, THREAD_API_EXIT);
                FLUSH_LOCAL_BUF();
@@ -786,7 +800,9 @@ result Thread::Construct(ThreadType threadType, long stackSize,
        if (postBlockBegin(blockresult)) {
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "dxd", threadType, stackSize, priority);
+               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                                 API_ID_result_Thread__Construct_ThreadType_threadType__long_stackSize__ThreadPriority_priority_,
+                                 "dxd", threadType, stackSize, priority);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, THREAD_OSPTHREAD_WORKER, THREAD_API_NEW);
                FLUSH_LOCAL_BUF();
@@ -835,7 +851,9 @@ result Thread::Construct(long stackSize, ThreadPriority priority) {
        if (postBlockBegin(blockresult)) {
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "xd", stackSize, priority);
+               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                                 API_ID_result_Thread__Construct_long_stackSize__ThreadPriority_priority_,
+                                 "xd", stackSize, priority);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, THREAD_OSPTHREAD_WORKER, THREAD_API_NEW);
                FLUSH_LOCAL_BUF();
@@ -890,7 +908,9 @@ result Thread::Construct(const Tizen::Base::String &name, long stackSize,
        if (postBlockBegin(blockresult)) {
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "sxd", temp, stackSize, priority);
+               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                                 API_ID_result_Thread__Construct_const_Tizen__Base__String__name__long_stackSize__ThreadPriority_priority_,
+                                 "sxd", temp, stackSize, priority);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, THREAD_OSPTHREAD_WORKER, THREAD_API_NEW);
                FLUSH_LOCAL_BUF();
@@ -947,7 +967,9 @@ result Thread::Construct(const Tizen::Base::String &name, ThreadType threadType,
                WcharToChar(temp, name.GetPointer());
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "sdxd", temp, threadType, stackSize, priority);
+               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                                 API_ID_result_Thread__Construct_const_Tizen__Base__String__name__ThreadType_threadType__long_stackSize__ThreadPriority_priority_,
+                                 "sdxd", temp, threadType, stackSize, priority);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, THREAD_OSPTHREAD_WORKER, THREAD_API_NEW);
                FLUSH_LOCAL_BUF();
@@ -1001,7 +1023,9 @@ result Thread::Construct(IRunnable &target, long stackSize,
        if (postBlockBegin(blockresult)) {
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "xxd", (unsigned int) &target, stackSize, priority);
+               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                                 API_ID_result_Thread__Construct_IRunnable__target__long_stackSize__ThreadPriority_priority_,
+                                 "xxd", (unsigned int) &target, stackSize, priority);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, THREAD_OSPTHREAD_WORKER, THREAD_API_NEW);
                FLUSH_LOCAL_BUF();
@@ -1058,7 +1082,9 @@ result Thread::Construct(const Tizen::Base::String &name, IRunnable &target,
                WcharToChar(temp, name.GetPointer());
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "sxxd", temp, (unsigned int) &target, stackSize, priority);
+               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                                 API_ID_result_Thread__Construct_const_Tizen__Base__String__name__IRunnable__target__long_stackSize__ThreadPriority_priority_,
+                                 "sxxd", temp, (unsigned int) &target, stackSize, priority);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, THREAD_OSPTHREAD_WORKER, THREAD_API_NEW);
                FLUSH_LOCAL_BUF();
@@ -1110,7 +1136,9 @@ result Thread::GetExitCode(int &exitCode) const {
        if (postBlockBegin(blockresult)) {
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "d", exitCode);
+               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                                 API_ID_result_Thread__GetExitCode_int__exitCode__const,
+                                 "d", exitCode);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, THREAD_OSPTHREAD_WORKER, THREAD_API_OTHER);
                FLUSH_LOCAL_BUF();
@@ -1163,7 +1191,9 @@ const Tizen::Base::String & Thread::GetName(void) const {
                WcharToChar(temp, ret.GetPointer());
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                                 API_ID_const_Tizen__Base__String___Thread__GetName_void__const,
+                                 "", 0);
                PACK_COMMON_END(ret.GetPointer(), res, blockresult);
                PACK_THREAD((unsigned int) this, THREAD_OSPTHREAD_WORKER, THREAD_API_OTHER);
                FLUSH_LOCAL_BUF();
@@ -1207,7 +1237,9 @@ result Thread::Join(void) {
                setProbePoint(&probeInfo);
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                                 API_ID_result_Thread__Join_void_,
+                                 "", 0);
                PACK_COMMON_END(0, 0, blockresult);
                PACK_THREAD((unsigned int) this, THREAD_OSPTHREAD_WORKER, THREAD_API_WAIT_START);
                FLUSH_LOCAL_BUF();
@@ -1221,7 +1253,9 @@ result Thread::Join(void) {
                setProbePoint(&probeInfo);
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                                 API_ID_result_Thread__Join_void_,
+                                 "", 0);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, THREAD_OSPTHREAD_WORKER, THREAD_API_WAIT_END);
                FLUSH_LOCAL_BUF();
@@ -1348,7 +1382,9 @@ result Thread::Start(void) {
        if (postBlockBegin(blockresult)) {
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                                 API_ID_result_Thread__Start_void_,
+                                 "", 0);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, THREAD_OSPTHREAD_WORKER, THREAD_API_START);
                FLUSH_LOCAL_BUF();
@@ -1396,7 +1432,9 @@ result Thread::Stop(void) {
        if (postBlockBegin(blockresult)) {
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                                 API_ID_result_Thread__Stop_void_,
+                                 "", 0);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, THREAD_OSPTHREAD_WORKER, THREAD_API_STOP);
                FLUSH_LOCAL_BUF();
@@ -1446,7 +1484,9 @@ result EventDrivenThread::Construct(long stackSize, ThreadPriority priority) {
        if (postBlockBegin(blockresult)) {
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "xd", stackSize, priority);
+               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                                 API_ID_result_EventDrivenThread__Construct_long_stackSize__ThreadPriority_priority_,
+                                 "xd", stackSize, priority);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, THREAD_OSPTHREAD_EVENTDRIVEN, THREAD_API_NEW);
                FLUSH_LOCAL_BUF();
@@ -1504,7 +1544,9 @@ result EventDrivenThread::Construct(const Tizen::Base::String &name, long stackS
                WcharToChar(temp, name.GetPointer());
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "sx", temp, stackSize);
+               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                                 API_ID_result_EventDrivenThread__Construct_const_Tizen__Base__String__name__long_stackSize__ThreadPriority_priority_,
+                                 "sx", temp, stackSize);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, THREAD_OSPTHREAD_EVENTDRIVEN, THREAD_API_NEW);
                FLUSH_LOCAL_BUF();
@@ -1554,7 +1596,9 @@ result EventDrivenThread::Quit() {
        if (postBlockBegin(blockresult)) {
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "", 0);
+               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                                 API_ID_result_EventDrivenThread__Quit__,
+                                 "", 0);
                PACK_COMMON_END(ret, ret, blockresult);
                PACK_THREAD((unsigned int) this, THREAD_OSPTHREAD_EVENTDRIVEN, THREAD_API_STOP);
                FLUSH_LOCAL_BUF();
index 6d942e1..0e91985 100755 (executable)
@@ -73,7 +73,9 @@ result UiApp::AddFrame(const Tizen::Ui::Controls::Frame& frame)
                        setProbePoint(&probeInfo);
 
                        PREPARE_LOCAL_BUF();
-                       PACK_COMMON_BEGIN(MSG_PROBE_UICONTROL, LC_UICREATE, "p", &frame);
+                       PACK_COMMON_BEGIN(MSG_PROBE_UICONTROL,
+                                         API_ID_result_UiApp__AddFrame_const_Tizen__Ui__Controls__Frame__frame_,
+                                         "p", &frame);
                        PACK_COMMON_END(ret, 0, 0);
                        PACK_UICONTROL(parent);
                        PACK_UICONTROL(&frame);
@@ -106,7 +108,9 @@ result UiApp::RemoveFrame(const Tizen::Ui::Controls::Frame &frame)
                Control* parent = NULL;
                setProbePoint(&probeInfo);
                
-               PACK_COMMON_BEGIN(MSG_PROBE_UICONTROL, LC_UICREATE, "p", &frame);
+               PACK_COMMON_BEGIN(MSG_PROBE_UICONTROL,
+                                 API_ID_result_UiApp__RemoveFrame_const_Tizen__Ui__Controls__Frame__frame_,
+                                 "p", &frame);
                PACK_COMMON_END(0, 0, 0);
                PACK_UICONTROL(parent);
                PACK_UICONTROL(&frame);
@@ -167,7 +171,9 @@ void Control::SetName(const Tizen::Base::String &name)
                setProbePoint(&probeInfo);
                
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_UICONTROL, LC_UICREATE, "p", this);
+               PACK_COMMON_BEGIN(MSG_PROBE_UICONTROL,
+                                 API_ID_void_Control__SetName_const_Tizen__Base__String__name_,
+                                 "p", this);
                PACK_COMMON_END(0, 0, 0);
                PACK_UICONTROL(this);
                PACK_UICONTROL(parent);
@@ -220,7 +226,9 @@ result Container::AddControl(const Control &control)
                        setProbePoint(&probeInfo);
                        
                        PREPARE_LOCAL_BUF();
-                       PACK_COMMON_BEGIN(MSG_PROBE_UICONTROL, LC_UICREATE, "p", this);
+                       PACK_COMMON_BEGIN(MSG_PROBE_UICONTROL,
+                                         API_ID_result_Container__AddControl_const_Control__control_,
+                                         "p", this);
                        PACK_COMMON_END(ret, 0, 0);
                        PACK_UICONTROL(this);
                        PACK_UICONTROL(&control);
@@ -252,7 +260,9 @@ result Container::RemoveControl(const Control &control)
        {
                setProbePoint(&probeInfo);
                
-               PACK_COMMON_BEGIN(MSG_PROBE_UICONTROL, LC_UICREATE, "p", this);
+               PACK_COMMON_BEGIN(MSG_PROBE_UICONTROL,
+                                 API_ID_result_Container__RemoveControl_const_Control__control_,
+                                 "p", this);
                PACK_COMMON_END(0, 0, 0);
                PACK_UICONTROL(this);
                PACK_UICONTROL(&control);
@@ -296,7 +306,9 @@ result Container::RemoveControl(int index)
        {
                setProbePoint(&probeInfo);
                
-               PACK_COMMON_BEGIN(MSG_PROBE_UICONTROL, LC_UICREATE, "p", this);
+               PACK_COMMON_BEGIN(MSG_PROBE_UICONTROL,
+                                 API_ID_result_Container__RemoveControl_int_index_,
+                                 "p", this);
                PACK_COMMON_END(0, 0, 0);
                PACK_UICONTROL(this);
                PACK_UICONTROL(pcontrol);
@@ -334,7 +346,9 @@ void Container::RemoveAllControls(void)
                setProbePoint(&probeInfo);
                
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_UICONTROL, LC_UICREATE, "p", this);
+               PACK_COMMON_BEGIN(MSG_PROBE_UICONTROL,
+                                 API_ID_void_Container__RemoveAllControls_void_,
+                                 "p", this);
                PACK_COMMON_END(0, 0, 0);
                PACK_UICONTROL(this);
                PACK_UICONTROL(pcontrol);
index d48960c..152377a 100755 (executable)
@@ -96,7 +96,9 @@ void on_orientation_changed(int angle, bool capi)
                        setProbePoint(&probeInfo);
                        
                        PREPARE_LOCAL_BUF();
-                       PACK_COMMON_BEGIN(MSG_PROBE_UIEVENT, LC_UIEVENT, "dd", angle, (uint32_t)capi);
+                       PACK_COMMON_BEGIN(MSG_PROBE_UIEVENT,
+                                         API_ID_on_orientation_changed,
+                                         "dd", angle, (uint32_t)capi);
                        PACK_COMMON_END(0, 0, 0);
                        PACK_UIEVENT(_EVENT_ORIENTATION, 0, 0, 0, 0, convert_angle(external_angle));
                        FLUSH_LOCAL_BUF();
index f67c423..4da7a3c 100755 (executable)
 #include "gesture.h"
 #include "binproto.h"
 
-#define PACK_GESTURE_EVENT(_GESTURETYPE, _X, _Y, _INFO1, _INFO2, _ARGDETECTOR) \
+#define PACK_GESTURE_EVENT(API_ID, _GESTURETYPE, _X, _Y, _INFO1, _INFO2, _ARGDETECTOR) \
        do {                                                                                                                                            \
                char info1_str[16];                                                                                                             \
                setProbePoint(&probeInfo);                                                                                              \
                PREPARE_LOCAL_BUF();                                                                                                    \
-               PACK_COMMON_BEGIN(MSG_PROBE_UIEVENT, LC_UIEVENT, "p", _ARGDETECTOR);    \
+               PACK_COMMON_BEGIN(MSG_PROBE_UIEVENT, API_ID, "p", _ARGDETECTOR);        \
                PACK_COMMON_END(0, 0, 0);                                                                                               \
                sprintf(info1_str, "%d", _INFO1);                                                                               \
                PACK_UIEVENT(_EVENT_GESTURE, _GESTURETYPE, _X, _Y, info1_str, _INFO2);  \
@@ -70,7 +70,8 @@ void GestureEventListener::OnCustomGestureCanceled (TouchGestureDetector &gestur
        if(isOptionEnabled(OPT_EVENT))
        {
                probeBlockStart();
-               PACK_GESTURE_EVENT(_GESTURE_CUSTOM, 0, 0, 0, 0, &gestureDetector);
+               PACK_GESTURE_EVENT(API_ID_void_GestureEventListener__OnCustomGestureCanceled__TouchGestureDetector__gestureDetector_,
+                                  _GESTURE_CUSTOM, 0, 0, 0, 0, &gestureDetector);
                probeBlockEnd();
        }
 }
@@ -82,7 +83,8 @@ void GestureEventListener::OnCustomGestureChanged (TouchGestureDetector &gesture
        if(isOptionEnabled(OPT_EVENT))
        {
                probeBlockStart();
-               PACK_GESTURE_EVENT(_GESTURE_CUSTOM, 0, 0, 0, 0, &gestureDetector);
+               PACK_GESTURE_EVENT(API_ID_void_GestureEventListener__OnCustomGestureChanged__TouchGestureDetector__gestureDetector_,
+                                  _GESTURE_CUSTOM, 0, 0, 0, 0, &gestureDetector);
                probeBlockEnd();
        }
 }
@@ -94,7 +96,8 @@ void GestureEventListener::OnCustomGestureFinished (TouchGestureDetector &gestur
        if(isOptionEnabled(OPT_EVENT))
        {
                probeBlockStart();
-               PACK_GESTURE_EVENT(_GESTURE_CUSTOM, 0, 0, 0, 0, &gestureDetector);
+               PACK_GESTURE_EVENT(API_ID_void_GestureEventListener__OnCustomGestureFinished__TouchGestureDetector__gestureDetector_,
+                                  _GESTURE_CUSTOM, 0, 0, 0, 0, &gestureDetector);
                probeBlockEnd();
        }
 }
@@ -106,7 +109,8 @@ void GestureEventListener::OnCustomGestureStarted (TouchGestureDetector &gesture
        if(isOptionEnabled(OPT_EVENT))
        {
                probeBlockStart();
-               PACK_GESTURE_EVENT(_GESTURE_CUSTOM, 0, 0, 0, 0, &gestureDetector);
+               PACK_GESTURE_EVENT(API_ID_void_GestureEventListener__OnCustomGestureStarted__TouchGestureDetector__gestureDetector_,
+                                  _GESTURE_CUSTOM, 0, 0, 0, 0, &gestureDetector);
                probeBlockEnd();
        }
 }
@@ -125,7 +129,8 @@ void GestureEventListener::OnFlickGestureCanceled (TouchFlickGestureDetector &ge
                        gestureDetector.GetDistance(x, y);
                        dur = gestureDetector.GetDuration();
                        direction = gestureDetector.GetDirection();
-                       PACK_GESTURE_EVENT(_GESTURE_FLICK, x, y, dur, (int)direction, &gestureDetector);
+                       PACK_GESTURE_EVENT(API_ID_void_GestureEventListener__OnFlickGestureCanceled__TouchFlickGestureDetector__gestureDetector_,
+                                          _GESTURE_FLICK, x, y, dur, (int)direction, &gestureDetector);
                }
                probeBlockEnd();
        }
@@ -145,7 +150,8 @@ void GestureEventListener::OnFlickGestureDetected (TouchFlickGestureDetector &ge
                        gestureDetector.GetDistance(x, y);
                        dur = gestureDetector.GetDuration();
                        direction = gestureDetector.GetDirection();
-                       PACK_GESTURE_EVENT(_GESTURE_FLICK, x, y, dur, (int)direction, &gestureDetector);
+                       PACK_GESTURE_EVENT(API_ID_void_GestureEventListener__OnFlickGestureDetected__TouchFlickGestureDetector__gestureDetector_,
+                                          _GESTURE_FLICK, x, y, dur, (int)direction, &gestureDetector);
                }
                probeBlockEnd();
        }
@@ -164,7 +170,8 @@ void GestureEventListener::OnLongPressGestureCanceled (TouchLongPressGestureDete
                        moveallow = gestureDetector.GetMoveAllowance();
                        dur = gestureDetector.GetDuration();
                        tcount = gestureDetector.GetTouchCount();
-                       PACK_GESTURE_EVENT(_GESTURE_LONGPRESS, moveallow, 0, dur, tcount, &gestureDetector);
+                       PACK_GESTURE_EVENT(API_ID_void_GestureEventListener__OnLongPressGestureCanceled__TouchLongPressGestureDetector__gestureDetector_,
+                                          _GESTURE_LONGPRESS, moveallow, 0, dur, tcount, &gestureDetector);
                }
                probeBlockEnd();
        }
@@ -183,7 +190,8 @@ void GestureEventListener::OnLongPressGestureDetected (TouchLongPressGestureDete
                        moveallow = gestureDetector.GetMoveAllowance();
                        dur = gestureDetector.GetDuration();
                        tcount = gestureDetector.GetTouchCount();
-                       PACK_GESTURE_EVENT(_GESTURE_LONGPRESS, moveallow, 0, dur, tcount, &gestureDetector);
+                       PACK_GESTURE_EVENT(API_ID_void_GestureEventListener__OnLongPressGestureDetected__TouchLongPressGestureDetector__gestureDetector_,
+                                          _GESTURE_LONGPRESS, moveallow, 0, dur, tcount, &gestureDetector);
                }
                probeBlockEnd();
        }
@@ -200,7 +208,8 @@ void GestureEventListener::OnPanningGestureCanceled (TouchPanningGestureDetector
                        int tcount = 0;
 
                        tcount = gestureDetector.GetTouchCount();
-                       PACK_GESTURE_EVENT(_GESTURE_PANNING, 0, 0, 0, tcount, &gestureDetector);
+                       PACK_GESTURE_EVENT(API_ID_void_GestureEventListener__OnPanningGestureCanceled__TouchPanningGestureDetector__gestureDetector_,
+                                          _GESTURE_PANNING, 0, 0, 0, tcount, &gestureDetector);
                }
                probeBlockEnd();
        }
@@ -217,7 +226,8 @@ void GestureEventListener::OnPanningGestureChanged (TouchPanningGestureDetector
                        int tcount = 0;
 
                        tcount = gestureDetector.GetTouchCount();
-                       PACK_GESTURE_EVENT(_GESTURE_PANNING, 0, 0, 0, tcount, &gestureDetector);
+                       PACK_GESTURE_EVENT(API_ID_void_GestureEventListener__OnPanningGestureChanged__TouchPanningGestureDetector__gestureDetector_,
+                                          _GESTURE_PANNING, 0, 0, 0, tcount, &gestureDetector);
                }
                probeBlockEnd();
        }
@@ -234,7 +244,8 @@ void GestureEventListener::OnPanningGestureFinished (TouchPanningGestureDetector
                        int tcount = 0;
 
                        tcount = gestureDetector.GetTouchCount();
-                       PACK_GESTURE_EVENT(_GESTURE_PANNING, 0, 0, 0, tcount, &gestureDetector);
+                       PACK_GESTURE_EVENT(API_ID_void_GestureEventListener__OnPanningGestureFinished__TouchPanningGestureDetector__gestureDetector_,
+                                          _GESTURE_PANNING, 0, 0, 0, tcount, &gestureDetector);
                }
                probeBlockEnd();
        }
@@ -251,7 +262,8 @@ void GestureEventListener::OnPanningGestureStarted (TouchPanningGestureDetector
                        int tcount = 0;
 
                        tcount = gestureDetector.GetTouchCount();
-                       PACK_GESTURE_EVENT(_GESTURE_PANNING, 0, 0, 0, tcount, &gestureDetector);
+                       PACK_GESTURE_EVENT(API_ID_void_GestureEventListener__OnPanningGestureStarted__TouchPanningGestureDetector__gestureDetector_,
+                                          _GESTURE_PANNING, 0, 0, 0, tcount, &gestureDetector);
                }
                probeBlockEnd();
        }
@@ -270,7 +282,8 @@ void GestureEventListener::OnPinchGestureCanceled (TouchPinchGestureDetector &ge
 
                        point = gestureDetector.GetCenterPoint();
                        scale = gestureDetector.GetScale();
-                       PACK_GESTURE_EVENT(_GESTURE_PINCH, point.x, point.y, scale, 0, &gestureDetector);
+                       PACK_GESTURE_EVENT(API_ID_void_GestureEventListener__OnPinchGestureCanceled__TouchPinchGestureDetector__gestureDetector_,
+                                          _GESTURE_PINCH, point.x, point.y, scale, 0, &gestureDetector);
                }
                probeBlockEnd();
        }
@@ -289,7 +302,8 @@ void GestureEventListener::OnPinchGestureChanged (TouchPinchGestureDetector &ges
 
                        point = gestureDetector.GetCenterPoint();
                        scale = gestureDetector.GetScale();
-                       PACK_GESTURE_EVENT(_GESTURE_PINCH, point.x, point.y, scale, 0, &gestureDetector);
+                       PACK_GESTURE_EVENT(API_ID_void_GestureEventListener__OnPinchGestureChanged__TouchPinchGestureDetector__gestureDetector_,
+                                          _GESTURE_PINCH, point.x, point.y, scale, 0, &gestureDetector);
                }
                probeBlockEnd();
        }
@@ -308,7 +322,8 @@ void GestureEventListener::OnPinchGestureFinished (TouchPinchGestureDetector &ge
 
                        point = gestureDetector.GetCenterPoint();
                        scale = gestureDetector.GetScale();
-                       PACK_GESTURE_EVENT(_GESTURE_PINCH, point.x, point.y, scale, 0, &gestureDetector);
+                       PACK_GESTURE_EVENT(API_ID_void_GestureEventListener__OnPinchGestureFinished__TouchPinchGestureDetector__gestureDetector_,
+                                          _GESTURE_PINCH, point.x, point.y, scale, 0, &gestureDetector);
                }
                probeBlockEnd();
        }
@@ -327,7 +342,8 @@ void GestureEventListener::OnPinchGestureStarted (TouchPinchGestureDetector &ges
 
                        point = gestureDetector.GetCenterPoint();
                        scale = gestureDetector.GetScale();
-                       PACK_GESTURE_EVENT(_GESTURE_PINCH, point.x, point.y, scale, 0, &gestureDetector);
+                       PACK_GESTURE_EVENT(API_ID_void_GestureEventListener__OnPinchGestureStarted__TouchPinchGestureDetector__gestureDetector_,
+                                          _GESTURE_PINCH, point.x, point.y, scale, 0, &gestureDetector);
                }
                probeBlockEnd();
        }
@@ -346,7 +362,8 @@ void GestureEventListener::OnRotationGestureCanceled (TouchRotationGestureDetect
 
                        distance = gestureDetector.GetDistance();
                        angle = gestureDetector.GetAngle();
-                       PACK_GESTURE_EVENT(_GESTURE_ROTATION, 0, 0, distance, static_cast<int>(angle), &gestureDetector);
+                       PACK_GESTURE_EVENT(API_ID_void_GestureEventListener__OnRotationGestureCanceled__TouchRotationGestureDetector__gestureDetector_,
+                                          _GESTURE_ROTATION, 0, 0, distance, static_cast<int>(angle), &gestureDetector);
                }
                probeBlockEnd();
        }
@@ -365,7 +382,8 @@ void GestureEventListener::OnRotationGestureChanged (TouchRotationGestureDetecto
 
                        distance = gestureDetector.GetDistance();
                        angle = gestureDetector.GetAngle();
-                       PACK_GESTURE_EVENT(_GESTURE_ROTATION, 0, 0, distance, static_cast<int>(angle), &gestureDetector);
+                       PACK_GESTURE_EVENT(API_ID_void_GestureEventListener__OnRotationGestureChanged__TouchRotationGestureDetector__gestureDetector_,
+                                          _GESTURE_ROTATION, 0, 0, distance, static_cast<int>(angle), &gestureDetector);
                }
                probeBlockEnd();
        }
@@ -384,7 +402,8 @@ void GestureEventListener::OnRotationGestureFinished (TouchRotationGestureDetect
 
                        distance = gestureDetector.GetDistance();
                        angle = gestureDetector.GetAngle();
-                       PACK_GESTURE_EVENT(_GESTURE_ROTATION, 0, 0, distance, static_cast<int>(angle), &gestureDetector);
+                       PACK_GESTURE_EVENT(API_ID_void_GestureEventListener__OnRotationGestureFinished__TouchRotationGestureDetector__gestureDetector_,
+                                          _GESTURE_ROTATION, 0, 0, distance, static_cast<int>(angle), &gestureDetector);
                }
                probeBlockEnd();
        }
@@ -403,7 +422,8 @@ void GestureEventListener::OnRotationGestureStarted (TouchRotationGestureDetecto
 
                        distance = gestureDetector.GetDistance();
                        angle = gestureDetector.GetAngle();
-                       PACK_GESTURE_EVENT(_GESTURE_ROTATION, 0, 0, distance, static_cast<int>(angle), &gestureDetector);
+                       PACK_GESTURE_EVENT(API_ID_void_GestureEventListener__OnRotationGestureStarted__TouchRotationGestureDetector__gestureDetector_,
+                                          _GESTURE_ROTATION, 0, 0, distance, static_cast<int>(angle), &gestureDetector);
                }
                probeBlockEnd();
        }
@@ -423,7 +443,8 @@ void GestureEventListener::OnTapGestureCanceled (TouchTapGestureDetector &gestur
                        tapcount = gestureDetector.GetTapCount();
                        interval = gestureDetector.GetTapInterval();
                        touchcount = gestureDetector.GetTouchCount();
-                       PACK_GESTURE_EVENT(_GESTURE_TAP, move, tapcount, interval, touchcount, &gestureDetector);
+                       PACK_GESTURE_EVENT(API_ID_void_GestureEventListener__OnTapGestureCanceled__TouchTapGestureDetector__gestureDetector_,
+                                          _GESTURE_TAP, move, tapcount, interval, touchcount, &gestureDetector);
                }
                probeBlockEnd();
        }
@@ -443,7 +464,8 @@ void GestureEventListener::OnTapGestureDetected (TouchTapGestureDetector &gestur
                        tapcount = gestureDetector.GetTapCount();
                        interval = gestureDetector.GetTapInterval();
                        touchcount = gestureDetector.GetTouchCount();
-                       PACK_GESTURE_EVENT(_GESTURE_TAP, move, tapcount, interval, touchcount, &gestureDetector);
+                       PACK_GESTURE_EVENT(API_ID_void_GestureEventListener__OnTapGestureDetected__TouchTapGestureDetector__gestureDetector_,
+                                          _GESTURE_TAP, move, tapcount, interval, touchcount, &gestureDetector);
                }
                probeBlockEnd();
        }
index 76ae935..7ee6ecd 100755 (executable)
 
 bool touch_pressed = false;
 
-#define PACK_HW_EVENT(_EVENTTYPE, _DETAILTYPE, _X, _Y, _KEYCODE, _EXTRA,               \
+#define PACK_HW_EVENT(API_ID, _EVENTTYPE, _DETAILTYPE, _X, _Y, _KEYCODE, _EXTRA, \
        _ARGDATA, _ARGTYPE, _ARGEVENT)                                                                                          \
        do {                                                                                                                                            \
                setProbePoint(&probeInfo);                                                                                              \
                PREPARE_LOCAL_BUF();                                                                                                    \
-               PACK_COMMON_BEGIN(MSG_PROBE_UIEVENT, LC_UIEVENT, "pdp",                                 \
+               PACK_COMMON_BEGIN(MSG_PROBE_UIEVENT, API_ID, "pdp",                                     \
                                  _ARGDATA, _ARGTYPE, _ARGEVENT);                                                               \
                PACK_COMMON_END(0, 0, 0);                                                                                               \
                PACK_UIEVENT(_EVENTTYPE, _DETAILTYPE, _X, _Y, _KEYCODE, _EXTRA);                \
@@ -81,8 +81,9 @@ Eina_Bool ecore_event_evas_key_down(void *data, int type, void *event)
                        Ecore_Event_Key* pEv = (Ecore_Event_Key*)event;
                        if(strcasestr(pEv->keyname, "volume") == NULL)
                        {
-                               PACK_HW_EVENT(_EVENT_KEY, _KEY_PRESSED, 0, 0, pEv->keyname, 0,  \
-                                       data, type, event);
+                               PACK_HW_EVENT(API_ID_ecore_event_evas_key_down,
+                                             _EVENT_KEY, _KEY_PRESSED, 0, 0, pEv->keyname, 0, \
+                                             data, type, event);
                        }
                }
                probeBlockEnd();
@@ -106,8 +107,9 @@ Eina_Bool ecore_event_evas_key_up(void *data, int type, void *event)
                        Ecore_Event_Key* pEv = (Ecore_Event_Key*)event;
                        if(strcasestr(pEv->keyname, "volume") == NULL)
                        {
-                               PACK_HW_EVENT(_EVENT_KEY, _KEY_RELEASED, 0, 0, pEv->keyname, 0, \
-                                       data, type, event);
+                               PACK_HW_EVENT(API_ID_ecore_event_evas_key_up,
+                                             _EVENT_KEY, _KEY_RELEASED, 0, 0, pEv->keyname, 0, \
+                                             data, type, event);
                        }
                }
                probeBlockEnd();
@@ -130,8 +132,9 @@ Eina_Bool ecore_event_evas_mouse_button_down(void *data, int type, void *event)
                {
                        Ecore_Event_Mouse_Button* pEv = (Ecore_Event_Mouse_Button*)event;
                        touch_pressed = true;
-                       PACK_HW_EVENT(_EVENT_TOUCH, _TOUCH_PRESSED, pEv->root.x, pEv->root.y, "", pEv->multi.device, \
-                               data, type, event);
+                       PACK_HW_EVENT(API_ID_ecore_event_evas_mouse_button_down,
+                                     _EVENT_TOUCH, _TOUCH_PRESSED, pEv->root.x, pEv->root.y, "", pEv->multi.device, \
+                                     data, type, event);
                }
                probeBlockEnd();
        }
@@ -153,8 +156,9 @@ Eina_Bool ecore_event_evas_mouse_button_up(void *data, int type, void *event)
                {
                        Ecore_Event_Mouse_Button* pEv = (Ecore_Event_Mouse_Button*)event;
                        touch_pressed = false;
-                       PACK_HW_EVENT(_EVENT_TOUCH, _TOUCH_RELEASED, pEv->root.x, pEv->root.y, "", pEv->multi.device, \
-                               data, type, event);
+                       PACK_HW_EVENT(API_ID_ecore_event_evas_mouse_button_up,
+                                     _EVENT_TOUCH, _TOUCH_RELEASED, pEv->root.x, pEv->root.y, "", pEv->multi.device, \
+                                     data, type, event);
                }
                probeBlockEnd();
        }
@@ -177,8 +181,9 @@ Eina_Bool ecore_event_evas_mouse_move(void *data, int type, void *event)
                        if(event != NULL)
                        {
                                Ecore_Event_Mouse_Move* pEv = (Ecore_Event_Mouse_Move*)event;
-                               PACK_HW_EVENT(_EVENT_TOUCH, _TOUCH_MOVED, pEv->root.x, pEv->root.y, "", pEv->multi.device, \
-                                       data, type, event);
+                               PACK_HW_EVENT(API_ID_ecore_event_evas_mouse_move,
+                                             _EVENT_TOUCH, _TOUCH_MOVED, pEv->root.x, pEv->root.y, "", pEv->multi.device, \
+                                             data, type, event);
                        }
                }
                probeBlockEnd();
index ffcaef3..6b7aa3c 100755 (executable)
 // AFTER_ORIGINAL macro for file
 // ==================================================================
 
-#define AFTER_PACK_ORIGINAL_FD(RVAL, SIZE, FD, APITYPE, INPUTFORMAT, ...)                      \
+#define AFTER_PACK_ORIGINAL_FD(API_ID, RVAL, SIZE, FD, APITYPE, INPUTFORMAT, ...) \
        POST_PACK_PROBEBLOCK_BEGIN();                                                                                                   \
        PREPARE_LOCAL_BUF();                                                                                                                    \
-       PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, LC_RESOURCE, INPUTFORMAT, __VA_ARGS__);   \
+       PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, API_ID, INPUTFORMAT, __VA_ARGS__);        \
        PACK_COMMON_END(RVAL, newerrno, blockresult);                                                                   \
        _fstatret = fstat(FD, &_statbuf);                                                                                               \
        POST_PACK_PROBEBLOCK_MIDDLE_FD(SIZE, FD, APITYPE);                                                              \
        POST_PACK_PROBEBLOCK_END()
 
-#define AFTER_PACK_ORIGINAL_NOFD(RVAL, SIZE, APITYPE, INPUTFORMAT, ...)                                        \
+#define AFTER_PACK_ORIGINAL_NOFD(API_ID, RVAL, SIZE, APITYPE, INPUTFORMAT, ...) \
        POST_PACK_PROBEBLOCK_BEGIN();                                                                                                           \
        PREPARE_LOCAL_BUF();                                                                                                                            \
-       PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, LC_RESOURCE, INPUTFORMAT, __VA_ARGS__);           \
+       PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, API_ID, INPUTFORMAT, __VA_ARGS__);                \
        PACK_COMMON_END(RVAL, newerrno, blockresult);                                                                           \
        POST_PACK_PROBEBLOCK_MIDDLE_NOFD(SIZE, APITYPE);                                                                        \
        POST_PACK_PROBEBLOCK_END()
 
-#define AFTER_PACK_ORIGINAL_FILEP(RVAL, SIZE, FILEP, APITYPE, INPUTFORMAT, ...)                        \
+#define AFTER_PACK_ORIGINAL_FILEP(API_ID, RVAL, SIZE, FILEP, APITYPE, INPUTFORMAT, ...) \
        POST_PACK_PROBEBLOCK_BEGIN();                                                                                                           \
        GET_FD_FROM_FILEP(FILEP);                                                                                                                       \
        if(_fd != -1) {                                                                                                                                         \
                _fstatret = fstat(_fd, &_statbuf);                                                                                              \
        }                                                                                                                                                                       \
        PREPARE_LOCAL_BUF();                                                                                                                            \
-       PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, LC_RESOURCE, INPUTFORMAT, __VA_ARGS__);           \
+       PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, API_ID, INPUTFORMAT, __VA_ARGS__);                \
        PACK_COMMON_END(RVAL, newerrno, blockresult);                                                                           \
        POST_PACK_PROBEBLOCK_MIDDLE_FD(SIZE, _fd, APITYPE);                                                                     \
        POST_PACK_PROBEBLOCK_END()
index f0ba623..87e60bd 100755 (executable)
@@ -72,7 +72,8 @@ int open(const char* path, int oflag, ...)
 
        ret = openp(path, oflag, mode);
 
-       AFTER_PACK_ORIGINAL_FD(ret, 0, ret, FD_API_OPEN, "sdd", path, oflag, mode);
+       AFTER_PACK_ORIGINAL_FD(API_ID_open,
+                              ret, 0, ret, FD_API_OPEN, "sdd", path, oflag, mode);
 
        return ret;
 }
@@ -95,7 +96,8 @@ int openat(int fd, const char* path, int oflag, ...)
 
        ret = openatp(fd, path, oflag, mode);
 
-       AFTER_PACK_ORIGINAL_FD(ret, 0, ret, FD_API_OPEN, "dsdd", fd, path, oflag, mode);
+       AFTER_PACK_ORIGINAL_FD(API_ID_openat,
+                              ret, 0, ret, FD_API_OPEN, "dsdd", fd, path, oflag, mode);
 
        return ret;
 }
@@ -109,7 +111,8 @@ int creat(const char* path, mode_t mode)
 
        ret = creatp(path, mode);
 
-       AFTER_PACK_ORIGINAL_FD(ret, 0, ret, FD_API_OPEN, "sd", path, mode);
+       AFTER_PACK_ORIGINAL_FD(API_ID_creat,
+                              ret, 0, ret, FD_API_OPEN, "sd", path, mode);
 
        return ret;
 }
@@ -130,7 +133,9 @@ int close(int fd)
 
        POST_PACK_PROBEBLOCK_BEGIN();
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, LC_RESOURCE, "d", fd);
+       PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
+                         API_ID_close,
+                         "d", fd);
        PACK_COMMON_END(ret, newerrno, blockresult);
        POST_PACK_PROBEBLOCK_MIDDLE_FD(0, fd, FD_API_CLOSE);
        POST_PACK_PROBEBLOCK_END();
@@ -147,7 +152,8 @@ int access(const char *path, int amode)
 
        ret = accessp(path, amode);
 
-       AFTER_PACK_ORIGINAL_NOFD(ret, 0, FD_API_PERMISSION, "sd", path, amode);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_access,
+                                ret, 0, FD_API_PERMISSION, "sd", path, amode);
 
        return ret;
 }
@@ -161,7 +167,8 @@ int faccessat(int fd, const char *path, int amode, int flag)
 
        ret = faccessatp(fd, path, amode, flag);
 
-       AFTER_PACK_ORIGINAL_FD(ret, 0, fd, FD_API_PERMISSION, "dsdd", fd, path, amode, flag);
+       AFTER_PACK_ORIGINAL_FD(API_ID_faccessat,
+                              ret, 0, fd, FD_API_PERMISSION, "dsdd", fd, path, amode, flag);
 
        return ret;
 }
@@ -175,8 +182,9 @@ off_t lseek(int fd, off_t offset, int whence)
 
        offret = lseekp(fd, offset, whence);
 
-       AFTER_PACK_ORIGINAL_FD(offret, (unsigned int)offset, fd, FD_API_OTHER,
-                       "dxd", fd, offset, whence);
+       AFTER_PACK_ORIGINAL_FD(API_ID_lseek,
+                              offret, (unsigned int)offset, fd, FD_API_OTHER,
+                              "dxd", fd, offset, whence);
 
        return offret;
 }
@@ -189,7 +197,8 @@ int fsync(int fd)
 
        ret = fsyncp(fd);
 
-       AFTER_PACK_ORIGINAL_FD(ret, 0, fd, FD_API_OTHER, "d", fd);
+       AFTER_PACK_ORIGINAL_FD(API_ID_fsync,
+                              ret, 0, fd, FD_API_OTHER, "d", fd);
 
        return ret;
 }
@@ -202,7 +211,8 @@ int fdatasync(int fd)
 
        ret = fdatasyncp(fd);
 
-       AFTER_PACK_ORIGINAL_FD(ret, 0, fd, FD_API_OTHER, "d", fd);
+       AFTER_PACK_ORIGINAL_FD(API_ID_fdatasync,
+                              ret, 0, fd, FD_API_OTHER, "d", fd);
 
        return ret;
 }
@@ -216,7 +226,8 @@ int truncate(const char *path, off_t length)
 
        ret = truncatep(path, length);
 
-       AFTER_PACK_ORIGINAL_NOFD(ret, (unsigned int)length, FD_API_DIRECTORY, "sx", path, length);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_truncate,
+                                ret, (unsigned int)length, FD_API_DIRECTORY, "sx", path, length);
 
        return ret;
 }
@@ -229,7 +240,8 @@ int ftruncate(int fd, off_t length)
 
        ret = ftruncatep(fd, length);
 
-       AFTER_PACK_ORIGINAL_FD(ret, (unsigned int)length, fd, FD_API_DIRECTORY, "dx", fd, length);
+       AFTER_PACK_ORIGINAL_FD(API_ID_ftruncate,
+                              ret, (unsigned int)length, fd, FD_API_DIRECTORY, "dx", fd, length);
 
        return ret;
 }
@@ -245,7 +257,8 @@ int mkfifo(const char *path, mode_t mode)
 
        ret = mkfifop(path, mode);
 
-       AFTER_PACK_ORIGINAL_NOFD(ret, 0, FD_API_OTHER, "sd", path, mode);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_mkfifo,
+                                ret, 0, FD_API_OTHER, "sd", path, mode);
 
        return ret;
 }
@@ -259,7 +272,8 @@ int mkfifoat(int fd, const char *path, mode_t mode)
 
        ret = mkfifoatp(fd, path, mode);
 
-       AFTER_PACK_ORIGINAL_FD(ret, 0, fd, FD_API_OTHER, "dsd", fd, path, mode);
+       AFTER_PACK_ORIGINAL_FD(API_ID_mkfifoat,
+                              ret, 0, fd, FD_API_OTHER, "dsd", fd, path, mode);
 
        return ret;
 }
@@ -273,8 +287,9 @@ int mknod(const char *path, mode_t mode, dev_t dev)
 
        ret = mknodp(path, mode, dev);
 
-       AFTER_PACK_ORIGINAL_NOFD(ret, 0, FD_API_OTHER,
-                       "sdx", path, mode, (unsigned long int)dev);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_mknod,
+                                ret, 0, FD_API_OTHER,
+                                "sdx", path, mode, (unsigned long int)dev);
 
        return ret;
 }
@@ -288,7 +303,8 @@ int mknodat(int fd, const char *path, mode_t mode, dev_t dev)
 
        ret = mknodatp(fd,path, mode,dev);
 
-       AFTER_PACK_ORIGINAL_FD(ret, 0, fd, FD_API_OTHER,
+       AFTER_PACK_ORIGINAL_FD(API_ID_mknodat,
+                              ret, 0, fd, FD_API_OTHER,
                        "dsdx", fd, path, mode, (unsigned long int)dev);
 
        return ret;
@@ -305,7 +321,8 @@ int chown(const char *path, uid_t owner, gid_t group)
        BEFORE_ORIGINAL_FILE(chown, LIBC);
        _filepath = (char*)path;
        ret = chownp(path, owner, group);
-       AFTER_PACK_ORIGINAL_NOFD(ret, 0, FD_API_PERMISSION, "sdd", path, owner, group);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_chown,
+                                ret, 0, FD_API_PERMISSION, "sdd", path, owner, group);
        return ret;
 }
 
@@ -316,8 +333,9 @@ int fchownat(int fd, const char *path, uid_t owner, gid_t group, int flag)
        BEFORE_ORIGINAL_FILE(fchownat, LIBC);
        _filepath = (char*)path;
        ret = fchownatp(fd, path, owner, group, flag);
-       AFTER_PACK_ORIGINAL_FD(ret, 0, fd, FD_API_PERMISSION,
-                       "dsddd", fd, path, owner, group, flag);
+       AFTER_PACK_ORIGINAL_FD(API_ID_fchownat,
+                              ret, 0, fd, FD_API_PERMISSION,
+                              "dsddd", fd, path, owner, group, flag);
        return ret;
 }
 
@@ -327,7 +345,8 @@ int fchown(int fd, uid_t owner, gid_t group)
 
        BEFORE_ORIGINAL_FILE(fchown, LIBC);
        ret = fchownp(fd, owner, group);
-       AFTER_PACK_ORIGINAL_FD(ret, 0, fd, FD_API_PERMISSION, "ddd", fd, owner, group);
+       AFTER_PACK_ORIGINAL_FD(API_ID_fchown,
+                              ret, 0, fd, FD_API_PERMISSION, "ddd", fd, owner, group);
        return ret;
 }
 
@@ -338,7 +357,8 @@ int lchown(const char *path, uid_t owner, gid_t group)
        BEFORE_ORIGINAL_FILE(lchown, LIBC);
        _filepath = (char*)path;
        ret = lchownp(path, owner, group);
-       AFTER_PACK_ORIGINAL_NOFD(ret, 0, FD_API_PERMISSION, "sdd", path, owner, group);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_lchown,
+                                ret, 0, FD_API_PERMISSION, "sdd", path, owner, group);
        return ret;
 }
 
@@ -348,8 +368,9 @@ int lockf(int fd, int function, off_t size)
 
        BEFORE_ORIGINAL_FILE(lockf, LIBC);
        ret = lockfp(fd, function, size);
-       AFTER_PACK_ORIGINAL_FD(ret, (unsigned int)size, fd, FD_API_PERMISSION,
-                       "ddx", fd, function, size);
+       AFTER_PACK_ORIGINAL_FD(API_ID_lockf,
+                              ret, (unsigned int)size, fd, FD_API_PERMISSION,
+                              "ddx", fd, function, size);
        return ret;
 }
 
@@ -360,7 +381,8 @@ int chmod(const char *path, mode_t mode)
        BEFORE_ORIGINAL_FILE(chmod, LIBC);
        _filepath = (char*)path;
        ret = chmodp(path, mode);
-       AFTER_PACK_ORIGINAL_NOFD(ret, 0, FD_API_PERMISSION, "sd", path, mode);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_chmod,
+                                ret, 0, FD_API_PERMISSION, "sd", path, mode);
        return ret;
 }
 
@@ -371,8 +393,9 @@ int fchmodat(int fd, const char *path, mode_t mode, int flag)
        BEFORE_ORIGINAL_FILE(fchmodat, LIBC);
        _filepath = (char*)path;
        ret = fchmodatp(fd, path, mode, flag);
-       AFTER_PACK_ORIGINAL_FD(ret,0, fd, FD_API_PERMISSION,
-                       "dsdd", fd, path, mode, flag);
+       AFTER_PACK_ORIGINAL_FD(API_ID_fchmodat,
+                              ret,0, fd, FD_API_PERMISSION,
+                              "dsdd", fd, path, mode, flag);
        return ret;
 }
 
@@ -382,7 +405,8 @@ int fchmod(int fd, mode_t mode)
 
        BEFORE_ORIGINAL_FILE(fchmod, LIBC);
        ret = fchmodp(fd, mode);
-       AFTER_PACK_ORIGINAL_FD(ret, 0, fd, FD_API_PERMISSION, "dd", fd, mode);
+       AFTER_PACK_ORIGINAL_FD(API_ID_fchmod,
+                              ret, 0, fd, FD_API_PERMISSION, "dd", fd, mode);
        return ret;
 }
 
@@ -399,8 +423,9 @@ ssize_t pread(int fd, void *buf, size_t nbyte, off_t offset)
 
        sret = preadp(fd, buf, nbyte, offset);
 
-       AFTER_PACK_ORIGINAL_FD(sret, (unsigned int)sret, fd, FD_API_READ,
-                       "dpxx", fd, buf, nbyte, offset);
+       AFTER_PACK_ORIGINAL_FD(API_ID_pread,
+                              sret, (unsigned int)sret, fd, FD_API_READ,
+                              "dpxx", fd, buf, nbyte, offset);
 
        return sret;
 }
@@ -413,8 +438,9 @@ ssize_t read(int fd, void *buf, size_t nbyte)
 
        sret = readp(fd, buf, nbyte);
 
-       AFTER_PACK_ORIGINAL_FD(sret, (unsigned int)sret, fd, FD_API_READ,
-                       "dpx", fd, buf, nbyte);
+       AFTER_PACK_ORIGINAL_FD(API_ID_read,
+                              sret, (unsigned int)sret, fd, FD_API_READ,
+                              "dpx", fd, buf, nbyte);
 
        return sret;
 }
@@ -428,8 +454,9 @@ ssize_t pwrite(int fd, const void *buf, size_t nbyte, off_t offset)
 
        sret = pwritep(fd, buf, nbyte, offset);
 
-       AFTER_PACK_ORIGINAL_FD(sret, (unsigned int)sret, fd, FD_API_WRITE,
-                       "dpxx", fd, buf, nbyte, offset);
+       AFTER_PACK_ORIGINAL_FD(API_ID_pwrite,
+                              sret, (unsigned int)sret, fd, FD_API_WRITE,
+                              "dpxx", fd, buf, nbyte, offset);
 
        return sret;
 }
@@ -443,8 +470,9 @@ ssize_t write(int fd, const void *buf, size_t nbyte)
 
        sret = writep(fd, buf, nbyte);
 
-       AFTER_PACK_ORIGINAL_FD(sret, (unsigned int)sret, fd, FD_API_WRITE,
-                       "dpx", fd, buf, nbyte);
+       AFTER_PACK_ORIGINAL_FD(API_ID_write,
+                              sret, (unsigned int)sret, fd, FD_API_WRITE,
+                              "dpx", fd, buf, nbyte);
 
        return sret;
 }
@@ -458,8 +486,9 @@ ssize_t readv(int fd, const struct iovec *iov, int iovcnt)
        BEFORE_ORIGINAL_FILE(readv, LIBC);
        sret = readvp(fd,iov,iovcnt);
 
-       AFTER_PACK_ORIGINAL_FD(sret, (unsigned int)sret, fd, FD_API_READ,
-                       "dpd", fd, iov, iovcnt);
+       AFTER_PACK_ORIGINAL_FD(API_ID_readv,
+                              sret, (unsigned int)sret, fd, FD_API_READ,
+                              "dpd", fd, iov, iovcnt);
 
        return sret;
 }
@@ -489,7 +518,8 @@ int rmdir(const char *path)
        BEFORE_ORIGINAL_FILE(rmdir, LIBC);
        _filepath = (char*)path;
        ret = rmdirp(path);
-       AFTER_PACK_ORIGINAL_NOFD(ret, 0, FD_API_DIRECTORY, "s", path);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_rmdir,
+                                ret, 0, FD_API_DIRECTORY, "s", path);
        return ret;
 }
 
@@ -499,7 +529,8 @@ int fchdir(int fd)
 
        BEFORE_ORIGINAL_FILE(fchdir, LIBC);
        ret = fchdirp(fd);
-       AFTER_PACK_ORIGINAL_FD(ret, 0, fd, FD_API_DIRECTORY, "d", fd);
+       AFTER_PACK_ORIGINAL_FD(API_ID_fchdir,
+                              ret, 0, fd, FD_API_DIRECTORY, "d", fd);
        return ret;
 }
 
@@ -510,7 +541,8 @@ int chdir(const char *path)
        BEFORE_ORIGINAL_FILE(chdir, LIBC);
        _filepath = (char*)path;
        ret = chdirp(path);
-       AFTER_PACK_ORIGINAL_NOFD(ret, 0, FD_API_DIRECTORY, "s", path);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_chdir,
+                                ret, 0, FD_API_DIRECTORY, "s", path);
        return ret;
 }
 
@@ -521,7 +553,8 @@ int link(const char *path1, const char *path2)
        BEFORE_ORIGINAL_FILE(link, LIBC);
        _filepath = (char*)path1;
        ret = linkp(path1, path2);
-       AFTER_PACK_ORIGINAL_NOFD(ret, 0, FD_API_DIRECTORY, "ss", path1, path2);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_link,
+                                ret, 0, FD_API_DIRECTORY, "ss", path1, path2);
        return ret;
 }
 
@@ -532,8 +565,9 @@ int linkat(int fd1, const char *path1, int fd2, const char *path2, int flag)
        BEFORE_ORIGINAL_FILE(linkat, LIBC);
        _filepath = (char*)path1;
        ret = linkatp(fd1, path1, fd2, path2, flag);
-       AFTER_PACK_ORIGINAL_FD(ret, 0, fd2, FD_API_DIRECTORY,
-                       "dsdsd", fd1, path2, fd2, path2, flag);
+       AFTER_PACK_ORIGINAL_FD(API_ID_linkat,
+                              ret, 0, fd2, FD_API_DIRECTORY,
+                              "dsdsd", fd1, path2, fd2, path2, flag);
        return ret;
 }
 
@@ -544,7 +578,8 @@ int unlink(const char *path)
        BEFORE_ORIGINAL_FILE(unlink, LIBC);
        _filepath = (char*)path;
        ret = unlinkp(path);
-       AFTER_PACK_ORIGINAL_NOFD(ret, 0, FD_API_DIRECTORY, "s", path);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_unlink,
+                                ret, 0, FD_API_DIRECTORY, "s", path);
        return ret;
 }
 
@@ -555,7 +590,8 @@ int unlinkat(int fd, const char *path, int flag)
        BEFORE_ORIGINAL_FILE(unlinkat, LIBC);
        _filepath = (char*)path;
        ret = unlinkatp(fd, path, flag);
-       AFTER_PACK_ORIGINAL_FD(ret, 0, fd, FD_API_DIRECTORY, "dsd", fd, path, flag);
+       AFTER_PACK_ORIGINAL_FD(API_ID_unlinkat,
+                              ret, 0, fd, FD_API_DIRECTORY, "dsd", fd, path, flag);
        return ret;
 }
 
@@ -566,7 +602,8 @@ int symlink(const char *path1, const char *path2)
        BEFORE_ORIGINAL_FILE(symlink, LIBC);
        _filepath = (char*)path1;
        ret = symlinkp(path1, path2);
-       AFTER_PACK_ORIGINAL_NOFD(ret, 0, FD_API_DIRECTORY, "ss", path1, path2);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_symlink,
+                                ret, 0, FD_API_DIRECTORY, "ss", path1, path2);
        return ret;
 }
 
@@ -577,7 +614,8 @@ int symlinkat(const char *path1, int fd, const char *path2)
        BEFORE_ORIGINAL_FILE(symlinkat, LIBC);
        _filepath = (char*)path1;
        ret = symlinkatp(path1, fd, path2);
-       AFTER_PACK_ORIGINAL_FD(ret, 0, fd, FD_API_DIRECTORY, "sds", path1, fd, path2);
+       AFTER_PACK_ORIGINAL_FD(API_ID_symlinkat,
+                              ret, 0, fd, FD_API_DIRECTORY, "sds", path1, fd, path2);
        return ret;
 }
 
@@ -591,8 +629,9 @@ ssize_t readlink(const char* path, char* buf, size_t bufsize)
 
        sret = readlinkp(path, buf, bufsize);
 
-       AFTER_PACK_ORIGINAL_NOFD(sret, bufsize, FD_API_DIRECTORY,
-                       "ssx", path, buf, bufsize);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_readlink,
+                                sret, bufsize, FD_API_DIRECTORY,
+                                "ssx", path, buf, bufsize);
 
        return sret;
 }
@@ -607,8 +646,9 @@ ssize_t readlinkat(int fd, const char * path, char * buf, size_t bufsize)
 
        sret = readlinkatp(fd, path, buf, bufsize);
 
-       AFTER_PACK_ORIGINAL_FD(sret, bufsize, fd, FD_API_DIRECTORY,
-                       "dssx", fd, path, buf, bufsize);
+       AFTER_PACK_ORIGINAL_FD(API_ID_readlinkat,
+                              sret, bufsize, fd, FD_API_DIRECTORY,
+                              "dssx", fd, path, buf, bufsize);
 
        return sret;
 }
@@ -620,7 +660,8 @@ int mkdir(const char *path, mode_t mode)
        BEFORE_ORIGINAL_FILE(mkdir, LIBC);
        _filepath = (char*)path;
        ret = mkdirp(path, mode);
-       AFTER_PACK_ORIGINAL_NOFD(ret, 0, FD_API_DIRECTORY, "sd", path, mode);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_mkdir,
+                                ret, 0, FD_API_DIRECTORY, "sd", path, mode);
        return ret;
 }
 
@@ -631,7 +672,8 @@ int mkdirat(int fd, const char *path, mode_t mode)
        BEFORE_ORIGINAL_FILE(mkdirat, LIBC);
        _filepath = (char*)path;
        ret = mkdiratp(fd, path, mode);
-       AFTER_PACK_ORIGINAL_FD(ret, 0, fd, FD_API_DIRECTORY, "dsd", fd, path, mode);
+       AFTER_PACK_ORIGINAL_FD(API_ID_mkdirat,
+                              ret, 0, fd, FD_API_DIRECTORY, "dsd", fd, path, mode);
        return ret;
 }
 
@@ -641,7 +683,8 @@ int closedir(DIR *dirp)
 
        BEFORE_ORIGINAL_FILE(closedir, LIBC);
        ret = closedirp(dirp);
-       AFTER_PACK_ORIGINAL_NOFD(ret, 0, FD_API_DIRECTORY, "p", dirp);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_closedir,
+                                ret, 0, FD_API_DIRECTORY, "p", dirp);
        return ret;
 }
 
@@ -654,7 +697,8 @@ DIR *fdopendir(int fd)
 
        dret = fdopendirp(fd);
 
-       AFTER_PACK_ORIGINAL_FD(dret, 0, fd, FD_API_DIRECTORY, "d", fd);
+       AFTER_PACK_ORIGINAL_FD(API_ID_fdopendir,
+                              dret, 0, fd, FD_API_DIRECTORY, "d", fd);
 
        return dret;
 }
@@ -669,7 +713,8 @@ DIR *opendir(const char *dirname)
 
        dret = opendirp(dirname);
 
-       AFTER_PACK_ORIGINAL_NOFD(dret, 0, FD_API_DIRECTORY, "s", dirname);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_opendir,
+                                dret, 0, FD_API_DIRECTORY, "s", dirname);
 
        return dret;
 }
@@ -683,7 +728,8 @@ struct dirent *readdir(DIR *dirp)
 
        dret = readdirp(dirp);
 
-       AFTER_PACK_ORIGINAL_NOFD(dret, 0, FD_API_DIRECTORY, "p", dirp);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_readdir,
+                                dret, 0, FD_API_DIRECTORY, "p", dirp);
 
        return dret;
 }
@@ -694,7 +740,8 @@ int readdir_r(DIR * dirp, struct dirent * entry, struct dirent ** result)
 
        BEFORE_ORIGINAL_FILE(readdir_r, LIBC);
        ret = readdir_rp(dirp, entry, result);
-       AFTER_PACK_ORIGINAL_NOFD(ret, 0, FD_API_DIRECTORY, "ppp", dirp, entry, result);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_readdir_r,
+                                ret, 0, FD_API_DIRECTORY, "ppp", dirp, entry, result);
        return ret;
 }
 
@@ -706,7 +753,8 @@ void rewinddir(DIR *dirp)
 
        rewinddirp(dirp);
        
-       AFTER_PACK_ORIGINAL_NOFD(0, 0, FD_API_DIRECTORY, "p", dirp);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_rewinddir,
+                                0, 0, FD_API_DIRECTORY, "p", dirp);
 }
 
 void seekdir(DIR *dirp, long loc)
@@ -717,7 +765,8 @@ void seekdir(DIR *dirp, long loc)
 
        seekdirp(dirp, loc);
 
-       AFTER_PACK_ORIGINAL_NOFD(0, 0, FD_API_DIRECTORY, "px", dirp, loc);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_seekdir,
+                                0, 0, FD_API_DIRECTORY, "px", dirp, loc);
 }
 
 long telldir(DIR *dirp)
@@ -729,7 +778,8 @@ long telldir(DIR *dirp)
 
        lret = telldirp(dirp);
 
-       AFTER_PACK_ORIGINAL_NOFD(lret, 0, FD_API_DIRECTORY, "p", dirp);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_telldir,
+                                lret, 0, FD_API_DIRECTORY, "p", dirp);
 
        return lret;
 }
@@ -752,7 +802,8 @@ int fcntl(int fd, int cmd, ...)
 
        ret = fcntlp(fd, cmd, arg);
 
-       AFTER_PACK_ORIGINAL_FD(ret, 0, fd, FD_API_OTHER, "ddd", fd, cmd, arg);
+       AFTER_PACK_ORIGINAL_FD(API_ID_fcntl,
+                              ret, 0, fd, FD_API_OTHER, "ddd", fd, cmd, arg);
 
        return ret;
 }
@@ -765,7 +816,8 @@ int dup(int fd)
 
        ret = dupp(fd);
 
-       AFTER_PACK_ORIGINAL_FD(ret, 0, ret, FD_API_OPEN, "d", fd);
+       AFTER_PACK_ORIGINAL_FD(API_ID_dup,
+                              ret, 0, ret, FD_API_OPEN, "d", fd);
 
        return ret;
 }
@@ -778,7 +830,8 @@ int dup2(int fd, int fd2)
 
        ret = dup2p(fd, fd2);
 
-       AFTER_PACK_ORIGINAL_FD(ret, 0, ret, FD_API_OPEN, "dd", fd, fd2);
+       AFTER_PACK_ORIGINAL_FD(API_ID_dup2,
+                              ret, 0, ret, FD_API_OPEN, "dd", fd, fd2);
 
        return ret;
 }
@@ -816,7 +869,8 @@ int fstatat(int fd, const char * path, struct stat * buf, int flag)
        BEFORE_ORIGINAL_FILE(fstatat, LIBC);
        _filepath = (char*)path;
        ret = fstatatp(fd, path, buf, flag);
-       AFTER_PACK_ORIGINAL_FD(ret, 0, fd, FD_API_OTHER, "dspd", fd, path, buf, flag);
+       AFTER_PACK_ORIGINAL_FD(API_ID_fstatat,
+                              ret, 0, fd, FD_API_OTHER, "dspd", fd, path, buf, flag);
        return ret;
 }
 
@@ -827,7 +881,8 @@ int lstat(const char * path, struct stat * buf)
        BEFORE_ORIGINAL_FILE(lstat, LIBC);
        _filepath = (char*)path;
        ret = lstatp(path, buf);
-       AFTER_PACK_ORIGINAL_NOFD(ret, 0, FD_API_OTHER, "sp", path, buf);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_lstat,
+                                ret, 0, FD_API_OTHER, "sp", path, buf);
        return ret;
 }
 
@@ -837,7 +892,8 @@ int futimens(int fd, const struct timespec times[2])
 
        BEFORE_ORIGINAL_FILE(futimens, LIBC);
        ret = futimensp(fd, times);
-       AFTER_PACK_ORIGINAL_FD(ret, 0, fd, FD_API_OTHER, "dp", fd, times);
+       AFTER_PACK_ORIGINAL_FD(API_ID_futimens,
+                              ret, 0, fd, FD_API_OTHER, "dp", fd, times);
        return ret;
 }
 
@@ -848,7 +904,8 @@ int utimensat(int fd, const char *path, const struct timespec times[2], int flag
        BEFORE_ORIGINAL_FILE(utimensat, LIBC);
        _filepath = (char*)path;
        ret = utimensatp(fd, path, times, flag);
-       AFTER_PACK_ORIGINAL_FD(ret, 0, fd, FD_API_OTHER, "dspd", fd, path, times, flag);
+       AFTER_PACK_ORIGINAL_FD(API_ID_utimensat,
+                              ret, 0, fd, FD_API_OTHER, "dspd", fd, path, times, flag);
        return ret;
 }
 
@@ -859,7 +916,8 @@ int utimes(const char *path, const struct timeval times[2])
        BEFORE_ORIGINAL_FILE(utimes, LIBC);
        _filepath = (char*)path;
        ret = utimesp(path, times);
-       AFTER_PACK_ORIGINAL_NOFD(ret, 0, FD_API_OTHER, "sp", path, times);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_utimes,
+                                ret, 0, FD_API_OTHER, "sp", path, times);
        return ret;
 }
 
@@ -870,7 +928,8 @@ int utime(const char *path, const struct utimbuf *times)
        BEFORE_ORIGINAL_FILE(utime, LIBC);
        _filepath = (char*)path;
        ret = utimep(path, times);
-       AFTER_PACK_ORIGINAL_NOFD(ret, 0, FD_API_OTHER, "sp", path, times);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_utime,
+                                ret, 0, FD_API_OTHER, "sp", path, times);
        return ret;
 }
 
index 175ae45..85bafc6 100644 (file)
@@ -56,7 +56,8 @@ FILE* fopen(const char* filename, const char* mode)
        
        fret = fopenp(filename, mode);
 
-       AFTER_PACK_ORIGINAL_FILEP(fret, 0, fret, FD_API_OPEN, "ss", filename, mode);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_fopen,
+                                 fret, 0, fret, FD_API_OPEN, "ss", filename, mode);
 
        return fret;
 }
@@ -71,7 +72,8 @@ FILE* freopen(const char * filename, const char * mode, FILE * stream)
 
        fret = freopenp(filename, mode, stream);
 
-       AFTER_PACK_ORIGINAL_FILEP(fret, 0, fret, FD_API_OPEN, "ssp", filename, mode, stream);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_freopen,
+                                 fret, 0, fret, FD_API_OPEN, "ssp", filename, mode, stream);
 
        return fret;
 }
@@ -85,7 +87,8 @@ FILE* fdopen(int fildes, const char *mode)
 
        fret = fdopenp(fildes, mode);
 
-       AFTER_PACK_ORIGINAL_FILEP(fret, 0, fret, FD_API_OPEN, "ds", fildes, mode);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_fdopen,
+                                 fret, 0, fret, FD_API_OPEN, "ds", fildes, mode);
 
        return fret;
 }
@@ -96,7 +99,8 @@ int fflush(FILE* stream)
 
        BEFORE_ORIGINAL_FILE(fflush, LIBC);
        ret = fflushp(stream);
-       AFTER_PACK_ORIGINAL_FILEP(ret, 0, stream, FD_API_OTHER, "p", stream);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_fflush,
+                                 ret, 0, stream, FD_API_OTHER, "p", stream);
        return ret;
 }
 
@@ -119,7 +123,9 @@ int fclose(FILE* stream)
 
        POST_PACK_PROBEBLOCK_BEGIN();
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, LC_RESOURCE, "p", stream);
+       PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
+                         API_ID_fclose,
+                         "p", stream);
        PACK_COMMON_END(ret, newerrno, blockresult);
        POST_PACK_PROBEBLOCK_MIDDLE_FD(0, _fd, FD_API_CLOSE);
        POST_PACK_PROBEBLOCK_END();
@@ -134,7 +140,8 @@ int remove(const char* filename)
        BEFORE_ORIGINAL_FILE(remove, LIBC);
        _filepath = (char*)filename;
        ret = removep(filename);
-       AFTER_PACK_ORIGINAL_NOFD(ret, 0, FD_API_DIRECTORY, "s", filename);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_remove,
+                                ret, 0, FD_API_DIRECTORY, "s", filename);
        return ret;
 }
 
@@ -145,7 +152,8 @@ int rename(const char* oldname, const char* newname)
        BEFORE_ORIGINAL_FILE(rename, LIBC);
        _filepath = (char*)newname;
        ret = renamep(oldname, newname);
-       AFTER_PACK_ORIGINAL_NOFD(ret, 0, FD_API_DIRECTORY, "ss", oldname, newname);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_rename,
+                                ret, 0, FD_API_DIRECTORY, "ss", oldname, newname);
        return ret;
 }
 
@@ -157,7 +165,8 @@ FILE * tmpfile ( void )
        BEFORE_ORIGINAL_FILE_NOFILTER(tmpfile, LIBC);
        _filepath = "<temp file>";
        fret = tmpfilep();
-       AFTER_PACK_ORIGINAL_FILEP(fret, 0, fret, FD_API_OPEN, "s", "");
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_tmpfile,
+                                 fret, 0, fret, FD_API_OPEN, "s", "");
        return fret;
 }
 
@@ -167,7 +176,8 @@ int fgetpos(FILE* stream, fpos_t* position)
 
        BEFORE_ORIGINAL_FILE(fgetpos, LIBC);
        ret = fgetposp(stream, position);
-       AFTER_PACK_ORIGINAL_FILEP(ret, 0, stream, FD_API_OTHER, "pp", stream, position);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_fgetpos,
+                                 ret, 0, stream, FD_API_OTHER, "pp", stream, position);
        return ret;
 }
 
@@ -177,8 +187,9 @@ int fseek(FILE* stream, long int offset, int origin)
 
        BEFORE_ORIGINAL_FILE(fseek, LIBC);
        ret = fseekp(stream, offset, origin);
-       AFTER_PACK_ORIGINAL_FILEP(ret, (unsigned int)offset, stream, FD_API_OTHER,
-                       "pxd", stream, offset, origin);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_fseek,
+                                 ret, (unsigned int)offset, stream, FD_API_OTHER,
+                                 "pxd", stream, offset, origin);
        return ret;
 }
 
@@ -188,7 +199,8 @@ int fsetpos(FILE* stream, const fpos_t* pos)
 
        BEFORE_ORIGINAL_FILE(fsetpos, LIBC);
        ret = fsetposp(stream, pos);
-       AFTER_PACK_ORIGINAL_FILEP(ret, 0, stream, FD_API_OTHER, "pp", stream, pos);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_fsetpos,
+                                 ret, 0, stream, FD_API_OTHER, "pp", stream, pos);
        return ret;
 }
 
@@ -201,7 +213,8 @@ long int ftell(FILE* stream)
        
        lret = ftellp(stream);
 
-       AFTER_PACK_ORIGINAL_FILEP(lret, 0, stream, FD_API_OTHER, "p", stream);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_ftell,
+                                 lret, 0, stream, FD_API_OTHER, "p", stream);
 
        return lret;
 }
@@ -214,7 +227,8 @@ void rewind(FILE* stream)
 
        rewindp(stream);
 
-       AFTER_PACK_ORIGINAL_FILEP(0, 0, stream, FD_API_OTHER, "p", stream);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_rewind,
+                                 0, 0, stream, FD_API_OTHER, "p", stream);
 }
 
 void clearerr(FILE* stream)
@@ -225,7 +239,8 @@ void clearerr(FILE* stream)
 
        clearerrp(stream);
 
-       AFTER_PACK_ORIGINAL_FILEP(0, 0, stream, FD_API_OTHER, "p", stream);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_clearerr,
+                                 0, 0, stream, FD_API_OTHER, "p", stream);
 }
 
 int feof(FILE* stream)
@@ -234,7 +249,8 @@ int feof(FILE* stream)
 
        BEFORE_ORIGINAL_FILE(feof, LIBC);
        ret = feofp(stream);
-       AFTER_PACK_ORIGINAL_FILEP(ret, 0, stream, FD_API_OTHER, "p", stream);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_feof,
+                                 ret, 0, stream, FD_API_OTHER, "p", stream);
        return ret;
 }
 
@@ -244,7 +260,8 @@ int ferror(FILE* stream)
 
        BEFORE_ORIGINAL_FILE(ferror, LIBC);
        ret = ferrorp(stream);
-       AFTER_PACK_ORIGINAL_FILEP(ret, 0, stream, FD_API_OTHER, "p", stream);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_ferror,
+                                 ret, 0, stream, FD_API_OTHER, "p", stream);
        return ret;
 }
 
@@ -254,7 +271,8 @@ int fileno(FILE* stream)
 
        BEFORE_ORIGINAL_FILE(fileno, LIBC);
        ret = filenop(stream);
-       AFTER_PACK_ORIGINAL_FILEP(ret, 0, stream, FD_API_OTHER, "p", stream);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_fileno,
+                                 ret, 0, stream, FD_API_OTHER, "p", stream);
        return ret;
 }
 
@@ -266,7 +284,8 @@ void perror(const char* string)
 
        perrorp(string);
 
-       AFTER_PACK_ORIGINAL_NOFD(0, 0, FD_API_OTHER, "s", string);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_perror,
+                                0, 0, FD_API_OTHER, "s", string);
 }
 
 // *******************************************************************
@@ -279,7 +298,8 @@ int vfprintf(FILE* stream, const char* format, va_list arg)
 
        BEFORE_ORIGINAL_FILE(vfprintf, LIBC);
        ret = vfprintfp(stream, format, arg);
-       AFTER_PACK_ORIGINAL_FILEP(ret, ret, stream, FD_API_WRITE, "ps", stream, format);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_vfprintf,
+                                 ret, ret, stream, FD_API_WRITE, "ps", stream, format);
        return ret;
 }
 
@@ -289,7 +309,8 @@ int vfscanf(FILE* stream, const char* format, va_list arg)
 
        BEFORE_ORIGINAL_FILE(vfscanf, LIBC);
        ret = vfscanfp(stream, format, arg);
-       AFTER_PACK_ORIGINAL_FILEP(ret, ret, stream, FD_API_READ, "ps", stream, format);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_vfscanf,
+                                 ret, stream, FD_API_READ, "ps", stream, format);
        return ret;
 }
 
@@ -299,7 +320,8 @@ int fgetc(FILE* stream)
 
        BEFORE_ORIGINAL_FILE(fgetc, LIBC);
        ret = fgetcp(stream);
-       AFTER_PACK_ORIGINAL_FILEP(ret, (ret == EOF ? 0 : 1), stream, FD_API_READ, "p", stream);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_fgetc,
+                                 ret, (ret == EOF ? 0 : 1), stream, FD_API_READ, "p", stream);
        return ret;
 }
 
@@ -326,8 +348,9 @@ int fputc(int character, FILE* stream)
 
        BEFORE_ORIGINAL_FILE(fputc, LIBC);
        ret = fputcp(character, stream);
-       AFTER_PACK_ORIGINAL_FILEP(ret, (ret == EOF ? 0 : 1), stream, FD_API_WRITE,
-                       "dp", character, stream);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_fputc,
+                                 ret, (ret == EOF ? 0 : 1), stream, FD_API_WRITE,
+                                 "dp", character, stream);
        return ret;
 }
 
@@ -337,7 +360,8 @@ int fputs(const char* str, FILE* stream)
 
        BEFORE_ORIGINAL_FILE(fputs, LIBC);
        ret = fputsp(str, stream);
-       AFTER_PACK_ORIGINAL_FILEP(ret, ret, stream, FD_API_WRITE, "sp", str, stream);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_fputs,
+                                 ret, ret, stream, FD_API_WRITE, "sp", str, stream);
        return ret;
 }
 
@@ -347,7 +371,8 @@ int getc(FILE* stream)
 
        BEFORE_ORIGINAL_FILE(getc, LIBC);
        ret = getcp(stream);
-       AFTER_PACK_ORIGINAL_FILEP(ret, (ret == EOF ? 0 : 1), stream, FD_API_READ, "p", stream);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_getc,
+                                 ret, (ret == EOF ? 0 : 1), stream, FD_API_READ, "p", stream);
        return ret;
 }
 
@@ -357,8 +382,9 @@ int putc(int character, FILE* stream)
 
        BEFORE_ORIGINAL_FILE(putc, LIBC);
        ret = putcp(character, stream);
-       AFTER_PACK_ORIGINAL_FILEP(ret, (ret == EOF ? 0 : 1), stream, FD_API_WRITE,
-                       "dp", character, stream);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_putc,
+                                 ret, (ret == EOF ? 0 : 1), stream, FD_API_WRITE,
+                                 "dp", character, stream);
        return ret;
 }
 
@@ -368,7 +394,8 @@ int ungetc(int character, FILE* stream)
 
        BEFORE_ORIGINAL_FILE(ungetc, LIBC);
        ret = ungetcp(character, stream);
-       AFTER_PACK_ORIGINAL_FILEP(ret, 0, stream, FD_API_OTHER, "dp", character, stream);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_ungetc,
+                                 ret, 0, stream, FD_API_OTHER, "dp", character, stream);
        return ret;
 }
 
@@ -381,8 +408,9 @@ size_t fread(void* ptr, size_t size, size_t count, FILE* stream)
 
        tret = freadp(ptr, size, count, stream);
 
-       AFTER_PACK_ORIGINAL_FILEP(tret, 0, stream, FD_API_READ,
-                       "pxxp", ptr, size, count, stream);      
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_fread,
+                                 tret, 0, stream, FD_API_READ,
+                                 "pxxp", ptr, size, count, stream);    
 
        return tret;
 }
@@ -396,8 +424,9 @@ size_t fwrite(const void* ptr, size_t size, size_t count, FILE* stream)
 
        tret = fwritep(ptr, size, count, stream);
 
-       AFTER_PACK_ORIGINAL_FILEP(tret, 0, stream, FD_API_WRITE,
-                       "pxxp", ptr, size, count, stream);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_fwrite,
+                                 tret, 0, stream, FD_API_WRITE,
+                                 "pxxp", ptr, size, count, stream);
 
        return tret;
 }
@@ -415,7 +444,8 @@ int fprintf(FILE* stream, const char* format, ...)
        va_start(arg, format);
        ret = vfprintfp(stream, format, arg);
 
-       AFTER_PACK_ORIGINAL_FILEP(ret, ret, stream, FD_API_WRITE, "ps", stream, format);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_fprintf,
+                                 ret, ret, stream, FD_API_WRITE, "ps", stream, format);
        va_end(arg);
 
        return ret;
@@ -431,7 +461,8 @@ int fscanf(FILE* stream, const char* format, ...)
        va_start(arg, format);
        ret = vfscanfp(stream, format, arg);
 
-       AFTER_PACK_ORIGINAL_FILEP(ret, ret, stream, FD_API_READ, "ps", stream, format);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_fscanf,
+                                 ret, ret, stream, FD_API_READ, "ps", stream, format);
        va_end(arg);
 
        return ret;
@@ -448,7 +479,8 @@ int printf(const char* format, ...)
        va_start(arg, format);
        ret = vprintfp(format, arg);
 
-       AFTER_PACK_ORIGINAL_NOFD(ret, ret, FD_API_WRITE, "s", format);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_printf,
+                                ret, ret, FD_API_WRITE, "s", format);
        va_end(arg);
 
        return ret;
@@ -465,7 +497,8 @@ int scanf(const char* format, ...)
        va_start(arg, format);
        ret = vscanfp(format, arg);
 
-       AFTER_PACK_ORIGINAL_NOFD(ret, ret, FD_API_READ, "s", format);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_scanf,
+                                ret, ret, FD_API_READ, "s", format);
        va_end(arg);
 
        return ret;
@@ -477,7 +510,8 @@ int getchar()
 
        BEFORE_ORIGINAL_FILE(getchar, LIBC);
        ret = getcharp();
-       AFTER_PACK_ORIGINAL_NOFD(ret, (ret == EOF ? 0 : 1), FD_API_READ, "s", "");
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_getchar,
+                                ret, (ret == EOF ? 0 : 1), FD_API_READ, "s", "");
        return ret;
 }
 
@@ -487,7 +521,8 @@ int putchar(int c)
 
        BEFORE_ORIGINAL_FILE(putchar, LIBC);
        ret = putcharp(c);
-       AFTER_PACK_ORIGINAL_NOFD(ret, (ret == EOF ? 0 : 1), FD_API_WRITE, "d", c);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_putchar,
+                                ret, (ret == EOF ? 0 : 1), FD_API_WRITE, "d", c);
        return ret;
 }
 
@@ -500,7 +535,8 @@ char* gets(char* str)
 
        cret = getsp(str);
 
-       AFTER_PACK_ORIGINAL_NOFD(cret, strlen(cret), FD_API_READ, "s", str);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_gets,
+                                cret, strlen(cret), FD_API_READ, "s", str);
 
        return cret;
 }
@@ -512,7 +548,8 @@ int puts(const char* str)
 
        BEFORE_ORIGINAL_FILE(puts, LIBC);
        ret = putsp(str);
-       AFTER_PACK_ORIGINAL_NOFD(ret, ret, FD_API_WRITE, "s", str);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_puts,
+                                ret, ret, FD_API_WRITE, "s", str);
        return ret;
 }
 #endif
@@ -526,7 +563,8 @@ char* tmpnam(char* str)
 
        cret = tmpnamp(str);
 
-       AFTER_PACK_ORIGINAL_NOFD(cret, 0, FD_API_OTHER, "s", str);
+       AFTER_PACK_ORIGINAL_NOFD(API_ID_tmpnam,
+                                cret, 0, FD_API_OTHER, "s", str);
 
        return cret;
 }
@@ -539,7 +577,8 @@ void setbuf(FILE* stream, char* buf)
 
        setbufp(stream, buf);
 
-       AFTER_PACK_ORIGINAL_FILEP(0, 0, stream, FD_API_OTHER, "pp", stream, buf);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_setbuf,
+                                 0, 0, stream, FD_API_OTHER, "pp", stream, buf);
 }
 
 void setbuffer(FILE* stream, char* buf, size_t size)
@@ -550,8 +589,9 @@ void setbuffer(FILE* stream, char* buf, size_t size)
 
        setbufferp(stream, buf, size);
 
-       AFTER_PACK_ORIGINAL_FILEP(0, size, stream, FD_API_OTHER,
-                       "ppx", stream, buf, size);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_setbuffer,
+                                 0, size, stream, FD_API_OTHER,
+                                 "ppx", stream, buf, size);
 }
 
 void setlinebuf(FILE* stream)
@@ -562,7 +602,8 @@ void setlinebuf(FILE* stream)
 
        setlinebufp(stream);
 
-       AFTER_PACK_ORIGINAL_FILEP(0, 0, stream, FD_API_OTHER, "p", stream);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_setlinebuf,
+                                 0, 0, stream, FD_API_OTHER, "p", stream);
 }
 
 int setvbuf(FILE* stream, char* buf, int mode, size_t size)
@@ -571,8 +612,9 @@ int setvbuf(FILE* stream, char* buf, int mode, size_t size)
 
        BEFORE_ORIGINAL_FILE(setvbuf, LIBC);
        ret = setvbufp(stream,buf,mode,size);
-       AFTER_PACK_ORIGINAL_FILEP(ret, size, stream, FD_API_OTHER,
-                       "ppdx", stream, buf, mode, size);
+       AFTER_PACK_ORIGINAL_FILEP(API_ID_setvbuf,
+                                 ret, size, stream, FD_API_OTHER,
+                                 "ppdx", stream, buf, mode, size);
        return ret;
 }
 
index e3de581..58fa4be 100755 (executable)
@@ -9,6 +9,7 @@
  * Woojin Jung <woojin2.jung@samsung.com>
  * Juyoung Kim <j0.kim@samsung.com>
  * Anastasia Lyupa <a.lyupa@samsung.com>
+ * Dmitry Bogatov <d.bogatov@samsung.com>
  * 
  * This library is free software; you can redistribute it and/or modify it under
  * the terms of the GNU Lesser General Public License as published by the
@@ -96,7 +97,9 @@ static void *malloc_hook(size_t size, const void* caller)
        POST_PACK_PROBEBLOCK_BEGIN();
        
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY, LC_MEMORY, "xp", size, caller);
+       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY,
+                         API_ID_malloc,
+                         "xp", size, caller);
        PACK_COMMON_END(pret, newerrno, blockresult);
        PACK_MEMORY(size, MEMORY_API_ALLOC, pret);
        FLUSH_LOCAL_BUF();
@@ -127,7 +130,9 @@ static void free_hook(void *ptr, const void *caller)
        POST_PACK_PROBEBLOCK_BEGIN();
        
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY, LC_MEMORY, "pp", ptr, caller);
+       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY,
+                         API_ID_free,
+                         "pp", ptr, caller);
        PACK_COMMON_END(0, newerrno, blockresult);
        PACK_MEMORY(0, MEMORY_API_FREE, ptr);
        FLUSH_LOCAL_BUF();
@@ -162,7 +167,9 @@ static void* realloc_hook(void *memblock, size_t size, const void* caller)
        POST_PACK_PROBEBLOCK_BEGIN();
        
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY, LC_MEMORY, "pxp", memblock, size, caller);
+       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY,
+                         API_ID_realloc,
+                         "pxp", memblock, size, caller);
        PACK_COMMON_END(pret, newerrno, blockresult);
        PACK_MEMORY(size, MEMORY_API_ALLOC, pret);
        FLUSH_LOCAL_BUF();
@@ -201,7 +208,9 @@ void *calloc(size_t nelem, size_t elsize)
        POST_PACK_PROBEBLOCK_BEGIN();
 
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY, LC_MEMORY, "xx", nelem, elsize);
+       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY,
+                         API_ID_calloc,
+                         "xx", nelem, elsize);
        PACK_COMMON_END(pret, newerrno, blockresult);
        PACK_MEMORY(nelem * elsize, MEMORY_API_ALLOC, pret);
        FLUSH_LOCAL_BUF();
index 1505bb6..140788b 100644 (file)
@@ -60,7 +60,9 @@ void *memset(void *memblock, int c, size_t n)
        POST_PACK_PROBEBLOCK_BEGIN();
                
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY, LC_MEMORY, "pdx", memblock, c, n);
+       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY,
+                         API_ID_memset,
+                         "pdx", memblock, c, n);
        PACK_COMMON_END(pret, newerrno, blockresult);
        PACK_MEMORY(n, MEMORY_API_MANAGE, pret);
        FLUSH_LOCAL_BUF();
@@ -84,7 +86,9 @@ int memcmp(const void * ptr1, const void * ptr2, size_t num)
        POST_PACK_PROBEBLOCK_BEGIN();
                        
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY, LC_MEMORY, "ppx", ptr1, ptr2, num);
+       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY,
+                         API_ID_memcmp,
+                         "ppx", ptr1, ptr2, num);
        PACK_COMMON_END(ret, newerrno, blockresult);
        PACK_MEMORY(num, MEMORY_API_MANAGE, ret);
        FLUSH_LOCAL_BUF();
@@ -109,7 +113,9 @@ void *memcpy(void * destination, const void * source, size_t num )
        POST_PACK_PROBEBLOCK_BEGIN();
        
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY, LC_MEMORY, "ppx", destination, source, num);
+       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY,
+                         API_ID_memcpy,
+                         "ppx", destination, source, num);
        PACK_COMMON_END(pret, newerrno, blockresult);
        PACK_MEMORY(num, MEMORY_API_MANAGE, pret);
        FLUSH_LOCAL_BUF();
index ce09768..10c8f93 100644 (file)
@@ -69,7 +69,9 @@ void *operator new(std::size_t size) throw (std::bad_alloc)
        POST_PACK_PROBEBLOCK_BEGIN();
 
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY, LC_MEMORY, "x", size);
+       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY,
+                         API_ID_void__operator_new_std__size_t_size__throw__std__bad_alloc_,
+                         "x", size);
        PACK_COMMON_END(pret, newerrno, blockresult);
        PACK_MEMORY(size, MEMORY_API_ALLOC, pret);
        FLUSH_LOCAL_BUF();
@@ -100,7 +102,9 @@ void *operator new[](std::size_t size) throw (std::bad_alloc)
        POST_PACK_PROBEBLOCK_BEGIN();
        
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY, LC_MEMORY, "x", size);
+       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY,
+                         API_ID_void__operator_new___std__size_t_size__throw__std__bad_alloc_,
+                         "x", size);
        PACK_COMMON_END(pret, newerrno, blockresult);
        PACK_MEMORY(size, MEMORY_API_ALLOC, pret);
        FLUSH_LOCAL_BUF();
@@ -130,7 +134,9 @@ void operator delete(void *ptr) throw()
        POST_PACK_PROBEBLOCK_BEGIN();
        
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY, LC_MEMORY, "p", ptr);
+       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY,
+                         API_ID_void_operator_delete_void__ptr__throw__,
+                         "p", ptr);
        PACK_COMMON_END(0, newerrno, blockresult);
        PACK_MEMORY(0, MEMORY_API_FREE, ptr);
        FLUSH_LOCAL_BUF();
@@ -158,7 +164,9 @@ void operator delete[](void *ptr) throw()
        POST_PACK_PROBEBLOCK_BEGIN();
        
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY, LC_MEMORY, "p", ptr);
+       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY,
+                         API_ID_void_operator_delete___void__ptr__throw__,
+                         "p", ptr);
        PACK_COMMON_END(0, newerrno, blockresult);
        PACK_MEMORY(0, MEMORY_API_FREE, ptr);
        FLUSH_LOCAL_BUF();
@@ -187,7 +195,9 @@ void *operator new(std::size_t size, const std::nothrow_t& nothrow) throw()
        POST_PACK_PROBEBLOCK_BEGIN();
        
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY, LC_MEMORY, "xp", size, &nothrow);
+       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY,
+                         API_ID_void__operator_new_std__size_t_size__const_std__nothrow_t__nothrow__throw__,
+                         "xp", size, &nothrow);
        PACK_COMMON_END(pret, newerrno, blockresult);
        PACK_MEMORY(size, MEMORY_API_ALLOC, pret);
        FLUSH_LOCAL_BUF();
@@ -218,7 +228,9 @@ void *operator new[](std::size_t size, const std::nothrow_t& nothrow) throw()
        POST_PACK_PROBEBLOCK_BEGIN();
        
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY, LC_MEMORY, "xp", size, &nothrow);
+       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY,
+                         API_ID_void__operator_new___std__size_t_size__const_std__nothrow_t__nothrow__throw__,
+                         "xp", size, &nothrow);
        PACK_COMMON_END(pret, newerrno, blockresult);
        PACK_MEMORY(size, MEMORY_API_ALLOC, pret);
        FLUSH_LOCAL_BUF();
@@ -248,7 +260,9 @@ void operator delete(void *ptr, const std::nothrow_t& nothrow) throw()
        POST_PACK_PROBEBLOCK_BEGIN();
        
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY, LC_MEMORY, "pp", ptr, &nothrow);
+       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY,
+                         API_ID_void_operator_delete_void__ptr__const_std__nothrow_t__nothrow__throw__,
+                         "pp", ptr, &nothrow);
        PACK_COMMON_END(0, newerrno, blockresult);
        PACK_MEMORY(0, MEMORY_API_FREE, ptr);
        FLUSH_LOCAL_BUF();
@@ -276,7 +290,9 @@ void operator delete[](void *ptr, const std::nothrow_t& nothrow) throw()
        POST_PACK_PROBEBLOCK_BEGIN();
                
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY, LC_MEMORY, "pp", ptr, &nothrow);
+       PACK_COMMON_BEGIN(MSG_PROBE_MEMORY,
+                         API_ID_void_operator_delete___void__ptr__const_std__nothrow_t__nothrow__throw__,
+                         "pp", ptr, &nothrow);
        PACK_COMMON_END(0, newerrno, blockresult);
        PACK_MEMORY(0, MEMORY_API_FREE, ptr);
        FLUSH_LOCAL_BUF();
index 4b306ad..8c0fd44 100644 (file)
 
 #include "daprobe.h"
 
-#define AFTER_PACK_ORIGINAL_SOCK(RVAL, SIZE, FD, APITYPE, INPUTFORMAT, ...)                    \
+#define AFTER_PACK_ORIGINAL_SOCK(API_ID, RVAL, SIZE, FD, APITYPE, INPUTFORMAT, ...) \
        POST_PACK_PROBEBLOCK_BEGIN();                                                                                                   \
        PREPARE_LOCAL_BUF();                                                                                                                    \
-       PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, LC_RESOURCE, INPUTFORMAT, __VA_ARGS__);   \
+       PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, API_ID, INPUTFORMAT, __VA_ARGS__);        \
        PACK_COMMON_END(RVAL, newerrno, blockresult);                                                                   \
        PACK_RESOURCE(SIZE, FD, FD_SOCKET, APITYPE,     0, "");                                                         \
        FLUSH_LOCAL_BUF();                                                                                                                              \
index 56433cf..1eb671e 100644 (file)
@@ -61,7 +61,8 @@ int socket(int domain, int type, int protocol)
 
        ret = socketp(domain, type, protocol);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, ret, FD_API_OPEN, "ddd", domain, type, protocol);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_socket,
+                                ret, 0, ret, FD_API_OPEN, "ddd", domain, type, protocol);
 
        return ret;
 }
@@ -75,8 +76,9 @@ int socketpair(int domain, int type, int protocol,int socket_vector[2])
        ret = socketpairp(domain, type, protocol, socket_vector);
 
        //TODO: socket pair: socket_vector[0]/socket_vector[1], FD - ?
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, socket_vector[0], FD_API_OPEN, 
-                       "dddp", domain, type, protocol, socket_vector);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_socketpair,
+                                ret, 0, socket_vector[0], FD_API_OPEN, 
+                                "dddp", domain, type, protocol, socket_vector);
        
        return ret;
 }
@@ -89,7 +91,8 @@ int shutdown(int socket, int how)
        
        ret = shutdownp(socket, how);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, socket, FD_API_OTHER, "dd", socket, how);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_shutdown,
+                                ret, 0, socket, FD_API_OTHER, "dd", socket, how);
 
        return ret;
 }
@@ -102,8 +105,9 @@ int bind(int socket, const struct sockaddr *address, socklen_t address_len)
        
        ret = bindp(socket, address, address_len);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, socket, FD_API_MANAGE,
-                       "dpd", socket, address, address_len);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_bind,
+                                ret, 0, socket, FD_API_MANAGE,
+                                "dpd", socket, address, address_len);
        
        return ret;
 }
@@ -116,7 +120,8 @@ int listen(int socket, int backlog)
        
        ret = listenp(socket, backlog);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, socket, FD_API_MANAGE, "dd", socket, backlog);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_listen,
+                                ret, 0, socket, FD_API_MANAGE, "dd", socket, backlog);
 
        return ret;
 }
@@ -129,8 +134,9 @@ int accept(int socket, struct sockaddr *address, socklen_t *address_len)
        
        ret = acceptp(socket, address, address_len);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, socket, FD_API_MANAGE,
-                       "dpp", socket, address, address_len);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_accept,
+                                ret, 0, socket, FD_API_MANAGE,
+                                "dpp", socket, address, address_len);
        
        return ret;
 }
@@ -143,8 +149,9 @@ int accept4(int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags)
        
        ret = accept4p(sockfd, addr, addrlen, flags);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, sockfd, FD_API_MANAGE,
-                       "dppd", sockfd, addr, addrlen, flags);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_accept4,
+                                ret, 0, sockfd, FD_API_MANAGE,
+                                "dppd", sockfd, addr, addrlen, flags);
 
        return ret;
 }
@@ -157,8 +164,9 @@ int connect(int socket, const struct sockaddr *address, socklen_t address_len)
        
        ret = connectp(socket, address, address_len);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, address_len, socket, FD_API_MANAGE,
-                       "dpd", socket, address, address_len);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_connect,
+                                ret, address_len, socket, FD_API_MANAGE,
+                                "dpd", socket, address, address_len);
        
        return ret;
 }
@@ -171,8 +179,9 @@ int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struc
        
        ret = selectp(nfds, readfds, writefds,exceptfds, timeout);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, nfds, FD_API_MANAGE,
-                       "dpppp", nfds, readfds, writefds, exceptfds, timeout);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_select,
+                                ret, 0, nfds, FD_API_MANAGE,
+                                "dpppp", nfds, readfds, writefds, exceptfds, timeout);
                        
        return ret;
 }
@@ -185,8 +194,9 @@ int pselect(int nfds, fd_set *readfds, fd_set *writefds,fd_set *exceptfds, const
        
        ret = pselectp(nfds, readfds, writefds,exceptfds, ntimeout, sigmask);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, nfds, FD_API_MANAGE,   "dppppp",
-                       nfds, readfds, writefds, exceptfds, ntimeout, sigmask);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_pselect,
+                                ret, 0, nfds, FD_API_MANAGE,   "dppppp",
+                                nfds, readfds, writefds, exceptfds, ntimeout, sigmask);
  
        return ret;
 }
@@ -200,8 +210,9 @@ ssize_t send(int socket, const void *message, size_t length, int flags)
        
        sret = sendp(socket, message, length, flags);
 
-       AFTER_PACK_ORIGINAL_SOCK(sret, sret, socket, FD_API_SEND,
-                       "dpxd", socket, message, length, flags);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_send,
+                                sret, sret, socket, FD_API_SEND,
+                                "dpxd", socket, message, length, flags);
        
        return sret;
 }
@@ -215,8 +226,9 @@ ssize_t sendmsg(int socket, const struct msghdr *message, int flags)
        
        sret = sendmsgp(socket, message, flags);
 
-       AFTER_PACK_ORIGINAL_SOCK(sret, sret, socket, FD_API_SEND,
-                       "dpd", socket, message, flags);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_sendmsg,
+                                sret, sret, socket, FD_API_SEND,
+                                "dpd", socket, message, flags);
  
        return sret;
 }
@@ -230,8 +242,9 @@ ssize_t sendto(int socket, const void *message, size_t length, int flags,const s
        
        sret = sendtop(socket, message, length, flags, dest_addr, dest_len);
 
-       AFTER_PACK_ORIGINAL_SOCK(sret, sret, socket, FD_API_SEND,
-                       "dpxdpd", socket, message, length, flags, dest_addr, dest_len);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_sendto,
+                                sret, sret, socket, FD_API_SEND,
+                                "dpxdpd", socket, message, length, flags, dest_addr, dest_len);
  
        return sret;
 }
@@ -245,8 +258,9 @@ ssize_t recv(int socket, void *buffer, size_t length, int flags)
 
        sret = recvp(socket, buffer, length, flags);
 
-       AFTER_PACK_ORIGINAL_SOCK(sret, sret, socket, FD_API_RECEIVE,
-                       "dpxd", socket, buffer, length, flags);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_recv,
+                                sret, sret, socket, FD_API_RECEIVE,
+                                "dpxd", socket, buffer, length, flags);
        
        return sret;
 }
@@ -260,8 +274,9 @@ ssize_t recvfrom(int socket, void *buffer, size_t length, int flags, struct sock
        
        sret = recvfromp(socket, buffer, length, flags, address, address_len);
 
-       AFTER_PACK_ORIGINAL_SOCK(sret, sret, socket, FD_API_RECEIVE,
-                       "dpxdpp", socket, buffer, length, flags, address, address_len);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_recvfrom,
+                                sret, sret, socket, FD_API_RECEIVE,
+                                "dpxdpp", socket, buffer, length, flags, address, address_len);
 
        return sret;
 }
@@ -275,8 +290,9 @@ ssize_t recvmsg(int socket, struct msghdr *message, int flags)
        
        sret = recvmsgp(socket, message, flags);
 
-       AFTER_PACK_ORIGINAL_SOCK(sret, sret, socket, FD_API_RECEIVE,
-                       "dpd", socket, message, flags);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_recvmsg,
+                                sret, sret, socket, FD_API_RECEIVE,
+                                "dpd", socket, message, flags);
 
        return sret;
 }
@@ -290,7 +306,8 @@ uint32_t htonl(uint32_t hostlong)
        
        uret = htonlp(hostlong);
 
-       AFTER_PACK_ORIGINAL_SOCK(uret, 0, 0, FD_API_OTHER, "d", hostlong); 
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_htonl,
+                                uret, 0, 0, FD_API_OTHER, "d", hostlong); 
  
        return uret;
 }
@@ -304,7 +321,8 @@ uint16_t htons(uint16_t hostshort)
        
        uret = htonsp(hostshort);
 
-       AFTER_PACK_ORIGINAL_SOCK(uret, 0, 0, FD_API_OTHER, "d", hostshort); 
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_htons,
+                                uret, 0, 0, FD_API_OTHER, "d", hostshort); 
  
        return uret;
 }
@@ -318,7 +336,8 @@ uint32_t ntohl(uint32_t netlong)
        
        uret = ntohlp(netlong);
 
-       AFTER_PACK_ORIGINAL_SOCK(uret, 0, 0, FD_API_OTHER, "d", netlong); 
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_ntohl,
+                                uret, 0, 0, FD_API_OTHER, "d", netlong); 
 
        return uret;
 }
@@ -332,7 +351,8 @@ uint16_t ntohs(uint16_t netshort)
        
        uret = ntohsp(netshort);
 
-       AFTER_PACK_ORIGINAL_SOCK(uret, 0, 0, FD_API_OTHER, "d", netshort); 
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_ntohs,
+                                uret, 0, 0, FD_API_OTHER, "d", netshort); 
 
        return uret;
 }
@@ -445,7 +465,8 @@ uint32_t le32toh(uint32_t little_endian_32bits)
 
        uret = le32tohp(little_endian_32bits);
 
-       AFTER_PACK_ORIGINAL_SOCK(uret, 0, 0, FD_API_OTHER, "d", little_endian_32bits); 
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_le32toh,
+                                uret, 0, 0, FD_API_OTHER, "d", little_endian_32bits); 
 
        return uret;
 }
@@ -501,7 +522,8 @@ uint64_t le64toh(uint64_t little_endian_64bits)
 
        uret = le64tohp(little_endian_64bits);
 
-       AFTER_PACK_ORIGINAL_SOCK(uret, 0, 0, FD_API_OTHER, "x", little_endian_64bits); 
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_le64toh,
+                                uret, 0, 0, FD_API_OTHER, "x", little_endian_64bits); 
 
        return uret;
 }
@@ -516,7 +538,8 @@ int inet_aton(const char *cp, struct in_addr *inp)
        
        ret = inet_atonp(cp,inp);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, 0, FD_API_OTHER, "pp", cp, inp);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_inet_aton,
+                                ret, 0, 0, FD_API_OTHER, "pp", cp, inp);
  
        return ret;
 }
@@ -530,7 +553,8 @@ in_addr_t inet_addr(const char *cp)
  
        iret = inet_addrp(cp);
 
-       AFTER_PACK_ORIGINAL_SOCK(iret, 0, 0, FD_API_OTHER, "p", cp);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_inet_addr,
+                                iret, 0, 0, FD_API_OTHER, "p", cp);
        
        return iret;
 }
@@ -544,7 +568,8 @@ in_addr_t inet_network(const char *cp)
  
        iret = inet_networkp(cp);
 
-       AFTER_PACK_ORIGINAL_SOCK(iret, 0, 0, FD_API_OTHER, "p", cp);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_inet_network,
+                                iret, 0, 0, FD_API_OTHER, "p", cp);
 
        return iret;
 }
@@ -558,7 +583,7 @@ char *inet_ntoa(struct in_addr in)
  
        sret = inet_ntoap(in);
 
-       AFTER_PACK_ORIGINAL_SOCK(sret, 0, 0, FD_API_OTHER, "d", in.s_addr);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_inet_ntoa, sret, 0, 0, FD_API_OTHER, "d", in.s_addr);
  
        return sret;
 }
@@ -573,8 +598,9 @@ struct in_addr inet_makeaddr(int net, int host)
  
        iret = inet_makeaddrp(net,host);
 
-       AFTER_PACK_ORIGINAL_SOCK(iret.s_addr, 0, 0, FD_API_OTHER,
-                       "dd", net, host);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_inet_makeaddr,
+                                iret.s_addr, 0, 0, FD_API_OTHER,
+                                "dd", net, host);
 
        return iret;
 }
@@ -589,7 +615,8 @@ in_addr_t inet_lnaof(struct in_addr in)
  
        iret = inet_lnaofp(in);
 
-       AFTER_PACK_ORIGINAL_SOCK(iret, 0, 0, FD_API_OTHER, "d", in.s_addr);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_inet_lnaof,
+                                iret, 0, 0, FD_API_OTHER, "d", in.s_addr);
  
        return iret;
 }
@@ -603,7 +630,8 @@ in_addr_t inet_netof(struct in_addr in)
  
        iret = inet_netofp(in);
 
-       AFTER_PACK_ORIGINAL_SOCK(iret, 0, 0, FD_API_OTHER, "d", in.s_addr);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_inet_netof,
+                                iret, 0, 0, FD_API_OTHER, "d", in.s_addr);
  
        return iret;
 }
@@ -617,8 +645,9 @@ const char *inet_ntop(int af, const void *src, char *dst, socklen_t size)
  
        cret = inet_ntopp(af, src, dst, size);
 
-       AFTER_PACK_ORIGINAL_SOCK(cret, size, 0, FD_API_OTHER,
-                       "dppd", af, src, dst, size);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_inet_ntop,
+                                cret, size, 0, FD_API_OTHER,
+                                "dppd", af, src, dst, size);
  
        return cret;
 }
@@ -631,7 +660,8 @@ int inet_pton(int af, const char *src, void *dst)
  
        ret = inet_ptonp(af, src, dst);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, 0, FD_API_OTHER, "%dpp", af, src, dst);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_inet_pton,
+                                ret, 0, 0, FD_API_OTHER, "%dpp", af, src, dst);
  
        return ret;
 }
@@ -644,7 +674,8 @@ int getaddrinfo(const char *node, const char *service, const struct addrinfo *hi
  
        ret = getaddrinfop(node, service, hints, res);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, 0, FD_API_OTHER, "pppp", node, service, hints, res);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getaddrinfo,
+                                ret, 0, 0, FD_API_OTHER, "pppp", node, service, hints, res);
 
        return ret;
 }
@@ -657,7 +688,8 @@ void freeaddrinfo(struct addrinfo *res)
  
        freeaddrinfop(res);
 
-       AFTER_PACK_ORIGINAL_SOCK(0, 0, 0, FD_API_OTHER, "p", res);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_freeaddrinfo,
+                                0, 0, 0, FD_API_OTHER, "p", res);
 }
 
 const char *gai_strerror(int errcode)
@@ -669,7 +701,8 @@ const char *gai_strerror(int errcode)
  
        cret = gai_strerrorp(errcode);
 
-       AFTER_PACK_ORIGINAL_SOCK(cret, 0, 0, FD_API_OTHER, "d", errcode);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_gai_strerror,
+                                cret, 0, 0, FD_API_OTHER, "d", errcode);
 
        return cret;
 }
@@ -682,7 +715,8 @@ int gai_suspend(const struct gaicb* const list[], int nitems, const struct times
  
        ret = gai_suspendp(list,nitems,timeout);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, 0, FD_API_OTHER, "pdp", list, nitems, timeout);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_gai_suspend,
+                                ret, 0, 0, FD_API_OTHER, "pdp", list, nitems, timeout);
 
        return ret;
 }
@@ -695,7 +729,8 @@ int gai_error(struct gaicb *req)
  
        ret = gai_errorp(req);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, 0, FD_API_OTHER, "p", req);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_gai_error,
+                                ret, 0, 0, FD_API_OTHER, "p", req);
  
        return ret;
 }
@@ -708,7 +743,8 @@ int gai_cancel(struct gaicb *req)
  
        ret = gai_cancelp(req);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, 0, FD_API_OTHER, "p", req);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_gai_cancel,
+                                ret, 0, 0, FD_API_OTHER, "p", req);
  
        return ret;
 }
@@ -721,7 +757,8 @@ int getaddrinfo_a(int mode, struct gaicb *list[], int nitems, struct sigevent *s
  
        ret = getaddrinfo_ap(mode, list,nitems, sevp);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, 0, FD_API_OTHER, "dpdp", mode, list, nitems, sevp);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getaddrinfo_a,
+                                ret, 0, 0, FD_API_OTHER, "dpdp", mode, list, nitems, sevp);
  
        return ret;
 }
@@ -735,8 +772,9 @@ int getsockopt(int socket, int level, int option_name, void *option_value, sockl
  
        ret = getsockoptp(socket, level, option_name, option_value, option_len);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, socket, FD_API_OPTION, "dddpp",
-                       socket, level, option_name, option_value, option_len);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getsockopt,
+                                ret, 0, socket, FD_API_OPTION, "dddpp",
+                                socket, level, option_name, option_value, option_len);
  
        return ret;
 }
@@ -749,8 +787,9 @@ int setsockopt(int socket, int level, int option_name, const void *option_value,
 
        ret = setsockoptp(socket, level, option_name, option_value, option_len);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, option_len, socket, FD_API_OPTION, "dddpd",
-                       socket, level, option_name, option_value, option_len);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_setsockopt,
+                                ret, option_len, socket, FD_API_OPTION, "dddpd",
+                                socket, level, option_name, option_value, option_len);
 
        return ret;
 }
@@ -764,7 +803,8 @@ int getsockname(int sockfd, struct sockaddr *addr, socklen_t *addrlen )
  
        ret = getsocknamep(sockfd, addr, addrlen);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, sockfd, FD_API_OTHER, "dpp", sockfd, addr, addrlen);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getsockname,
+                                ret, 0, sockfd, FD_API_OTHER, "dpp", sockfd, addr, addrlen);
 
        return ret;
 }
@@ -777,7 +817,8 @@ int getdomainname(char *name, size_t len)
  
        ret = getdomainnamep(name, len);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, len, 0, FD_API_OTHER, "px", name, len);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getdomainname,
+                                ret, len, 0, FD_API_OTHER, "px", name, len);
 
        return ret;
 }
@@ -790,7 +831,8 @@ int setdomainname(const char *name, size_t len)
  
        ret = setdomainnamep(name, len);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, len, 0, FD_API_OTHER, "px", name, len);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_setdomainname,
+                                ret, len, 0, FD_API_OTHER, "px", name, len);
  
        return ret;
 }
@@ -803,7 +845,8 @@ int gethostname(char *name, size_t len)
  
        ret = gethostnamep(name, len);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, len, 0, FD_API_OTHER, "px", name, len);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_gethostname,
+                                ret, len, 0, FD_API_OTHER, "px", name, len);
  
        return ret;
 }
@@ -816,7 +859,8 @@ int sethostname(const char *name, size_t len)
  
        ret = sethostnamep(name, len);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, len, 0, FD_API_OTHER, "px", name, len);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_sethostname,
+                                ret, len, 0, FD_API_OTHER, "px", name, len);
  
        return ret;
 }
@@ -829,7 +873,8 @@ int getpeername(int s, struct sockaddr *addr, socklen_t *len)
  
        ret = getpeernamep(s, addr, len);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, s, FD_API_OTHER, "dpp", s, addr, len);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getpeername,
+                                ret, 0, s, FD_API_OTHER, "dpp", s, addr, len);
  
        return ret;
 }
@@ -842,8 +887,9 @@ int getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host, socklen_
  
        ret = getnameinfop(sa, salen,host, hostlen, serv, servlen, flags);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, 0, FD_API_OTHER, "pdpdpdd",
-                       sa, salen, host, hostlen, serv, servlen, flags);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getnameinfo,
+                                ret, 0, 0, FD_API_OTHER, "pdpdpdd",
+                                sa, salen, host, hostlen, serv, servlen, flags);
  
        return ret;
 }
@@ -857,7 +903,8 @@ struct hostent *gethostbyname(const char *name)
 
        pret = gethostbynamep(name);
 
-       AFTER_PACK_ORIGINAL_SOCK(pret, 0, 0, FD_API_OTHER, "p", name);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_gethostbyname,
+                                pret, 0, 0, FD_API_OTHER, "p", name);
 
        return pret;
 }
@@ -871,7 +918,8 @@ struct hostent *gethostbyaddr(const void *addr, socklen_t len, int type)
  
        pret = gethostbyaddrp(addr, len, type);
 
-       AFTER_PACK_ORIGINAL_SOCK(pret, 0, 0, FD_API_OTHER, "pdd", addr, len, type);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_gethostbyaddr,
+                                pret, 0, 0, FD_API_OTHER, "pdd", addr, len, type);
 
        return pret;
 }
@@ -884,7 +932,8 @@ void sethostent(int stayopen)
  
        sethostentp(stayopen);
 
-       AFTER_PACK_ORIGINAL_SOCK(0, 0, 0, FD_API_OTHER, "d", stayopen);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_sethostent,
+                                0, 0, 0, FD_API_OTHER, "d", stayopen);
 }
 
 void endhostent(void)
@@ -895,7 +944,8 @@ void endhostent(void)
 
        endhostentp();
 
-       AFTER_PACK_ORIGINAL_SOCK(0, 0, 0, FD_API_OTHER, "", 0);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_endhostent,
+                                0, 0, 0, FD_API_OTHER, "", 0);
 }
 
 void herror(const char *s)
@@ -906,7 +956,8 @@ void herror(const char *s)
  
        herrorp(s);
 
-       AFTER_PACK_ORIGINAL_SOCK(0, 0, 0, FD_API_OTHER, "p", s);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_herror,
+                                0, 0, 0, FD_API_OTHER, "p", s);
 }
 
 const char *hstrerror(int err)
@@ -918,7 +969,8 @@ const char *hstrerror(int err)
  
        cret = hstrerrorp(err);
 
-       AFTER_PACK_ORIGINAL_SOCK(cret, 0, 0, FD_API_OTHER, "d", err);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_hstrerror,
+                                cret, 0, 0, FD_API_OTHER, "d", err);
 
        return cret;
 }
@@ -932,7 +984,8 @@ struct hostent *gethostent(void)
  
        pret = gethostentp();
 
-       AFTER_PACK_ORIGINAL_SOCK(pret, 0, 0, FD_API_OTHER, "", 0);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_gethostent,
+                                pret, 0, 0, FD_API_OTHER, "", 0);
 
        return pret;
 }
@@ -946,7 +999,8 @@ struct hostent *gethostbyname2(const char *name, int af)
  
        pret = gethostbyname2p(name, af);
 
-       AFTER_PACK_ORIGINAL_SOCK(pret, 0, 0, FD_API_OTHER, "pd", name, af);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_gethostbyname2,
+                                pret, 0, 0, FD_API_OTHER, "pd", name, af);
 
        return pret;
 }
@@ -959,8 +1013,9 @@ int gethostent_r(struct hostent *rret, char *buf, size_t buflen, struct hostent
        
        ret = gethostent_rp(rret, buf, buflen, result, h_errnop);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, 0, FD_API_OTHER, "ppxpp",
-                       rret, buf, buflen, result, h_errnop);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_gethostent_r,
+                                ret, 0, 0, FD_API_OTHER, "ppxpp",
+                                rret, buf, buflen, result, h_errnop);
 
        return ret;
 }
@@ -973,8 +1028,9 @@ int gethostbyaddr_r(const void *addr, socklen_t len, int type, struct hostent *r
 
        ret = gethostbyaddr_rp(addr, len, type, rret, buf, buflen, result, h_errnop);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, 0, FD_API_OTHER, "pddppxpp",
-                       addr, len, type, rret, buf, buflen, result, h_errnop);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_gethostbyaddr_r,
+                                ret, 0, 0, FD_API_OTHER, "pddppxpp",
+                                addr, len, type, rret, buf, buflen, result, h_errnop);
 
        return ret;
 }
@@ -987,8 +1043,9 @@ int gethostbyname_r(const char *name, struct hostent *rret, char *buf, size_t bu
 
        ret = gethostbyname_rp(name, rret, buf, buflen, result, h_errnop);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, 0, FD_API_OTHER, "pppxpp",
-                       name, rret, buf, buflen, result, h_errnop);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_gethostbyname_r,
+                                ret, 0, 0, FD_API_OTHER, "pppxpp",
+                                name, rret, buf, buflen, result, h_errnop);
 
        return ret;
 }
@@ -1001,8 +1058,9 @@ int gethostbyname2_r(const char *name, int af, struct hostent *rret, char *buf,
  
        ret = gethostbyname2_rp(name, af, rret, buf, buflen, result, h_errnop);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, 0, FD_API_OTHER, "pdppxpp",
-                       name, af, rret, buf, buflen, result, h_errnop);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_gethostbyname2_r,
+                                ret, 0, 0, FD_API_OTHER, "pdppxpp",
+                                name, af, rret, buf, buflen, result, h_errnop);
  
        return ret;
 }
@@ -1016,7 +1074,8 @@ struct servent *getservbyname(const char *name, const char *proto)
  
        pret = getservbynamep(name, proto);
 
-       AFTER_PACK_ORIGINAL_SOCK(pret, 0, 0, FD_API_OTHER, "pp", name, proto);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getservbyname,
+                                pret, 0, 0, FD_API_OTHER, "pp", name, proto);
 
        return pret;
 }
@@ -1029,7 +1088,8 @@ void setservent(int stayopen)
  
        setserventp(stayopen);
 
-       AFTER_PACK_ORIGINAL_SOCK(0, 0, 0, FD_API_OTHER, "d", stayopen);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_setservent,
+                                0, 0, 0, FD_API_OTHER, "d", stayopen);
 }
 
 void endservent(void)
@@ -1040,7 +1100,8 @@ void endservent(void)
  
        endserventp();
 
-       AFTER_PACK_ORIGINAL_SOCK(0, 0, 0, FD_API_OTHER, "", 0);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_endservent,
+                                0, 0, 0, FD_API_OTHER, "", 0);
 }
 
 struct servent *getservent(void)
@@ -1052,7 +1113,8 @@ struct servent *getservent(void)
  
        pret = getserventp();
 
-       AFTER_PACK_ORIGINAL_SOCK(pret, 0, 0, FD_API_OTHER, "", 0);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getservent,
+                                pret, 0, 0, FD_API_OTHER, "", 0);
 
        return pret;
 }
@@ -1066,7 +1128,8 @@ struct servent *getservbyport(int port, const char *proto)
  
        pret = getservbyportp(port, proto);
 
-       AFTER_PACK_ORIGINAL_SOCK(pret, 0, 0, FD_API_OTHER, "dp", port, proto);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getservbyport,
+                                pret, 0, 0, FD_API_OTHER, "dp", port, proto);
 
        return pret;
 }
@@ -1079,8 +1142,9 @@ int getservent_r(struct servent *result_buf, char *buf, size_t buflen, struct se
  
        ret = getservent_rp(result_buf, buf, buflen, result);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, 0, FD_API_OTHER, "ppxp",
-                       result_buf, buf, buflen, result);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getservent_r,
+                                ret, 0, 0, FD_API_OTHER, "ppxp",
+                                result_buf, buf, buflen, result);
 
        return ret;
 }
@@ -1093,8 +1157,9 @@ int getservbyname_r(const char *name, const char *proto, struct servent *result_
  
        ret = getservbyname_rp(name, proto, result_buf, buf, buflen, result);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, 0, FD_API_OTHER, "ppppxp",
-                       name, proto, result_buf, buf, buflen, result);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getservbyname_r,
+                                ret, 0, 0, FD_API_OTHER, "ppppxp",
+                                name, proto, result_buf, buf, buflen, result);
 
        return ret;
 }
@@ -1107,8 +1172,9 @@ int getservbyport_r(int port, const char *proto, struct servent *result_buf, cha
  
        ret = getservbyport_rp(port, proto, result_buf, buf, buflen, result);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, 0, FD_API_OTHER, "dpppxp",
-                       port, proto, result_buf, buf, buflen, result);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getservbyport_r,
+                                ret, 0, 0, FD_API_OTHER, "dpppxp",
+                                port, proto, result_buf, buf, buflen, result);
 
        return ret;
 }
@@ -1122,7 +1188,8 @@ struct netent* getnetent(void)
  
        pret = getnetentp();
 
-       AFTER_PACK_ORIGINAL_SOCK(pret, 0, 0, FD_API_OTHER, "", 0);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getnetent,
+                                pret, 0, 0, FD_API_OTHER, "", 0);
 
        return pret;
 }
@@ -1136,7 +1203,8 @@ struct netent *getnetbyname(const char *name)
  
        pret = getnetbynamep(name);
 
-       AFTER_PACK_ORIGINAL_SOCK(pret, 0, 0, FD_API_OTHER, "p", name);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getnetbyname,
+                                pret, 0, 0, FD_API_OTHER, "p", name);
  
        return pret;
 }
@@ -1150,7 +1218,8 @@ struct netent *getnetbyaddr(uint32_t net, int type)
 
        pret = getnetbyaddrp(net, type);
 
-       AFTER_PACK_ORIGINAL_SOCK(pret, 0, 0, FD_API_OTHER, "dd", net, type);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getnetbyaddr,
+                                pret, 0, 0, FD_API_OTHER, "dd", net, type);
 
        return pret;
 }
@@ -1163,7 +1232,8 @@ void setnetent(int stayopen)
  
        setnetentp(stayopen);
 
-       AFTER_PACK_ORIGINAL_SOCK(0, 0, 0, FD_API_OTHER, "d", stayopen);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_setnetent,
+                                0, 0, 0, FD_API_OTHER, "d", stayopen);
 }
 
 void endnetent(void)
@@ -1174,7 +1244,8 @@ void endnetent(void)
  
        endnetentp();
 
-       AFTER_PACK_ORIGINAL_SOCK(0, 0, 0, FD_API_OTHER, "", 0);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_endnetent,
+                                0, 0, 0, FD_API_OTHER, "", 0);
 }
 
 int getnetent_r(struct netent *result_buf, char *buf, size_t buflen, struct netent **result, int *h_errnop)
@@ -1185,8 +1256,9 @@ int getnetent_r(struct netent *result_buf, char *buf, size_t buflen, struct nete
  
        ret = getnetent_rp(result_buf, buf, buflen, result, h_errnop);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, 0, FD_API_OTHER, "ppxpp",
-                       result_buf, buf, buflen, result, h_errnop);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getnetent_r,
+                                ret, 0, 0, FD_API_OTHER, "ppxpp",
+                                result_buf, buf, buflen, result, h_errnop);
 
        return ret;
 }
@@ -1199,8 +1271,9 @@ int getnetbyname_r(const char *name, struct netent *result_buf, char *buf, size_
  
        ret = getnetbyname_rp(name,result_buf, buf, buflen, result, h_errnop);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, 0, FD_API_OTHER, "pppxpp",
-                       name, result_buf, buf, buflen, result, h_errnop);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getnetbyname_r,
+                                ret, 0, 0, FD_API_OTHER, "pppxpp",
+                                name, result_buf, buf, buflen, result, h_errnop);
 
        return ret;
 }
@@ -1213,8 +1286,9 @@ int getnetbyaddr_r(uint32_t net, int type, struct netent *result_buf, char *buf,
  
        ret = getnetbyaddr_rp(net, type, result_buf, buf, buflen, result, h_errnop);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, 0, FD_API_OTHER, "ddppxpp",
-                       net, type, result_buf, buf, buflen, result, h_errnop);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getnetbyaddr_r,
+                                ret, 0, 0, FD_API_OTHER, "ddppxpp",
+                                net, type, result_buf, buf, buflen, result, h_errnop);
 
        return ret;
 }
@@ -1228,7 +1302,8 @@ struct protoent *getprotoent(void)
  
        pret = getprotoentp();
 
-       AFTER_PACK_ORIGINAL_SOCK(pret, 0, 0, FD_API_OTHER, "", 0);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getprotoent,
+                                pret, 0, 0, FD_API_OTHER, "", 0);
  
        return pret;
 }
@@ -1242,7 +1317,8 @@ struct protoent *getprotobyname(const char *name)
  
        pret = getprotobynamep(name);
 
-       AFTER_PACK_ORIGINAL_SOCK(pret, 0, 0, FD_API_OTHER, "p", name);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getprotobyname,
+                                pret, 0, 0, FD_API_OTHER, "p", name);
 
        return pret;
 }
@@ -1256,7 +1332,8 @@ struct protoent *getprotobynumber(int proto)
  
        pret = getprotobynumberp(proto);
 
-       AFTER_PACK_ORIGINAL_SOCK(pret, 0, 0, FD_API_OTHER, "d", proto);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getprotobynumber,
+                                pret, 0, 0, FD_API_OTHER, "d", proto);
 
        return pret;
 }
@@ -1269,7 +1346,8 @@ void setprotoent(int stayopen)
  
        setprotoentp(stayopen);
 
-       AFTER_PACK_ORIGINAL_SOCK(0, 0, 0, FD_API_OTHER, "d", stayopen);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_setprotoent,
+                                0, 0, 0, FD_API_OTHER, "d", stayopen);
 }
 
 void endprotoent(void)
@@ -1280,7 +1358,8 @@ void endprotoent(void)
  
        endprotoentp();
  
-       AFTER_PACK_ORIGINAL_SOCK(0, 0, 0, FD_API_OTHER, "", 0);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_endprotoent,
+                                0, 0, 0, FD_API_OTHER, "", 0);
 }
 
 int getprotoent_r(struct protoent *result_buf, char *buf, size_t buflen, struct protoent **result)
@@ -1291,8 +1370,9 @@ int getprotoent_r(struct protoent *result_buf, char *buf, size_t buflen, struct
  
        ret = getprotoent_rp(result_buf, buf, buflen, result);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, 0, FD_API_OTHER, "ppxp",
-                       result_buf, buf, buflen, result);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getprotoent_r,
+                                ret, 0, 0, FD_API_OTHER, "ppxp",
+                                result_buf, buf, buflen, result);
 
        return ret;
 }
@@ -1305,8 +1385,9 @@ int getprotobyname_r(const char *name, struct protoent *result_buf, char *buf, s
  
        ret = getprotobyname_rp(name, result_buf, buf, buflen, result);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, 0, FD_API_OTHER, "pppxp",
-                       name, result_buf, buf, buflen, result);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getprotobyname_r,
+                                ret, 0, 0, FD_API_OTHER, "pppxp",
+                                name, result_buf, buf, buflen, result);
 
        return ret;
 }
@@ -1319,8 +1400,9 @@ int getprotobynumber_r(int proto, struct protoent *result_buf, char *buf, size_t
  
        ret = getprotobynumber_rp(proto, result_buf, buf, buflen, result);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, 0, FD_API_OTHER, "dppxp",
-                       proto, result_buf, buf, buflen, result);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getprotobynumber_r,
+                                ret, 0, 0, FD_API_OTHER, "dppxp",
+                                proto, result_buf, buf, buflen, result);
 
        return ret;
 }
@@ -1334,7 +1416,8 @@ unsigned int if_nametoindex (__const char *__ifname)
  
        uret = if_nametoindexp(__ifname);
 
-       AFTER_PACK_ORIGINAL_SOCK(uret, 0, 0, FD_API_OTHER, "p", __ifname);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_if_nametoindex,
+                                uret, 0, 0, FD_API_OTHER, "p", __ifname);
  
        return uret;
 }
@@ -1348,8 +1431,9 @@ char *if_indextoname (unsigned int __ifindex, char *__ifname)
  
        cret = if_indextonamep(__ifindex, __ifname);
 
-       AFTER_PACK_ORIGINAL_SOCK(cret, 0, 0, FD_API_OTHER,
-                       "dp", __ifindex, __ifname);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_if_indextoname,
+                                cret, 0, 0, FD_API_OTHER,
+                                "dp", __ifindex, __ifname);
 
        return cret;
 }
@@ -1363,7 +1447,8 @@ struct if_nameindex *if_nameindex (void)
        
        pret = if_nameindexp();
 
-       AFTER_PACK_ORIGINAL_SOCK(pret, 0, 0, FD_API_OTHER, "", 0);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_if_nameindex,
+                                pret, 0, 0, FD_API_OTHER, "", 0);
 
        return pret;
 }
@@ -1376,7 +1461,8 @@ void if_freenameindex (struct if_nameindex *__ptr)
  
        if_freenameindexp(__ptr);
  
-       AFTER_PACK_ORIGINAL_SOCK(0, 0, 0, FD_API_OTHER, "p", __ptr);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_if_freenameindex,
+                                0, 0, 0, FD_API_OTHER, "p", __ptr);
 }
 
 int getifaddrs(struct ifaddrs **ifap)
@@ -1387,7 +1473,8 @@ int getifaddrs(struct ifaddrs **ifap)
  
        ret = getifaddrsp(ifap);
 
-       AFTER_PACK_ORIGINAL_SOCK(ret, 0, 0, FD_API_OTHER, "p", ifap);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_getifaddrs,
+                                ret, 0, 0, FD_API_OTHER, "p", ifap);
  
        return ret;
 }
@@ -1400,7 +1487,8 @@ void freeifaddrs(struct ifaddrs *ifa)
  
        freeifaddrsp(ifa);
  
-       AFTER_PACK_ORIGINAL_SOCK(0, 0, 0, FD_API_OTHER, "p", ifa);
+       AFTER_PACK_ORIGINAL_SOCK(API_ID_freeifaddrs,
+                                0, 0, 0, FD_API_OTHER, "p", ifa);
 }
 
 #if 0
index e11ae6f..1c3e4d9 100644 (file)
@@ -47,10 +47,10 @@ int real_pthread_mutex_unlock(pthread_mutex_t *mutex);
        GET_REAL_FUNC(FUNCNAME, LIBNAME);                               \
        PRE_PROBEBLOCK()
 
-#define AFTER_PACK_ORIGINAL_SYNC(RVAL, SYNCVAL, SYNCTYPE, APITYPE, INPUTFORMAT, ...)                   \
+#define AFTER_PACK_ORIGINAL_SYNC(API_ID, RVAL, SYNCVAL, SYNCTYPE, APITYPE, INPUTFORMAT, ...) \
        POST_PACK_PROBEBLOCK_BEGIN();                                                                                                                           \
        PREPARE_LOCAL_BUF();                                                                                                                                            \
-       PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, INPUTFORMAT, __VA_ARGS__);                                           \
+       PACK_COMMON_BEGIN(MSG_PROBE_SYNC, API_ID, INPUTFORMAT, __VA_ARGS__);                                            \
        PACK_COMMON_END(RVAL, errno, blockresult);                                                                                                      \
        PACK_SYNC(SYNCVAL, SYNCTYPE, APITYPE);                                                                                                          \
        FLUSH_LOCAL_BUF();                                                                                                                                                      \
index ab3741e..81d74d7 100644 (file)
        GET_REAL_FUNC(FUNCNAME, LIBNAME);                               \
        PRE_PROBEBLOCK()
 
-#define AFTER_PACK_ORIGINAL_THREAD(RVAL, THREADVAL, APITYPE, INPUTFORMAT, ...)                 \
+#define AFTER_PACK_ORIGINAL_THREAD(API_ID, RVAL, THREADVAL, APITYPE, INPUTFORMAT, ...) \
        POST_PACK_PROBEBLOCK_BEGIN();                           \
        PREPARE_LOCAL_BUF();                                                                                                                            \
-       PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, INPUTFORMAT, __VA_ARGS__);                       \
+       PACK_COMMON_BEGIN(MSG_PROBE_THREAD, API_ID, INPUTFORMAT, __VA_ARGS__);                  \
        PACK_COMMON_END(RVAL, errno, blockresult);                                                                                      \
        PACK_THREAD(THREADVAL, THREAD_PTHREAD, APITYPE);                                                                        \
        FLUSH_LOCAL_BUF();                                                                                                                                      \
index 9e3b549..eba152d 100644 (file)
@@ -51,8 +51,9 @@ int pthread_mutex_init(pthread_mutex_t *mutex,
 
        ret = pthread_mutex_initp(mutex, attr);
 
-       AFTER_PACK_ORIGINAL_SYNC(ret, mutex, SYNC_PTHREAD_MUTEX, 
-                       SYNC_API_OTHER, "pp", mutex, attr);
+       AFTER_PACK_ORIGINAL_SYNC(API_ID_pthread_mutex_init,
+                                ret, mutex, SYNC_PTHREAD_MUTEX, 
+                                SYNC_API_OTHER, "pp", mutex, attr);
 
        return ret;
 }
@@ -64,8 +65,9 @@ int pthread_mutex_destroy(pthread_mutex_t *mutex) {
 
        ret = pthread_mutex_destroyp(mutex);
 
-       AFTER_PACK_ORIGINAL_SYNC(ret, mutex, SYNC_PTHREAD_MUTEX, 
-                       SYNC_API_OTHER, "p", mutex);
+       AFTER_PACK_ORIGINAL_SYNC(API_ID_pthread_mutex_destroy,
+                                ret, mutex, SYNC_PTHREAD_MUTEX, 
+                                SYNC_API_OTHER, "p", mutex);
 
        return ret;
 }
@@ -87,7 +89,9 @@ int pthread_mutex_lock(pthread_mutex_t *mutex) {
        PRE_PROBEBLOCK_BEGIN();
 
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "p", mutex);
+       PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                         API_ID_pthread_mutex_lock,
+                         "p", mutex);
        PACK_COMMON_END(0, 0, blockresult);
        PACK_SYNC(mutex, SYNC_PTHREAD_MUTEX, SYNC_API_ACQUIRE_WAIT_START);
        FLUSH_LOCAL_BUF();
@@ -102,7 +106,9 @@ int pthread_mutex_lock(pthread_mutex_t *mutex) {
                setProbePoint(&probeInfo);
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "p", mutex);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                 API_ID_pthread_mutex_lock,
+                                 "p", mutex);
                PACK_COMMON_END(ret, errno, blockresult);
                PACK_SYNC(mutex, SYNC_PTHREAD_MUTEX, SYNC_API_ACQUIRE_WAIT_END);
                FLUSH_LOCAL_BUF();
@@ -124,7 +130,9 @@ int pthread_mutex_timedlock(pthread_mutex_t *mutex,
        PRE_PROBEBLOCK_BEGIN();
 
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "pp", mutex, abs_timeout);
+       PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                         API_ID_pthread_mutex_timedlock,
+                         "pp", mutex, abs_timeout);
        PACK_COMMON_END(0, 0, blockresult);
        PACK_SYNC(mutex, SYNC_PTHREAD_MUTEX, SYNC_API_ACQUIRE_WAIT_START);
        FLUSH_LOCAL_BUF();
@@ -139,7 +147,9 @@ int pthread_mutex_timedlock(pthread_mutex_t *mutex,
                setProbePoint(&probeInfo);
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "pp", mutex, abs_timeout);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                 API_ID_pthread_mutex_timedlock,
+                                 "pp", mutex, abs_timeout);
                PACK_COMMON_END(ret, errno, blockresult);
                PACK_SYNC(mutex, SYNC_PTHREAD_MUTEX, SYNC_API_ACQUIRE_WAIT_END);
                FLUSH_LOCAL_BUF();
@@ -157,8 +167,9 @@ int pthread_mutex_trylock(pthread_mutex_t *mutex) {
 
        ret = pthread_mutex_trylockp(mutex);
 
-       AFTER_PACK_ORIGINAL_SYNC(ret, mutex, SYNC_PTHREAD_MUTEX, 
-                       SYNC_API_TRY_ACQUIRE, "p", mutex);
+       AFTER_PACK_ORIGINAL_SYNC(API_ID_pthread_mutex_trylock,
+                                ret, mutex, SYNC_PTHREAD_MUTEX, 
+                                SYNC_API_TRY_ACQUIRE, "p", mutex);
        
        return ret;
 }
@@ -178,8 +189,9 @@ int pthread_mutex_unlock(pthread_mutex_t *mutex) {
 
        ret = pthread_mutex_unlockp(mutex);
 
-       AFTER_PACK_ORIGINAL_SYNC(ret, mutex, SYNC_PTHREAD_MUTEX, 
-                       SYNC_API_RELEASE, "p", mutex);
+       AFTER_PACK_ORIGINAL_SYNC(API_ID_pthread_mutex_unlock,
+                                ret, mutex, SYNC_PTHREAD_MUTEX, 
+                                SYNC_API_RELEASE, "p", mutex);
        
        return ret;
 }
@@ -191,8 +203,9 @@ int pthread_mutexattr_init(pthread_mutexattr_t *attr) {
 
        ret = pthread_mutexattr_initp(attr);
 
-       AFTER_PACK_ORIGINAL_SYNC(ret, 0, SYNC_PTHREAD_MUTEX,
-                       SYNC_API_OTHER, "p", attr);
+       AFTER_PACK_ORIGINAL_SYNC(API_ID_pthread_mutexattr_init,
+                                ret, 0, SYNC_PTHREAD_MUTEX,
+                                SYNC_API_OTHER, "p", attr);
 
        return ret;
 }
@@ -204,8 +217,9 @@ int pthread_mutexattr_destroy(pthread_mutexattr_t *attr) {
 
        ret = pthread_mutexattr_destroyp(attr);
 
-       AFTER_PACK_ORIGINAL_SYNC(ret, 0, SYNC_PTHREAD_MUTEX,
-                       SYNC_API_OTHER, "p", attr);
+       AFTER_PACK_ORIGINAL_SYNC(API_ID_pthread_mutexattr_destroy,
+                                ret, 0, SYNC_PTHREAD_MUTEX,
+                                SYNC_API_OTHER, "p", attr);
 
        return ret;
 }
@@ -219,8 +233,9 @@ int pthread_mutexattr_getprioceiling(const pthread_mutexattr_t *attr,
 
        ret = pthread_mutexattr_getprioceilingp(attr, prioceiling);
 
-       AFTER_PACK_ORIGINAL_SYNC(ret, 0, SYNC_PTHREAD_MUTEX,
-                       SYNC_API_OTHER, "pp", attr, prioceiling);
+       AFTER_PACK_ORIGINAL_SYNC(API_ID_pthread_mutexattr_getprioceiling,
+                                ret, 0, SYNC_PTHREAD_MUTEX,
+                                SYNC_API_OTHER, "pp", attr, prioceiling);
 
        return ret;
 }
@@ -234,8 +249,9 @@ int pthread_mutexattr_setprioceiling(pthread_mutexattr_t *attr,
 
        ret = pthread_mutexattr_setprioceilingp(attr, prioceiling);
 
-       AFTER_PACK_ORIGINAL_SYNC(ret, 0, SYNC_PTHREAD_MUTEX,
-                       SYNC_API_OTHER, "pd", attr, prioceiling);
+       AFTER_PACK_ORIGINAL_SYNC(API_ID_pthread_mutexattr_setprioceiling,
+                                ret, 0, SYNC_PTHREAD_MUTEX,
+                                SYNC_API_OTHER, "pd", attr, prioceiling);
 
        return ret;
 }
@@ -249,8 +265,9 @@ int pthread_mutexattr_getprotocol(const pthread_mutexattr_t *attr,
 
        ret = pthread_mutexattr_getprotocolp(attr, protocol);
 
-       AFTER_PACK_ORIGINAL_SYNC(ret, 0, SYNC_PTHREAD_MUTEX,
-                       SYNC_API_OTHER, "pp", attr, protocol);
+       AFTER_PACK_ORIGINAL_SYNC(API_ID_pthread_mutexattr_getprotocol,
+                                ret, 0, SYNC_PTHREAD_MUTEX,
+                                SYNC_API_OTHER, "pp", attr, protocol);
 
        return ret;
 }
@@ -264,8 +281,9 @@ int pthread_mutexattr_setprotocol(pthread_mutexattr_t *attr,
 
        ret = pthread_mutexattr_setprotocolp(attr, protocol);
 
-       AFTER_PACK_ORIGINAL_SYNC(ret, 0, SYNC_PTHREAD_MUTEX,
-                       SYNC_API_OTHER, "pd", attr, protocol);
+       AFTER_PACK_ORIGINAL_SYNC(API_ID_pthread_mutexattr_setprotocol,
+                                ret, 0, SYNC_PTHREAD_MUTEX,
+                                SYNC_API_OTHER, "pd", attr, protocol);
 
        return ret;
 }
@@ -279,8 +297,9 @@ int pthread_mutexattr_getpshared(const pthread_mutexattr_t *attr,
 
        ret = pthread_mutexattr_getpsharedp(attr, pshared);
 
-       AFTER_PACK_ORIGINAL_SYNC(ret, 0, SYNC_PTHREAD_MUTEX,
-                       SYNC_API_OTHER, "pp", attr, pshared);
+       AFTER_PACK_ORIGINAL_SYNC(API_ID_pthread_mutexattr_getpshared,
+                                ret, 0, SYNC_PTHREAD_MUTEX,
+                                SYNC_API_OTHER, "pp", attr, pshared);
 
        return ret;
 }
@@ -294,8 +313,9 @@ int pthread_mutexattr_setpshared(pthread_mutexattr_t *attr,
 
        ret = pthread_mutexattr_setpsharedp(attr, pshared);
 
-       AFTER_PACK_ORIGINAL_SYNC(ret, 0, SYNC_PTHREAD_MUTEX,
-                       SYNC_API_OTHER, "pd", attr, pshared);
+       AFTER_PACK_ORIGINAL_SYNC(API_ID_pthread_mutexattr_setpshared,
+                                ret, 0, SYNC_PTHREAD_MUTEX,
+                                SYNC_API_OTHER, "pd", attr, pshared);
 
        return ret;
 }
@@ -308,8 +328,9 @@ int pthread_mutexattr_gettype(const pthread_mutexattr_t *attr, int *type) {
 
        ret = pthread_mutexattr_gettypep(attr, type);
 
-       AFTER_PACK_ORIGINAL_SYNC(ret, 0, SYNC_PTHREAD_MUTEX,
-                       SYNC_API_OTHER, "pp", attr, type);
+       AFTER_PACK_ORIGINAL_SYNC(API_ID_pthread_mutexattr_gettype,
+                                ret, 0, SYNC_PTHREAD_MUTEX,
+                                SYNC_API_OTHER, "pp", attr, type);
 
        return ret;
 }
@@ -322,8 +343,9 @@ int pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type) {
 
        ret = pthread_mutexattr_settypep(attr, type);
 
-       AFTER_PACK_ORIGINAL_SYNC(ret, 0, SYNC_PTHREAD_MUTEX,
-                       SYNC_API_OTHER, "pd", attr, type);
+       AFTER_PACK_ORIGINAL_SYNC(API_ID_pthread_mutexattr_settype,
+                                ret, 0, SYNC_PTHREAD_MUTEX,
+                                SYNC_API_OTHER, "pd", attr, type);
 
        return ret;
 }
@@ -343,8 +365,9 @@ int pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr) {
 
        ret = pthread_cond_initp(cond, attr);
 
-       AFTER_PACK_ORIGINAL_SYNC(ret, cond, SYNC_PTHREAD_COND_VARIABLE, 
-                       SYNC_API_OTHER, "pp", cond, attr);
+       AFTER_PACK_ORIGINAL_SYNC(API_ID_pthread_cond_init,
+                                ret, cond, SYNC_PTHREAD_COND_VARIABLE, 
+                                SYNC_API_OTHER, "pp", cond, attr);
 
        return ret;
 }
@@ -356,8 +379,9 @@ int pthread_cond_destroy(pthread_cond_t *cond) {
 
        ret = pthread_cond_destroyp(cond);
 
-       AFTER_PACK_ORIGINAL_SYNC(ret, cond, SYNC_PTHREAD_COND_VARIABLE, 
-                       SYNC_API_OTHER, "p", cond);
+       AFTER_PACK_ORIGINAL_SYNC(API_ID_pthread_cond_destroy,
+                                ret, cond, SYNC_PTHREAD_COND_VARIABLE, 
+                                SYNC_API_OTHER, "p", cond);
 
        return ret;
 }
@@ -373,7 +397,9 @@ int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) {
        // send WAIT_START log
        
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "pp", cond, mutex);
+       PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                         API_ID_pthread_cond_wait,
+                         "pp", cond, mutex);
        PACK_COMMON_END(0, 0, blockresult);
        PACK_SYNC(cond, SYNC_PTHREAD_COND_VARIABLE, SYNC_API_COND_WAIT_START);
        FLUSH_LOCAL_BUF();
@@ -388,7 +414,9 @@ int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) {
                setProbePoint(&probeInfo);
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "pp", cond, mutex);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                 API_ID_pthread_cond_wait,
+                                 "pp", cond, mutex);
                PACK_COMMON_END(ret, errno, blockresult);
                PACK_SYNC(cond, SYNC_PTHREAD_COND_VARIABLE, SYNC_API_COND_WAIT_END);
                FLUSH_LOCAL_BUF();
@@ -411,7 +439,9 @@ int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
        // send WAIT_START log
 
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "ppp", cond, mutex, abstime);
+       PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                         API_ID_pthread_cond_timedwait,
+                         "ppp", cond, mutex, abstime);
        PACK_COMMON_END(0, 0, blockresult);
        PACK_SYNC(cond, SYNC_PTHREAD_COND_VARIABLE, SYNC_API_COND_WAIT_START);
        FLUSH_LOCAL_BUF();
@@ -426,7 +456,9 @@ int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
                setProbePoint(&probeInfo);
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC, LC_SYNC, "ppp", cond, mutex, abstime);
+               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
+                                 API_ID_pthread_cond_timedwait,
+                                 "ppp", cond, mutex, abstime);
                PACK_COMMON_END(ret, errno, blockresult);
                PACK_SYNC(cond, SYNC_PTHREAD_COND_VARIABLE, SYNC_API_COND_WAIT_END);
                FLUSH_LOCAL_BUF();
@@ -444,7 +476,8 @@ int pthread_cond_signal(pthread_cond_t *cond) {
 
        ret = pthread_cond_signalp(cond);
 
-       AFTER_PACK_ORIGINAL_SYNC(ret, cond, SYNC_PTHREAD_COND_VARIABLE, 
+       AFTER_PACK_ORIGINAL_SYNC(API_ID_pthread_cond_signal,
+                                ret, cond, SYNC_PTHREAD_COND_VARIABLE, 
                        SYNC_API_NOTIFY, "p", cond);
        
        return ret;
@@ -457,8 +490,9 @@ int pthread_cond_broadcast(pthread_cond_t *cond) {
 
        ret = pthread_cond_broadcastp(cond);
 
-       AFTER_PACK_ORIGINAL_SYNC(ret, cond, SYNC_PTHREAD_COND_VARIABLE, 
-                       SYNC_API_NOTIFY_ALL, "p", cond);
+       AFTER_PACK_ORIGINAL_SYNC(API_ID_pthread_cond_broadcast,
+                                ret, cond, SYNC_PTHREAD_COND_VARIABLE, 
+                                SYNC_API_NOTIFY_ALL, "p", cond);
        
        return ret;
 }
index 59a4d8f..f9dc68d 100644 (file)
@@ -58,7 +58,9 @@ void _da_cleanup_handler(void *data)
        pSelf = pthread_self();
        
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "p", data);
+       PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                         API_ID__da_cleanup_handler,
+                         "p", data);
        PACK_COMMON_END(0, 0, 1);
        PACK_THREAD(pSelf, THREAD_PTHREAD, THREAD_API_INTERNAL_STOP);
        FLUSH_LOCAL_BUF();
@@ -82,7 +84,9 @@ void *_da_ThreadProc(void *params)
        pSelf = pthread_self();
        
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "p", params);
+       PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                         API_ID__da_ThreadProc,
+                         "p", params);
        PACK_COMMON_END(0, 0, 1);
        PACK_THREAD(pSelf, THREAD_PTHREAD, THREAD_API_INTERNAL_START);
        FLUSH_LOCAL_BUF();
@@ -99,7 +103,9 @@ void *_da_ThreadProc(void *params)
        pSelf = pthread_self();
        
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "p", params);
+       PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                         API_ID__da_ThreadProc,
+                         "p", params);
        PACK_COMMON_END(ret, 0, 1);
        PACK_THREAD(pSelf, THREAD_PTHREAD, THREAD_API_INTERNAL_STOP);
        FLUSH_LOCAL_BUF();
@@ -134,8 +140,9 @@ int pthread_create(pthread_t *thread, const pthread_attr_t *attr,
                ret = pthread_createp(thread, attr, start_routine, arg);
        }
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, *thread, THREAD_API_START, 
-                       "pppp", thread, attr, start_routine, arg);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_create,
+                                  ret, *thread, THREAD_API_START, 
+                                  "pppp", thread, attr, start_routine, arg);
 
        return ret;
 }
@@ -150,7 +157,9 @@ int pthread_join(pthread_t thread, void **retval)
        PRE_PROBEBLOCK_BEGIN();
        
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "xp", thread, retval);
+       PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                         API_ID_pthread_join,
+                         "xp", thread, retval);
        PACK_COMMON_END(0, 0, blockresult);
        PACK_THREAD(thread, THREAD_PTHREAD, THREAD_API_WAIT_START);
        FLUSH_LOCAL_BUF();
@@ -165,7 +174,9 @@ int pthread_join(pthread_t thread, void **retval)
                setProbePoint(&probeInfo);
 
                PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "xp", thread, retval);
+               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                                 API_ID_pthread_join,
+                                 "xp", thread, retval);
                PACK_COMMON_END(ret, errno, blockresult);
                PACK_THREAD(thread, THREAD_PTHREAD, THREAD_API_WAIT_END);
                FLUSH_LOCAL_BUF();
@@ -189,7 +200,9 @@ void pthread_exit(void *retval)
        pSelf = pthread_self();
        
        PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, "p", retval);
+       PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
+                         API_ID_pthread_exit,
+                         "p", retval);
        PACK_COMMON_END(0, 0, blockresult);
        PACK_THREAD(pSelf, THREAD_PTHREAD, THREAD_API_EXIT);
        FLUSH_LOCAL_BUF();
@@ -207,7 +220,8 @@ int pthread_cancel(pthread_t thread)
 
        ret = pthread_cancelp(thread);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, thread, THREAD_API_STOP, "x", thread);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_cancel,
+                                  ret, thread, THREAD_API_STOP, "x", thread);
 
        return ret;
 }
@@ -220,7 +234,8 @@ int pthread_detach(pthread_t thread)
 
        ret = pthread_detachp(thread);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, thread, THREAD_API_OTHER, "x", thread);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_detach,
+                                  ret, thread, THREAD_API_OTHER, "x", thread);
 
        return ret;
 }
@@ -237,7 +252,8 @@ pthread_t pthread_self(void)
        newerrno = errno;
        if(postBlockBegin(blockresult)) {
 
-               AFTER_PACK_ORIGINAL_THREAD(ret_pthr, ret_pthr, THREAD_API_OTHER, "", 0);
+               AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_self,
+                                          ret_pthr, ret_pthr, THREAD_API_OTHER, "", 0);
 
                postBlockEnd();
        }
@@ -253,7 +269,8 @@ int pthread_equal(pthread_t t1, pthread_t t2)
 
        ret = pthread_equalp(t1, t2);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, t1, THREAD_API_OTHER, "xx", t1, t2);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_equal,
+                                  ret, t1, THREAD_API_OTHER, "xx", t1, t2);
 
        return ret;
 }
@@ -268,8 +285,9 @@ int pthread_setcancelstate(int state, int *oldstate)
        pSelf = pthread_self();
        ret = pthread_setcancelstatep(state, oldstate);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, pSelf, THREAD_API_OTHER, 
-                       "dp", state, oldstate);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_setcancelstate,
+                                  ret, pSelf, THREAD_API_OTHER, 
+                                  "dp", state, oldstate);
 
        return ret;
 }
@@ -284,8 +302,9 @@ int pthread_setcanceltype(int type, int *oldtype)
        pSelf = pthread_self();
        ret = pthread_setcanceltypep(type, oldtype);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, pSelf, THREAD_API_OTHER, 
-                       "dp", type, oldtype);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_setcanceltype,
+                                  ret, pSelf, THREAD_API_OTHER, 
+                                  "dp", type, oldtype);
 
        return ret;
 }
@@ -299,7 +318,8 @@ int pthread_attr_init(pthread_attr_t *attr)
 
        ret = pthread_attr_initp(attr);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, thread, THREAD_API_OTHER, "p", attr);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_attr_init,
+                                  ret, thread, THREAD_API_OTHER, "p", attr);
 
        return ret;
 }
@@ -313,7 +333,8 @@ int pthread_attr_destroy(pthread_attr_t *attr)
 
        ret = pthread_attr_destroyp(attr);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, thread, THREAD_API_OTHER, "p", attr);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_attr_destroy,
+                                  ret, thread, THREAD_API_OTHER, "p", attr);
 
        return ret;
 }
@@ -328,8 +349,9 @@ int pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate)
 
        ret = pthread_attr_getdetachstatep(attr, detachstate);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, thread, THREAD_API_OTHER, 
-                       "pp", attr, detachstate);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_attr_getdetachstate,
+                                  ret, thread, THREAD_API_OTHER, 
+                                  "pp", attr, detachstate);
 
        return ret;
 }
@@ -344,8 +366,9 @@ int pthread_attr_setdetachstate(pthread_attr_t *attr, int detachstate)
 
        ret = pthread_attr_setdetachstatep(attr, detachstate);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, thread, THREAD_API_OTHER, 
-                       "pd", attr, detachstate);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_attr_setdetachstate,
+                                  ret, thread, THREAD_API_OTHER, 
+                                  "pd", attr, detachstate);
 
        return ret;
 }
@@ -360,8 +383,9 @@ int pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stacksize)
 
        ret = pthread_attr_getstacksizep(attr, stacksize);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, thread, THREAD_API_OTHER, 
-                       "pp", attr, stacksize);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_attr_getstacksize,
+                                  ret, thread, THREAD_API_OTHER, 
+                                  "pp", attr, stacksize);
 
        return ret;
 }
@@ -376,8 +400,9 @@ int pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize)
 
        ret = pthread_attr_setstacksizep(attr, stacksize);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, thread, THREAD_API_OTHER, 
-                       "px", attr, stacksize);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_attr_setstacksize,
+                                  ret, thread, THREAD_API_OTHER, 
+                                  "px", attr, stacksize);
 
        return ret;
 }
@@ -392,8 +417,9 @@ int pthread_attr_getstackaddr(const pthread_attr_t *attr, void **stackaddr)
 
        ret = pthread_attr_getstackaddrp(attr, stackaddr);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, thread, THREAD_API_OTHER, 
-                       "pp", attr, stackaddr);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_attr_getstackaddr,
+                                  ret, thread, THREAD_API_OTHER, 
+                                  "pp", attr, stackaddr);
 
        return ret;
 }
@@ -408,8 +434,9 @@ int pthread_attr_setstackaddr(pthread_attr_t *attr, void *stackaddr)
 
        ret = pthread_attr_setstackaddrp(attr, stackaddr);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, thread, THREAD_API_OTHER, 
-                       "pp", attr, stackaddr);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_attr_setstackaddr,
+                                  ret, thread, THREAD_API_OTHER, 
+                                  "pp", attr, stackaddr);
 
        return ret;
 }
@@ -424,8 +451,9 @@ int pthread_attr_getinheritsched(const pthread_attr_t *attr, int *inheritsched)
 
        ret = pthread_attr_getinheritschedp(attr, inheritsched);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, thread, THREAD_API_OTHER, 
-                       "pp", attr, inheritsched);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_attr_getinheritsched,
+                                  ret, thread, THREAD_API_OTHER, 
+                                  "pp", attr, inheritsched);
 
        return ret;
 }
@@ -440,8 +468,9 @@ int pthread_attr_setinheritsched(pthread_attr_t *attr, int inheritsched)
 
        ret = pthread_attr_setinheritschedp(attr, inheritsched);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, thread, THREAD_API_OTHER, 
-                       "pd", attr, inheritsched);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_attr_setinheritsched,
+                                  ret, thread, THREAD_API_OTHER, 
+                                  "pd", attr, inheritsched);
 
        return ret;
 }
@@ -457,8 +486,9 @@ int pthread_attr_getschedparam(const pthread_attr_t *attr,
 
        ret = pthread_attr_getschedparamp(attr, param);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, thread, THREAD_API_OTHER, 
-                       "pp", attr, param);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_attr_getschedparam,
+                                  ret, thread, THREAD_API_OTHER, 
+                                  "pp", attr, param);
 
        return ret;
 }
@@ -474,8 +504,9 @@ int pthread_attr_setschedparam(pthread_attr_t *attr,
 
        ret = pthread_attr_setschedparamp(attr, param);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, thread, THREAD_API_OTHER, 
-                       "pp", attr, param);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_attr_setschedparam,
+                                  ret, thread, THREAD_API_OTHER, 
+                                  "pp", attr, param);
 
        return ret;
 }
@@ -490,8 +521,9 @@ int pthread_attr_getschedpolicy(const pthread_attr_t *attr, int *policy)
 
        ret = pthread_attr_getschedpolicyp(attr, policy);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, thread, THREAD_API_OTHER, 
-                       "pp", attr, policy);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_attr_getschedpolicy,
+                                  ret, thread, THREAD_API_OTHER, 
+                                  "pp", attr, policy);
 
        return ret;
 }
@@ -506,8 +538,9 @@ int pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy)
 
        ret = pthread_attr_setschedpolicyp(attr, policy);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, thread, THREAD_API_OTHER, 
-                       "pd", attr, policy);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_attr_setschedpolicy,
+                                  ret, thread, THREAD_API_OTHER, 
+                                  "pd", attr, policy);
 
        return ret;
 }
@@ -522,8 +555,9 @@ int pthread_attr_getguardsize(const pthread_attr_t *attr, size_t *guardsize)
 
        ret = pthread_attr_getguardsizep(attr, guardsize);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, thread, THREAD_API_OTHER, 
-                       "pp", attr, guardsize);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_attr_getguardsize,
+                                  ret, thread, THREAD_API_OTHER, 
+                                  "pp", attr, guardsize);
 
        return ret;
 }
@@ -538,8 +572,9 @@ int pthread_attr_setguardsize(pthread_attr_t *attr, size_t guardsize)
 
        ret = pthread_attr_setguardsizep(attr, guardsize);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, thread, THREAD_API_OTHER, 
-                       "px", attr, guardsize);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_attr_setguardsize,
+                                  ret, thread, THREAD_API_OTHER, 
+                                  "px", attr, guardsize);
 
        return ret;
 }
@@ -554,8 +589,9 @@ int pthread_attr_getscope(const pthread_attr_t *attr, int *contentionscope)
 
        ret = pthread_attr_getscopep(attr, contentionscope);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, thread, THREAD_API_OTHER, 
-                       "pp", attr, contentionscope);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_attr_getscope,
+                                  ret, thread, THREAD_API_OTHER, 
+                                  "pp", attr, contentionscope);
 
        return ret;
 }
@@ -570,8 +606,9 @@ int pthread_attr_setscope(pthread_attr_t *attr, int contentionscope)
 
        ret = pthread_attr_setscopep(attr, contentionscope);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, thread, THREAD_API_OTHER, 
-                       "pd", attr, contentionscope);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_attr_setscope,
+                                  ret, thread, THREAD_API_OTHER, 
+                                  "pd", attr, contentionscope);
 
        return ret;
 }
@@ -587,8 +624,9 @@ int pthread_attr_getstack(const pthread_attr_t *attr,
 
        ret = pthread_attr_getstackp(attr, stackaddr, stacksize);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, thread, THREAD_API_OTHER, 
-                       "ppp", attr, stackaddr, stacksize);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_attr_getstack,
+                                  ret, thread, THREAD_API_OTHER, 
+                                  "ppp", attr, stackaddr, stacksize);
 
        return ret;
 }
@@ -604,8 +642,9 @@ int pthread_attr_setstack(pthread_attr_t *attr,
 
        ret = pthread_attr_setstackp(attr, stackaddr, stacksize);
 
-       AFTER_PACK_ORIGINAL_THREAD(ret, thread, THREAD_API_OTHER, 
-                       "ppx", attr, stackaddr, stacksize);
+       AFTER_PACK_ORIGINAL_THREAD(API_ID_pthread_attr_setstack,
+                                  ret, thread, THREAD_API_OTHER, 
+                                  "ppx", attr, stackaddr, stacksize);
 
        return ret;
 }
index 2b6b967..2e6c710 100644 (file)
 
 app_event_callback_s gAppCallback;
 
-#define PACK_ORIGINAL_APPFWCYCLE(RVAL, INPUTFORMAT, ...)                                                                       \
+#define PACK_ORIGINAL_APPFWCYCLE(API_ID, RVAL, INPUTFORMAT, ...)               \
        newerrno = errno;                                                                                                                                               \
        do {                                                                                                                                                                    \
                if(postBlockBegin(blockresult)) {                                                                                                       \
                        PREPARE_LOCAL_BUF();                                                                                                                    \
-                       PACK_COMMON_BEGIN(MSG_PROBE_LIFECYCLE, LC_LIFECYCLE, INPUTFORMAT, __VA_ARGS__); \
+                       PACK_COMMON_BEGIN(MSG_PROBE_LIFECYCLE, API_ID, INPUTFORMAT, __VA_ARGS__);       \
                        PACK_COMMON_END(RVAL, newerrno, blockresult);                                                                   \
                        FLUSH_LOCAL_BUF();                                                                                                                              \
                        postBlockEnd();                                                                                                                                 \
@@ -64,7 +64,7 @@ static bool _dalc_app_create(void* user_data)
 
        bret = gAppCallback.create(user_data);
 
-       PACK_ORIGINAL_APPFWCYCLE(bret, "p", user_data);
+       PACK_ORIGINAL_APPFWCYCLE(API_ID__dalc_app_create, bret, "p", user_data);
 
        return bret;
 }
@@ -78,7 +78,7 @@ static void _dalc_app_terminate(void* user_data)
 
        gAppCallback.terminate(user_data);
 
-       PACK_ORIGINAL_APPFWCYCLE(0, "p", user_data);
+       PACK_ORIGINAL_APPFWCYCLE(API_ID__dalc_app_terminate, 0, "p", user_data);
 }
 
 static void _dalc_app_pause(void* user_data)
@@ -90,7 +90,7 @@ static void _dalc_app_pause(void* user_data)
 
        gAppCallback.pause(user_data);
 
-       PACK_ORIGINAL_APPFWCYCLE(0, "p", user_data);
+       PACK_ORIGINAL_APPFWCYCLE(API_ID__dalc_app_pause, 0, "p", user_data);
 }
 
 static void _dalc_app_resume(void* user_data)
@@ -102,7 +102,7 @@ static void _dalc_app_resume(void* user_data)
 
        gAppCallback.resume(user_data);
 
-       PACK_ORIGINAL_APPFWCYCLE(0, "p", user_data);
+       PACK_ORIGINAL_APPFWCYCLE(API_ID__dalc_app_resume, 0, "p", user_data);
 }
 
 static void _dalc_app_service(service_h service, void* user_data)
@@ -114,7 +114,7 @@ static void _dalc_app_service(service_h service, void* user_data)
 
        gAppCallback.service(service, user_data);
 
-       PACK_ORIGINAL_APPFWCYCLE(0, "dp", (unsigned int)service, user_data);
+       PACK_ORIGINAL_APPFWCYCLE(API_ID__dalc_app_service, 0, "dp", (unsigned int)service, user_data);
 }
 
 static void _dalc_app_deviceorientationchanged(app_device_orientation_e orientation, void* user_data)
index 75b3222..2c80cbe 100755 (executable)
@@ -92,7 +92,9 @@ void SceneManagerEventListener::OnSceneTransitionCompleted(const SceneId &previo
                                WcharToChar(scene_name, sceneid.GetPointer());
                                
                                PREPARE_LOCAL_BUF();
-                               PACK_COMMON_BEGIN(MSG_PROBE_SCENE, LC_SCENE, "pp", &previousSceneId, &currentSceneId);
+                               PACK_COMMON_BEGIN(MSG_PROBE_SCENE,
+                                                 API_ID_void_SceneManagerEventListener__OnSceneTransitionCompleted_const_SceneId__previousSceneId__const_SceneId__currentSceneId_,
+                                                 "pp", &previousSceneId, &currentSceneId);
                                PACK_COMMON_END(0, 0, 0);
                                PACK_SCENE(scene_name, formid, pform, panelid, ppanel, transition, user);
                                FLUSH_LOCAL_BUF();
diff --git a/scripts/api_names.txt b/scripts/api_names.txt
new file mode 100644 (file)
index 0000000..6b76c44
--- /dev/null
@@ -0,0 +1,381 @@
+result UiApp::Execute(UiAppInstanceFactory pUiAppFactory, const IList* pArguments)
+void _AppImpl::OnTerminate(void* user_data)
+void _AppInfo::SetAppState(AppState appState)
+void _UiAppImpl::OnBackground(void)
+void _UiAppImpl::OnForeground(void)
+
+result Mutex::Create(void)
+result Mutex::Create(const Tizen::Base::String& name)
+result Mutex::Release(void)
+result Mutex::Acquire(void)
+result Mutex::TryToAcquire(void)
+result Semaphore::Create(int count)
+result Semaphore::Create(const Tizen::Base::String& name, int count)
+result Semaphore::Acquire(long timeout)
+result Semaphore::TryToAcquire(void)
+result Semaphore::Release(void)
+result Monitor::Construct(void)
+result Monitor::Enter(void)
+result Monitor::Exit(void)
+result Monitor::Wait(void)
+result Monitor::Notify(void)
+result Monitor::NotifyAll(void)
+
+void *_ThreadImpl::ThreadProc(void* params)
+result Thread::Sleep(long milliSeconds)
+result Thread::Yield(void)
+result Thread::Exit(int exitCode)
+result Thread::Construct(ThreadType threadType, long stackSize, ThreadPriority priority)
+result Thread::Construct(long stackSize, ThreadPriority priority)
+result Thread::Construct(const Tizen::Base::String &name, long stackSize, ThreadPriority priority)
+result Thread::Construct(const Tizen::Base::String &name, ThreadType threadType, long stackSize, ThreadPriority priority)
+result Thread::Construct(IRunnable &target, long stackSize, ThreadPriority priority)
+result Thread::Construct(const Tizen::Base::String &name, IRunnable &target, long stackSize, ThreadPriority priority)
+result Thread::GetExitCode(int &exitCode) const
+const Tizen::Base::String & Thread::GetName(void) const
+result Thread::Join(void)
+result Thread::Start(void)
+result Thread::Stop(void)
+result EventDrivenThread::Construct(long stackSize, ThreadPriority priority)
+result EventDrivenThread::Construct(const Tizen::Base::String &name, long stackSize, ThreadPriority priority)
+result EventDrivenThread::Quit()
+
+result File::Construct(const Tizen::Base::String& filePath, const Tizen::Base::String& openMode, bool createParentDirectories)
+result File::Construct(const Tizen::Base::String& filePath, const Tizen::Base::String& openMode)
+result File::Construct(const Tizen::Base::String& filePath, const char *pOpenMode)
+result File::Construct(const Tizen::Base::String& filePath, const char *pOpenMode, const Tizen::Base::ByteBuffer& secretKey)
+result File::Flush(void)
+Tizen::Base::String File::GetName(void) const
+result File::Read(Tizen::Base::String& buffer)
+result File::Read(Tizen::Base::ByteBuffer& buffer)
+int File::Read(void *buffer, int length)
+result File::Seek(FileSeekPosition position, long offset)
+int File::Tell(void) const
+result File::Truncate(int length)
+result File::Write(const void *buffer, int length)
+result File::Write(const Tizen::Base::ByteBuffer& buffer)
+result File::Write(const Tizen::Base::String& buffer)
+File::~File(void)
+
+result UiApp::AddFrame(const Tizen::Ui::Controls::Frame& frame)
+result UiApp::RemoveFrame(const Tizen::Ui::Controls::Frame &frame)
+void Control::SetName(const Tizen::Base::String &name)
+result Container::AddControl(const Control &control)
+result Container::RemoveControl(const Control &control)
+result Container::RemoveControl(int index)
+void Container::RemoveAllControls(void)
+
+_chart_timerThread
+da_mark
+da_create_chart
+da_create_series
+da_log
+
+malloc
+free
+realloc
+calloc
+
+void *operator new(std::size_t size) throw (std::bad_alloc)
+void *operator new[](std::size_t size) throw (std::bad_alloc)
+void operator delete(void *ptr) throw()
+void operator delete[](void *ptr) throw()
+void *operator new(std::size_t size, const std::nothrow_t& nothrow) throw()
+void *operator new[](std::size_t size, const std::nothrow_t& nothrow) throw()
+void operator delete(void *ptr, const std::nothrow_t& nothrow) throw()
+void operator delete[](void *ptr, const std::nothrow_t& nothrow) throw()
+
+memset
+memcmp
+memcpy
+
+_dalc_app_create
+_dalc_app_terminate
+_dalc_app_pause
+_dalc_app_resume
+_dalc_app_service
+
+_da_cleanup_handler
+_da_ThreadProc
+pthread_create
+pthread_join
+pthread_exit
+pthread_cancel
+pthread_detach
+pthread_self
+pthread_equal
+pthread_setcancelstate
+pthread_setcanceltype
+pthread_attr_init
+pthread_attr_destroy
+pthread_attr_getdetachstate
+pthread_attr_setdetachstate
+pthread_attr_getstacksize
+pthread_attr_setstacksize
+pthread_attr_getstackaddr
+pthread_attr_setstackaddr
+pthread_attr_getinheritsched
+pthread_attr_setinheritsched
+pthread_attr_getschedparam
+pthread_attr_setschedparam
+pthread_attr_getschedpolicy
+pthread_attr_setschedpolicy
+pthread_attr_getguardsize
+pthread_attr_setguardsize
+pthread_attr_getscope
+pthread_attr_setscope
+pthread_attr_getstack
+pthread_attr_setstack
+
+pthread_mutex_init
+pthread_mutex_destroy
+real_pthread_mutex_lock
+pthread_mutex_lock
+pthread_mutex_timedlock
+pthread_mutex_trylock
+real_pthread_mutex_unlock
+pthread_mutex_unlock
+pthread_mutexattr_init
+pthread_mutexattr_destroy
+pthread_mutexattr_getprioceiling
+pthread_mutexattr_setprioceiling
+pthread_mutexattr_getprotocol
+pthread_mutexattr_setprotocol
+pthread_mutexattr_getpshared
+pthread_mutexattr_setpshared
+pthread_mutexattr_gettype
+pthread_mutexattr_settype
+pthread_cond_init
+pthread_cond_destroy
+pthread_cond_wait
+pthread_cond_timedwait
+pthread_cond_signal
+pthread_cond_broadcast
+
+open
+openat
+creat
+close
+access
+faccessat
+lseek
+fsync
+fdatasync
+truncate
+ftruncate
+mkfifo
+mkfifoat
+mknod
+mknodat
+chown
+fchownat
+fchown
+lchown
+lockf
+chmod
+fchmodat
+fchmod
+pread
+read
+pwrite
+write
+readv
+rmdir
+fchdir
+chdir
+link
+linkat
+unlink
+unlinkat
+symlink
+symlinkat
+readlink
+readlinkat
+mkdir
+mkdirat
+closedir
+fdopendir
+opendir
+readdir
+readdir_r
+rewinddir
+seekdir
+telldir
+fcntl
+dup
+dup2
+fstatat
+lstat
+futimens
+utimensat
+utimes
+utime
+
+clearerr
+fclose
+fdopen
+feof
+ferror
+fflush
+fgetc
+fgetpos
+fileno
+fopen
+fprintf
+fputc
+fputs
+fread
+freopen
+fscanf
+fseek
+fsetpos
+fwrite
+getc
+getchar
+gets
+int
+perror
+printf
+putc
+putchar
+puts
+remove
+rename
+rewind
+scanf
+setbuf
+setbuffer
+setlinebuf
+setvbuf
+tmpnam
+ungetc
+vfprintf
+vfscanf
+
+void SceneManagerEventListener::OnSceneTransitionCompleted(const SceneId &previousSceneId, const SceneId &currentSceneId)
+
+void GestureEventListener::OnCustomGestureCanceled (TouchGestureDetector &gestureDetector)
+void GestureEventListener::OnCustomGestureChanged (TouchGestureDetector &gestureDetector)
+void GestureEventListener::OnCustomGestureFinished (TouchGestureDetector &gestureDetector)
+void GestureEventListener::OnCustomGestureStarted (TouchGestureDetector &gestureDetector)
+void GestureEventListener::OnFlickGestureCanceled (TouchFlickGestureDetector &gestureDetector)
+void GestureEventListener::OnFlickGestureDetected (TouchFlickGestureDetector &gestureDetector)
+void GestureEventListener::OnLongPressGestureCanceled (TouchLongPressGestureDetector &gestureDetector)
+void GestureEventListener::OnLongPressGestureDetected (TouchLongPressGestureDetector &gestureDetector)
+void GestureEventListener::OnPanningGestureCanceled (TouchPanningGestureDetector &gestureDetector)
+void GestureEventListener::OnPanningGestureChanged (TouchPanningGestureDetector &gestureDetector)
+void GestureEventListener::OnPanningGestureFinished (TouchPanningGestureDetector &gestureDetector)
+void GestureEventListener::OnPanningGestureStarted (TouchPanningGestureDetector &gestureDetector)
+void GestureEventListener::OnPinchGestureCanceled (TouchPinchGestureDetector &gestureDetector)
+void GestureEventListener::OnPinchGestureChanged (TouchPinchGestureDetector &gestureDetector)
+void GestureEventListener::OnPinchGestureFinished (TouchPinchGestureDetector &gestureDetector)
+void GestureEventListener::OnPinchGestureStarted (TouchPinchGestureDetector &gestureDetector)
+void GestureEventListener::OnRotationGestureCanceled (TouchRotationGestureDetector &gestureDetector)
+void GestureEventListener::OnRotationGestureChanged (TouchRotationGestureDetector &gestureDetector)
+void GestureEventListener::OnRotationGestureFinished (TouchRotationGestureDetector &gestureDetector)
+void GestureEventListener::OnRotationGestureStarted (TouchRotationGestureDetector &gestureDetector)
+void GestureEventListener::OnTapGestureCanceled (TouchTapGestureDetector &gestureDetector)
+void GestureEventListener::OnTapGestureDetected (TouchTapGestureDetector &gestureDetector)
+
+on_orientation_changed
+
+ecore_event_evas_key_down
+ecore_event_evas_key_up
+ecore_event_evas_mouse_button_down
+ecore_event_evas_mouse_button_up
+ecore_event_evas_mouse_move
+
+accept
+accept4
+bind
+gai_strerror
+hstrerror
+inet_ntop
+connect
+endhostent
+endnetent
+endprotoent
+endservent
+freeaddrinfo
+freeifaddrs
+gai_cancel
+gai_error
+gai_suspend
+getaddrinfo
+getaddrinfo_a
+getdomainname
+gethostbyaddr_r
+gethostbyname2_r
+gethostbyname_r
+gethostent_r
+gethostname
+getifaddrs
+getnameinfo
+getnetbyaddr_r
+getnetbyname_r
+getnetent_r
+getpeername
+getprotobyname_r
+getprotobynumber_r
+getprotoent_r
+getservbyname_r
+getservbyport_r
+getservent_r
+getsockname
+getsockopt
+herror
+gethostbyaddr
+gethostbyname
+gethostbyname2
+gethostent
+htonl
+htons
+if_freenameindex
+if_indextoname
+if_nameindex
+inet_makeaddr
+inet_addr
+inet_aton
+inet_lnaof
+inet_netof
+inet_network
+inet_ntoa
+inet_pton
+if_nametoindex
+le32toh
+le64toh
+listen
+getnetbyaddr
+getnetbyname
+getnetent
+ntohl
+ntohs
+getprotobyname
+getprotobynumber
+getprotoent
+pselect
+recv
+recvfrom
+recvmsg
+select
+send
+sendmsg
+sendto
+getservbyname
+getservbyport
+getservent
+setdomainname
+sethostent
+sethostname
+setnetent
+setprotoent
+setservent
+setsockopt
+shutdown
+socket
+socketpair
+
+Thread* Thread::GetCurrentThread(void)
+
+tmpfile
+ftell
diff --git a/scripts/mapping.txt b/scripts/mapping.txt
new file mode 100644 (file)
index 0000000..6b76c44
--- /dev/null
@@ -0,0 +1,381 @@
+result UiApp::Execute(UiAppInstanceFactory pUiAppFactory, const IList* pArguments)
+void _AppImpl::OnTerminate(void* user_data)
+void _AppInfo::SetAppState(AppState appState)
+void _UiAppImpl::OnBackground(void)
+void _UiAppImpl::OnForeground(void)
+
+result Mutex::Create(void)
+result Mutex::Create(const Tizen::Base::String& name)
+result Mutex::Release(void)
+result Mutex::Acquire(void)
+result Mutex::TryToAcquire(void)
+result Semaphore::Create(int count)
+result Semaphore::Create(const Tizen::Base::String& name, int count)
+result Semaphore::Acquire(long timeout)
+result Semaphore::TryToAcquire(void)
+result Semaphore::Release(void)
+result Monitor::Construct(void)
+result Monitor::Enter(void)
+result Monitor::Exit(void)
+result Monitor::Wait(void)
+result Monitor::Notify(void)
+result Monitor::NotifyAll(void)
+
+void *_ThreadImpl::ThreadProc(void* params)
+result Thread::Sleep(long milliSeconds)
+result Thread::Yield(void)
+result Thread::Exit(int exitCode)
+result Thread::Construct(ThreadType threadType, long stackSize, ThreadPriority priority)
+result Thread::Construct(long stackSize, ThreadPriority priority)
+result Thread::Construct(const Tizen::Base::String &name, long stackSize, ThreadPriority priority)
+result Thread::Construct(const Tizen::Base::String &name, ThreadType threadType, long stackSize, ThreadPriority priority)
+result Thread::Construct(IRunnable &target, long stackSize, ThreadPriority priority)
+result Thread::Construct(const Tizen::Base::String &name, IRunnable &target, long stackSize, ThreadPriority priority)
+result Thread::GetExitCode(int &exitCode) const
+const Tizen::Base::String & Thread::GetName(void) const
+result Thread::Join(void)
+result Thread::Start(void)
+result Thread::Stop(void)
+result EventDrivenThread::Construct(long stackSize, ThreadPriority priority)
+result EventDrivenThread::Construct(const Tizen::Base::String &name, long stackSize, ThreadPriority priority)
+result EventDrivenThread::Quit()
+
+result File::Construct(const Tizen::Base::String& filePath, const Tizen::Base::String& openMode, bool createParentDirectories)
+result File::Construct(const Tizen::Base::String& filePath, const Tizen::Base::String& openMode)
+result File::Construct(const Tizen::Base::String& filePath, const char *pOpenMode)
+result File::Construct(const Tizen::Base::String& filePath, const char *pOpenMode, const Tizen::Base::ByteBuffer& secretKey)
+result File::Flush(void)
+Tizen::Base::String File::GetName(void) const
+result File::Read(Tizen::Base::String& buffer)
+result File::Read(Tizen::Base::ByteBuffer& buffer)
+int File::Read(void *buffer, int length)
+result File::Seek(FileSeekPosition position, long offset)
+int File::Tell(void) const
+result File::Truncate(int length)
+result File::Write(const void *buffer, int length)
+result File::Write(const Tizen::Base::ByteBuffer& buffer)
+result File::Write(const Tizen::Base::String& buffer)
+File::~File(void)
+
+result UiApp::AddFrame(const Tizen::Ui::Controls::Frame& frame)
+result UiApp::RemoveFrame(const Tizen::Ui::Controls::Frame &frame)
+void Control::SetName(const Tizen::Base::String &name)
+result Container::AddControl(const Control &control)
+result Container::RemoveControl(const Control &control)
+result Container::RemoveControl(int index)
+void Container::RemoveAllControls(void)
+
+_chart_timerThread
+da_mark
+da_create_chart
+da_create_series
+da_log
+
+malloc
+free
+realloc
+calloc
+
+void *operator new(std::size_t size) throw (std::bad_alloc)
+void *operator new[](std::size_t size) throw (std::bad_alloc)
+void operator delete(void *ptr) throw()
+void operator delete[](void *ptr) throw()
+void *operator new(std::size_t size, const std::nothrow_t& nothrow) throw()
+void *operator new[](std::size_t size, const std::nothrow_t& nothrow) throw()
+void operator delete(void *ptr, const std::nothrow_t& nothrow) throw()
+void operator delete[](void *ptr, const std::nothrow_t& nothrow) throw()
+
+memset
+memcmp
+memcpy
+
+_dalc_app_create
+_dalc_app_terminate
+_dalc_app_pause
+_dalc_app_resume
+_dalc_app_service
+
+_da_cleanup_handler
+_da_ThreadProc
+pthread_create
+pthread_join
+pthread_exit
+pthread_cancel
+pthread_detach
+pthread_self
+pthread_equal
+pthread_setcancelstate
+pthread_setcanceltype
+pthread_attr_init
+pthread_attr_destroy
+pthread_attr_getdetachstate
+pthread_attr_setdetachstate
+pthread_attr_getstacksize
+pthread_attr_setstacksize
+pthread_attr_getstackaddr
+pthread_attr_setstackaddr
+pthread_attr_getinheritsched
+pthread_attr_setinheritsched
+pthread_attr_getschedparam
+pthread_attr_setschedparam
+pthread_attr_getschedpolicy
+pthread_attr_setschedpolicy
+pthread_attr_getguardsize
+pthread_attr_setguardsize
+pthread_attr_getscope
+pthread_attr_setscope
+pthread_attr_getstack
+pthread_attr_setstack
+
+pthread_mutex_init
+pthread_mutex_destroy
+real_pthread_mutex_lock
+pthread_mutex_lock
+pthread_mutex_timedlock
+pthread_mutex_trylock
+real_pthread_mutex_unlock
+pthread_mutex_unlock
+pthread_mutexattr_init
+pthread_mutexattr_destroy
+pthread_mutexattr_getprioceiling
+pthread_mutexattr_setprioceiling
+pthread_mutexattr_getprotocol
+pthread_mutexattr_setprotocol
+pthread_mutexattr_getpshared
+pthread_mutexattr_setpshared
+pthread_mutexattr_gettype
+pthread_mutexattr_settype
+pthread_cond_init
+pthread_cond_destroy
+pthread_cond_wait
+pthread_cond_timedwait
+pthread_cond_signal
+pthread_cond_broadcast
+
+open
+openat
+creat
+close
+access
+faccessat
+lseek
+fsync
+fdatasync
+truncate
+ftruncate
+mkfifo
+mkfifoat
+mknod
+mknodat
+chown
+fchownat
+fchown
+lchown
+lockf
+chmod
+fchmodat
+fchmod
+pread
+read
+pwrite
+write
+readv
+rmdir
+fchdir
+chdir
+link
+linkat
+unlink
+unlinkat
+symlink
+symlinkat
+readlink
+readlinkat
+mkdir
+mkdirat
+closedir
+fdopendir
+opendir
+readdir
+readdir_r
+rewinddir
+seekdir
+telldir
+fcntl
+dup
+dup2
+fstatat
+lstat
+futimens
+utimensat
+utimes
+utime
+
+clearerr
+fclose
+fdopen
+feof
+ferror
+fflush
+fgetc
+fgetpos
+fileno
+fopen
+fprintf
+fputc
+fputs
+fread
+freopen
+fscanf
+fseek
+fsetpos
+fwrite
+getc
+getchar
+gets
+int
+perror
+printf
+putc
+putchar
+puts
+remove
+rename
+rewind
+scanf
+setbuf
+setbuffer
+setlinebuf
+setvbuf
+tmpnam
+ungetc
+vfprintf
+vfscanf
+
+void SceneManagerEventListener::OnSceneTransitionCompleted(const SceneId &previousSceneId, const SceneId &currentSceneId)
+
+void GestureEventListener::OnCustomGestureCanceled (TouchGestureDetector &gestureDetector)
+void GestureEventListener::OnCustomGestureChanged (TouchGestureDetector &gestureDetector)
+void GestureEventListener::OnCustomGestureFinished (TouchGestureDetector &gestureDetector)
+void GestureEventListener::OnCustomGestureStarted (TouchGestureDetector &gestureDetector)
+void GestureEventListener::OnFlickGestureCanceled (TouchFlickGestureDetector &gestureDetector)
+void GestureEventListener::OnFlickGestureDetected (TouchFlickGestureDetector &gestureDetector)
+void GestureEventListener::OnLongPressGestureCanceled (TouchLongPressGestureDetector &gestureDetector)
+void GestureEventListener::OnLongPressGestureDetected (TouchLongPressGestureDetector &gestureDetector)
+void GestureEventListener::OnPanningGestureCanceled (TouchPanningGestureDetector &gestureDetector)
+void GestureEventListener::OnPanningGestureChanged (TouchPanningGestureDetector &gestureDetector)
+void GestureEventListener::OnPanningGestureFinished (TouchPanningGestureDetector &gestureDetector)
+void GestureEventListener::OnPanningGestureStarted (TouchPanningGestureDetector &gestureDetector)
+void GestureEventListener::OnPinchGestureCanceled (TouchPinchGestureDetector &gestureDetector)
+void GestureEventListener::OnPinchGestureChanged (TouchPinchGestureDetector &gestureDetector)
+void GestureEventListener::OnPinchGestureFinished (TouchPinchGestureDetector &gestureDetector)
+void GestureEventListener::OnPinchGestureStarted (TouchPinchGestureDetector &gestureDetector)
+void GestureEventListener::OnRotationGestureCanceled (TouchRotationGestureDetector &gestureDetector)
+void GestureEventListener::OnRotationGestureChanged (TouchRotationGestureDetector &gestureDetector)
+void GestureEventListener::OnRotationGestureFinished (TouchRotationGestureDetector &gestureDetector)
+void GestureEventListener::OnRotationGestureStarted (TouchRotationGestureDetector &gestureDetector)
+void GestureEventListener::OnTapGestureCanceled (TouchTapGestureDetector &gestureDetector)
+void GestureEventListener::OnTapGestureDetected (TouchTapGestureDetector &gestureDetector)
+
+on_orientation_changed
+
+ecore_event_evas_key_down
+ecore_event_evas_key_up
+ecore_event_evas_mouse_button_down
+ecore_event_evas_mouse_button_up
+ecore_event_evas_mouse_move
+
+accept
+accept4
+bind
+gai_strerror
+hstrerror
+inet_ntop
+connect
+endhostent
+endnetent
+endprotoent
+endservent
+freeaddrinfo
+freeifaddrs
+gai_cancel
+gai_error
+gai_suspend
+getaddrinfo
+getaddrinfo_a
+getdomainname
+gethostbyaddr_r
+gethostbyname2_r
+gethostbyname_r
+gethostent_r
+gethostname
+getifaddrs
+getnameinfo
+getnetbyaddr_r
+getnetbyname_r
+getnetent_r
+getpeername
+getprotobyname_r
+getprotobynumber_r
+getprotoent_r
+getservbyname_r
+getservbyport_r
+getservent_r
+getsockname
+getsockopt
+herror
+gethostbyaddr
+gethostbyname
+gethostbyname2
+gethostent
+htonl
+htons
+if_freenameindex
+if_indextoname
+if_nameindex
+inet_makeaddr
+inet_addr
+inet_aton
+inet_lnaof
+inet_netof
+inet_network
+inet_ntoa
+inet_pton
+if_nametoindex
+le32toh
+le64toh
+listen
+getnetbyaddr
+getnetbyname
+getnetent
+ntohl
+ntohs
+getprotobyname
+getprotobynumber
+getprotoent
+pselect
+recv
+recvfrom
+recvmsg
+select
+send
+sendmsg
+sendto
+getservbyname
+getservbyport
+getservent
+setdomainname
+sethostent
+sethostname
+setnetent
+setprotoent
+setservent
+setsockopt
+shutdown
+socket
+socketpair
+
+Thread* Thread::GetCurrentThread(void)
+
+tmpfile
+ftell