comparison VMS.h @ 111:b1817e2451b1

add task # to counter stats
author Nina Engelhardt
date Fri, 05 Aug 2011 18:03:07 +0200
parents 724c7a0b687f
children fac1d896f6e9
comparison
equal deleted inserted replaced
50:91619545c0a0 51:d99b168227bf
432 perror("Error reading cycles counter"); \ 432 perror("Error reading cycles counter"); \
433 instrs = 0; \ 433 instrs = 0; \
434 } \ 434 } \
435 } while (0) 435 } while (0)
436 436
437 #define getReturnAddressBeforeLibraryCall(vp_ptr, res_ptr) do{ \ 437 #define getReturnAddressBeforeLibraryCall(vp_ptr, res_ptr) do{ \
438 void* frame_ptr0 = vp_ptr->framePtr; \ 438 void* frame_ptr0 = vp_ptr->framePtr; \
439 void* frame_ptr1 = *((void**)frame_ptr0); \ 439 void* frame_ptr1 = *((void**)frame_ptr0); \
440 void* frame_ptr2 = *((void**)frame_ptr1); \ 440 void* frame_ptr2 = *((void**)frame_ptr1); \
441 void* frame_ptr3 = *((void**)frame_ptr2); \ 441 void* frame_ptr3 = *((void**)frame_ptr2); \
442 void* ret_addr = *((void**)frame_ptr3 + 1); \ 442 void* ret_addr = *((void**)frame_ptr3 + 1); \
443 *res_ptr = ret_addr; \ 443 *res_ptr = ret_addr; \
444 } while (0) 444 } while (0)
445 445
446 #define MEAS__SUB_CREATE /*turn on/off subtraction of create from plugin*/ 446 #define MEAS__SUB_CREATE /*turn on/off subtraction of create from plugin*/
447 447
448 #ifdef VPTHREAD 448 #ifdef VPTHREAD