sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 1 | #ifndef __PUB_CORE_DRD_H |
| 2 | #define __PUB_CORE_DRD_H |
| 3 | |
| 4 | |
| 5 | #include "pub_tool_basics.h" |
| 6 | |
bart | 005dc97 | 2008-03-29 14:42:59 +0000 | [diff] [blame] | 7 | |
| 8 | extern Bool g_any_address_traced; |
| 9 | |
| 10 | |
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 11 | void suppression_set_trace(const Bool trace_suppression); |
| 12 | void drd_suppression_init(void); |
| 13 | void drd_start_suppression(const Addr a1, const Addr a2, |
| 14 | const char* const reason); |
| 15 | void drd_finish_suppression(const Addr a1, const Addr a2); |
| 16 | Bool drd_is_suppressed(const Addr a1, const Addr a2); |
| 17 | Bool drd_is_any_suppressed(const Addr a1, const Addr a2); |
bart | 005dc97 | 2008-03-29 14:42:59 +0000 | [diff] [blame] | 18 | void drd_start_tracing_address_range(const Addr a1, const Addr a2); |
| 19 | void drd_stop_tracing_address_range(const Addr a1, const Addr a2); |
| 20 | Bool drd_is_any_traced(const Addr a1, const Addr a2); |
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 21 | void drd_suppression_stop_using_mem(const Addr a1, const Addr a2); |
| 22 | |
| 23 | |
bart | b9c7d74 | 2008-06-10 12:51:51 +0000 | [diff] [blame] | 24 | static __inline__ Bool drd_any_address_is_traced(void) |
bart | 005dc97 | 2008-03-29 14:42:59 +0000 | [diff] [blame] | 25 | { |
bart | b9c7d74 | 2008-06-10 12:51:51 +0000 | [diff] [blame] | 26 | return g_any_address_traced; |
bart | 005dc97 | 2008-03-29 14:42:59 +0000 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | |
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 30 | #endif // __PUB_CORE_DRD_H |