/* get max value */
char maxValString[64];
GLint maxVal[2];
+ ElfW(Addr) orig = 0;
+
real_glGetIntegerv(GL_MAX_VERTEX_ATTRIBS, &maxVal[0]);
real_glGetIntegerv(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS,
&maxVal[1]);
BUF_PTR = pack_int64(BUF_PTR, (uint64_t)errn); /* errno */ \
BUF_PTR = pack_int32(BUF_PTR, intern_call); /* internal call*/ \
BUF_PTR = pack_int64(BUF_PTR, caller); /*caller addr*/ \
- BUF_PTR = pack_int32(BUF_PTR, 0); /* reserved */ \
- BUF_PTR = pack_int32(BUF_PTR, 0); /* reserved */ \
+ BUF_PTR = pack_int64(BUF_PTR, orig); /* original func addr */\
} while (0)
#endif
BUF_PTR = pack_int64(BUF_PTR, (uint64_t)errn); /* errno */ \
BUF_PTR = pack_int32(BUF_PTR, (uint32_t)0); /* internal call*/ \
BUF_PTR = pack_int64(BUF_PTR, (uintptr_t)0); /*caller addr*/\
- BUF_PTR = pack_int32(BUF_PTR, 0); /* reserved */ \
- BUF_PTR = pack_int32(BUF_PTR, 0); /* reserved */ \
+ BUF_PTR = pack_int64(BUF_PTR, (uint64_t)0); /* original func addr */\
} while (0)
#define PACK_RETURN_END(ret_type, ret) \
GLenum error = GL_NO_ERROR; \
int32_t vAPI_ID = API_ID_ ## FUNCNAME; \
uint64_t start_nsec = 0; \
+ ElfW(Addr) orig = ElfW(Addr)(__gl_api->FUNCNAME); \
PRE_PROBEBLOCK(); \
if(blockresult != 0) \
start_nsec = get_current_nsec(); \
bool bret = false;
DECLARE_ERRNO_VARS;
int blockresult = 1;
+ ElfW(Addr) orig = (ElfW(Addr))(uiAppCallback.create);
bret = uiAppCallback.create(user_data);
{
DECLARE_ERRNO_VARS;
int blockresult = 1;
+ ElfW(Addr) orig = (ElfW(Addr))(uiAppCallback.terminate);
uiAppCallback.terminate(user_data);
{
DECLARE_ERRNO_VARS;
int blockresult = 1;
+ ElfW(Addr) orig = (ElfW(Addr))(uiAppCallback.pause);
uiAppCallback.pause(user_data);
{
DECLARE_ERRNO_VARS;
int blockresult = 1;
+ ElfW(Addr) orig = (ElfW(Addr))(uiAppCallback.resume);
uiAppCallback.resume(user_data);
{
DECLARE_ERRNO_VARS;
int blockresult = 1;
+ ElfW(Addr) orig = (ElfW(Addr))(uiAppCallback.app_control);
uiAppCallback.app_control(handle, user_data);
void on_orientation_changed(int angle, bool capi)
{
if (isOptionEnabled(OPT_EVENT)) {
+ ElfW(Addr) orig = 0;
+
inc_current_event_index();
PREPARE_LOCAL_BUF();
{
struct __elm_gesture_layer_cb_set_data *d = data;
Evas_Event_Flags res;
+ ElfW(Addr) orig = 0;
res = d->cb(d->data, event_info);
#define PACK_HW_EVENT(API_ID, _EVENTTYPE, _DETAILTYPE, _X, _Y, _KEYCODE, _EXTRA, \
_ARGDATA, _ARGTYPE, _ARGEVENT) \
do { \
+ ElfW(Addr) orig = 0; \
inc_current_event_index(); \
PREPARE_LOCAL_BUF(); \
PACK_COMMON_BEGIN(MSG_PROBE_UIEVENT, API_ID, "pdp", \
pthread_t pSelf;
/* TODO Arch dependent */
uint32_t caller;
+ ElfW(Addr) orig = 0;
caller = (uint32_t)
(__builtin_extract_return_addr(__builtin_return_address(0)));
int new_state = PTHREAD_CANCEL_DISABLE;
/* TODO Arch dependent */
uint32_t caller;
+ ElfW(Addr) orig = 0;
caller = (uint32_t)
(__builtin_extract_return_addr(__builtin_return_address(0)));