Vikram S. Adve | 2df1f74 | 2002-05-19 15:49:58 +0000 | [diff] [blame] | 1 | /*===-- Libraries/tracelib.h - Runtime routines for tracing -----*- C++ -*--=== |
| 2 | * |
| 3 | * Runtime routines for supporting tracing of execution |
| 4 | * for code generated by LLVM. |
| 5 | * |
| 6 | *===---------------------------------------------------------------------===*/ |
| 7 | |
| 8 | #ifndef _TEST_LIBRARIES_LIBINSTR_TRACELIB_ |
| 9 | #define _TEST_LIBRARIES_LIBINSTR_TRACELIB_ |
| 10 | |
| 11 | #ifdef __cplusplus |
| 12 | extern "C" { |
| 13 | #endif |
| 14 | |
| 15 | #include <sys/types.h> |
| 16 | |
| 17 | /*===---------------------------------------------------------------------===== |
| 18 | * Support for tracing pointers |
| 19 | *===---------------------------------------------------------------------===*/ |
| 20 | |
| 21 | typedef unsigned int SequenceNumber; |
| 22 | |
| 23 | extern SequenceNumber HashPointerToSeqNum( char* ptr); |
| 24 | |
| 25 | extern void ReleasePointerSeqNum(char* ptr); |
| 26 | |
| 27 | extern void RecordPointer(char* ptr); |
| 28 | |
| 29 | extern void PushPointerSet(); |
| 30 | |
| 31 | extern void ReleasePointersPopSet(); |
| 32 | |
| 33 | |
| 34 | #ifdef __cplusplus |
| 35 | } |
| 36 | #endif |
| 37 | |
| 38 | /*===---------------------------------------------------------------------===*/ |
| 39 | |
Misha Brukman | fd93908 | 2005-04-21 23:48:37 +0000 | [diff] [blame] | 40 | #endif |