sewardj | 8564292 | 2008-01-14 11:54:56 +0000 | [diff] [blame] | 1 | /* |
| 2 | This file is part of drd, a data race detector. |
| 3 | |
| 4 | Copyright (C) 2006-2008 Bart Van Assche |
| 5 | bart.vanassche@gmail.com |
| 6 | |
| 7 | This program is free software; you can redistribute it and/or |
| 8 | modify it under the terms of the GNU General Public License as |
| 9 | published by the Free Software Foundation; either version 2 of the |
| 10 | License, or (at your option) any later version. |
| 11 | |
| 12 | This program is distributed in the hope that it will be useful, but |
| 13 | WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | General Public License for more details. |
| 16 | |
| 17 | You should have received a copy of the GNU General Public License |
| 18 | along with this program; if not, write to the Free Software |
| 19 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
| 20 | 02111-1307, USA. |
| 21 | |
| 22 | The GNU General Public License is contained in the file COPYING. |
| 23 | */ |
| 24 | |
| 25 | |
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 26 | void drd_post_thread_join(DrdThreadId joiner, DrdThreadId joinee); |
sewardj | 8564292 | 2008-01-14 11:54:56 +0000 | [diff] [blame] | 27 | |
bart | 5bd9f2d | 2008-03-03 20:31:58 +0000 | [diff] [blame] | 28 | void drd_trace_addr(const Addr addr); |
| 29 | |
sewardj | 721ad7b | 2007-11-30 08:30:29 +0000 | [diff] [blame] | 30 | void drd_pre_mutex_init(Addr mutex, SizeT size, const MutexT mutex_type); |
| 31 | void drd_post_mutex_destroy(Addr mutex, const MutexT mutex_type); |
bart | 0034464 | 2008-03-01 15:27:41 +0000 | [diff] [blame] | 32 | void drd_pre_mutex_lock(const Addr mutex, const SizeT size, |
sewardj | 721ad7b | 2007-11-30 08:30:29 +0000 | [diff] [blame] | 33 | const MutexT mutex_type); |
bart | 0034464 | 2008-03-01 15:27:41 +0000 | [diff] [blame] | 34 | void drd_post_mutex_lock(Addr mutex, const Bool took_lock); |
| 35 | void drd_pre_mutex_unlock(const Addr mutex, const MutexT mutex_type); |
sewardj | 8564292 | 2008-01-14 11:54:56 +0000 | [diff] [blame] | 36 | |
bart | 72b751c | 2008-03-01 13:44:24 +0000 | [diff] [blame] | 37 | void drd_pre_cond_init(Addr cond, SizeT s); |
| 38 | void drd_post_cond_destroy(Addr cond); |
sewardj | 8564292 | 2008-01-14 11:54:56 +0000 | [diff] [blame] | 39 | |
| 40 | void drd_semaphore_init(const Addr semaphore, const SizeT size, |
| 41 | const Word pshared, const Word value); |
| 42 | void drd_semaphore_destroy(const Addr semaphore); |
bart | 28230a3 | 2008-02-29 17:27:03 +0000 | [diff] [blame] | 43 | void drd_semaphore_pre_wait(const DrdThreadId tid, const Addr semaphore, |
| 44 | const SizeT size); |
sewardj | 8564292 | 2008-01-14 11:54:56 +0000 | [diff] [blame] | 45 | void drd_semaphore_post_wait(const DrdThreadId tid, const Addr semaphore, |
bart | 28230a3 | 2008-02-29 17:27:03 +0000 | [diff] [blame] | 46 | const Bool waited); |
sewardj | 8564292 | 2008-01-14 11:54:56 +0000 | [diff] [blame] | 47 | void drd_semaphore_pre_post(const DrdThreadId tid, const Addr semaphore, |
| 48 | const SizeT size); |
| 49 | void drd_semaphore_post_post(const DrdThreadId tid, const Addr semaphore, |
sewardj | e3b57aa | 2008-01-18 07:42:01 +0000 | [diff] [blame] | 50 | const SizeT size, const Bool waited); |
sewardj | 8564292 | 2008-01-14 11:54:56 +0000 | [diff] [blame] | 51 | |
| 52 | void drd_barrier_init(const Addr barrier, const SizeT size, const Word count); |
| 53 | void drd_barrier_destroy(const Addr barrier); |
| 54 | void drd_barrier_pre_wait(const DrdThreadId tid, const Addr barrier); |
| 55 | void drd_barrier_post_wait(const DrdThreadId tid, const Addr barrier, |
| 56 | const Bool waited); |