4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
8 * Woojin Jung <woojin2.jung@samsung.com>
9 * Jaewon Lim <jaewon81.lim@samsung.com>
10 * Juyoung Kim <j0.kim@samsung.com>
12 * This library is free software; you can redistribute it and/or modify it under
13 * the terms of the GNU Lesser General Public License as published by the
14 * Free Software Foundation; either version 2.1 of the License, or (at your option)
17 * This library is distributed in the hope that it will be useful, but WITHOUT ANY
18 * WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
20 * License for more details.
22 * You should have received a copy of the GNU Lesser General Public License
23 * along with this library; if not, write to the Free Software Foundation, Inc., 51
24 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
31 #ifndef __DA_THREAD_H__
32 #define __DA_THREAD_H__
36 #define BEFORE_ORIGINAL_THREAD(FUNCNAME, LIBNAME) \
37 DECLARE_VARIABLE_STANDARD; \
38 GET_REAL_FUNC(FUNCNAME, LIBNAME); \
41 #define AFTER_PACK_ORIGINAL_THREAD(RVAL, THREADVAL, APITYPE, INPUTFORMAT, ...) \
42 POST_PACK_PROBEBLOCK_BEGIN(); \
43 PREPARE_LOCAL_BUF(); \
44 PACK_COMMON_BEGIN(MSG_PROBE_THREAD, LC_THREAD, INPUTFORMAT, __VA_ARGS__); \
45 PACK_COMMON_END(RVAL, errno, blockresult); \
46 PACK_THREAD(THREADVAL, THREAD_PTHREAD, APITYPE); \
48 POST_PACK_PROBEBLOCK_END()
50 #endif // __DA_THREAD_H__