blob: ac2af3667662fafe15bd280ca25abbfcb09b2e18 [file] [log] [blame]
njn810086f2002-11-14 12:42:47 +00001
2/*--------------------------------------------------------------------*/
nethercote7cc9c232004-01-21 15:08:04 +00003/*--- Stuff relating to tool data structures. ---*/
sewardja7658342005-05-17 13:43:54 +00004/*--- m_tooliface.c ---*/
njn810086f2002-11-14 12:42:47 +00005/*--------------------------------------------------------------------*/
6
7/*
njnb9c427c2004-12-01 14:14:42 +00008 This file is part of Valgrind, a dynamic binary instrumentation
9 framework.
njn810086f2002-11-14 12:42:47 +000010
sewardj03f8d3f2012-08-05 15:46:46 +000011 Copyright (C) 2000-2012 Nicholas Nethercote
njn2bc10122005-05-08 02:10:27 +000012 njn@valgrind.org
njn810086f2002-11-14 12:42:47 +000013
14 This program is free software; you can redistribute it and/or
15 modify it under the terms of the GNU General Public License as
16 published by the Free Software Foundation; either version 2 of the
17 License, or (at your option) any later version.
18
19 This program is distributed in the hope that it will be useful, but
20 WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 General Public License for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with this program; if not, write to the Free Software
26 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
27 02111-1307, USA.
28
29 The GNU General Public License is contained in the file COPYING.
30*/
31
njnc7561b92005-06-19 01:24:32 +000032#include "pub_core_basics.h"
njn4802b382005-06-11 04:58:29 +000033#include "pub_core_tooliface.h"
njn810086f2002-11-14 12:42:47 +000034
njn51d827b2005-05-09 01:02:08 +000035// The core/tool dictionary of functions (initially zeroed, as we want it)
36VgToolInterface VG_(tdict);
njn810086f2002-11-14 12:42:47 +000037
njn8a97c6d2005-03-31 04:37:24 +000038/*--------------------------------------------------------------------*/
39/* Setting basic functions */
40
41void VG_(basic_tool_funcs)(
42 void(*post_clo_init)(void),
sewardj0b9d74a2006-12-24 02:24:11 +000043 IRSB*(*instrument)(VgCallbackClosure*, IRSB*,
florianca503be2012-10-07 21:59:42 +000044 VexGuestLayout*, VexGuestExtents*, VexArchInfo*,
45 IRType, IRType),
njn8a97c6d2005-03-31 04:37:24 +000046 void(*fini)(Int)
47)
48{
njncf81d552005-03-31 04:52:26 +000049 VG_(tdict).tool_post_clo_init = post_clo_init;
50 VG_(tdict).tool_instrument = instrument;
51 VG_(tdict).tool_fini = fini;
njn8a97c6d2005-03-31 04:37:24 +000052}
53
njn51d827b2005-05-09 01:02:08 +000054
njn8a97c6d2005-03-31 04:37:24 +000055/*--------------------------------------------------------------------*/
56/* Setting details */
57
njn810086f2002-11-14 12:42:47 +000058/* Init with default values. */
59VgDetails VG_(details) = {
sewardjc0d8f682002-11-30 00:49:43 +000060 .name = NULL,
61 .version = NULL,
62 .description = NULL,
63 .copyright_author = NULL,
64 .bug_reports_to = NULL,
njn120281f2003-02-03 12:20:07 +000065 .avg_translation_sizeB = VG_DEFAULT_TRANS_SIZEB,
njn810086f2002-11-14 12:42:47 +000066};
67
njn8a97c6d2005-03-31 04:37:24 +000068/* Use macro because they're so repetitive */
69#define DETAILS(type, detail) \
70 extern void VG_(details_##detail)(type detail) \
71 { \
72 VG_(details).detail = detail; \
73 }
74
florian2b8059a2012-10-14 16:45:23 +000075DETAILS(const HChar*, name)
76DETAILS(const HChar*, version)
77DETAILS(const HChar*, description)
78DETAILS(const HChar*, copyright_author)
79DETAILS(const HChar*, bug_reports_to)
njn8a97c6d2005-03-31 04:37:24 +000080DETAILS(UInt, avg_translation_sizeB)
81
njn51d827b2005-05-09 01:02:08 +000082
njn8a97c6d2005-03-31 04:37:24 +000083/*--------------------------------------------------------------------*/
84/* Setting needs */
85
njn810086f2002-11-14 12:42:47 +000086VgNeeds VG_(needs) = {
87 .core_errors = False,
njn95ec8702004-11-22 16:46:13 +000088 .tool_errors = False,
njn810086f2002-11-14 12:42:47 +000089 .libc_freeres = False,
sewardj0b9d74a2006-12-24 02:24:11 +000090 .superblock_discards = False,
njn810086f2002-11-14 12:42:47 +000091 .command_line_options = False,
92 .client_requests = False,
njn810086f2002-11-14 12:42:47 +000093 .syscall_wrapper = False,
njn810086f2002-11-14 12:42:47 +000094 .sanity_checks = False,
sewardjb8b79ad2008-03-03 01:35:41 +000095 .var_info = False,
njnfc51f8d2005-06-21 03:20:17 +000096 .malloc_replacement = False,
njnca54af32006-04-16 10:25:43 +000097 .xml_output = False,
sewardj81651dc2007-08-28 06:05:20 +000098 .final_IR_tidy_pass = False
njn810086f2002-11-14 12:42:47 +000099};
100
101/* static */
florian2b8059a2012-10-14 16:45:23 +0000102Bool VG_(sanity_check_needs)(const HChar** failmsg)
njn810086f2002-11-14 12:42:47 +0000103{
sewardj7cf4e6b2008-05-01 20:24:26 +0000104 Bool any_new_mem_stack_N, any_new_mem_stack_N_w_ECU;
105 Bool any_new_mem_stack_w_conflicting_otags;
106 Bool any_die_mem_stack_N;
107
njn64c83242005-06-21 01:54:38 +0000108#define CHECK_NOT(var, value) \
109 if ((var)==(value)) { \
sewardj7cf4e6b2008-05-01 20:24:26 +0000110 *failmsg = "Tool error: '" #var "' not initialised\n"; \
njn64c83242005-06-21 01:54:38 +0000111 return False; \
njn810086f2002-11-14 12:42:47 +0000112 }
113
njn120281f2003-02-03 12:20:07 +0000114 /* Ones that must be set */
njn810086f2002-11-14 12:42:47 +0000115 CHECK_NOT(VG_(details).name, NULL);
116 /* Nb: .version can be NULL */
117 CHECK_NOT(VG_(details).description, NULL);
118 CHECK_NOT(VG_(details).copyright_author, NULL);
119 CHECK_NOT(VG_(details).bug_reports_to, NULL);
120
sewardj7cf4e6b2008-05-01 20:24:26 +0000121 /* Check that new_mem_stack is defined if any new_mem_stack_N
122 are. */
123 any_new_mem_stack_N
124 = VG_(tdict).track_new_mem_stack_4 ||
125 VG_(tdict).track_new_mem_stack_8 ||
126 VG_(tdict).track_new_mem_stack_12 ||
127 VG_(tdict).track_new_mem_stack_16 ||
128 VG_(tdict).track_new_mem_stack_32 ||
129 VG_(tdict).track_new_mem_stack_112 ||
130 VG_(tdict).track_new_mem_stack_128 ||
131 VG_(tdict).track_new_mem_stack_144 ||
132 VG_(tdict).track_new_mem_stack_160;
133
134 if (any_new_mem_stack_N && ! VG_(tdict).track_new_mem_stack) {
135 *failmsg = "Tool error: one of the specialised 'new_mem_stack_N'\n"
njn64c83242005-06-21 01:54:38 +0000136 " events tracked, but not the generic 'new_mem_stack' one.\n"
137 " 'new_mem_stack' should be defined\n";
138 return False;
njn9b007f62003-04-07 14:40:25 +0000139 }
140
sewardj7cf4e6b2008-05-01 20:24:26 +0000141 /* Check that new_mem_stack_w_ECU is defined if any
142 new_mem_stack_N_w_ECU are. */
143 any_new_mem_stack_N_w_ECU
144 = VG_(tdict).track_new_mem_stack_4_w_ECU ||
145 VG_(tdict).track_new_mem_stack_8_w_ECU ||
146 VG_(tdict).track_new_mem_stack_12_w_ECU ||
147 VG_(tdict).track_new_mem_stack_16_w_ECU ||
148 VG_(tdict).track_new_mem_stack_32_w_ECU ||
149 VG_(tdict).track_new_mem_stack_112_w_ECU ||
150 VG_(tdict).track_new_mem_stack_128_w_ECU ||
151 VG_(tdict).track_new_mem_stack_144_w_ECU ||
152 VG_(tdict).track_new_mem_stack_160_w_ECU;
153
154 if (any_new_mem_stack_N_w_ECU && ! VG_(tdict).track_new_mem_stack_w_ECU) {
155 *failmsg = "Tool error: one of the specialised 'new_mem_stack_N_w_ECU'\n"
156 " events tracked, but not the generic 'new_mem_stack_w_ECU' one.\n"
157 " 'new_mem_stack_w_ECU' should be defined\n";
158 return False;
159 }
160
161 /* Check that in no cases are both with- and without-otag versions of the
162 same new_mem_stack_ function defined. */
163 any_new_mem_stack_w_conflicting_otags
164 = (VG_(tdict).track_new_mem_stack_4 && VG_(tdict).track_new_mem_stack_4_w_ECU) ||
165 (VG_(tdict).track_new_mem_stack_8 && VG_(tdict).track_new_mem_stack_8_w_ECU) ||
166 (VG_(tdict).track_new_mem_stack_12 && VG_(tdict).track_new_mem_stack_12_w_ECU) ||
167 (VG_(tdict).track_new_mem_stack_16 && VG_(tdict).track_new_mem_stack_16_w_ECU) ||
168 (VG_(tdict).track_new_mem_stack_32 && VG_(tdict).track_new_mem_stack_32_w_ECU) ||
169 (VG_(tdict).track_new_mem_stack_112 && VG_(tdict).track_new_mem_stack_112_w_ECU) ||
170 (VG_(tdict).track_new_mem_stack_128 && VG_(tdict).track_new_mem_stack_128_w_ECU) ||
171 (VG_(tdict).track_new_mem_stack_144 && VG_(tdict).track_new_mem_stack_144_w_ECU) ||
172 (VG_(tdict).track_new_mem_stack_160 && VG_(tdict).track_new_mem_stack_160_w_ECU) ||
173 (VG_(tdict).track_new_mem_stack && VG_(tdict).track_new_mem_stack_w_ECU);
174
175 if (any_new_mem_stack_w_conflicting_otags) {
176 *failmsg = "Tool error: tool supplies both a 'new_mem_stack_N' and a\n"
177 " 'new_mem_stack_N_w_ECU' function for some N (or none),\n"
178 " but you can only have one or the other (not both)\n";
179 return False;
180 }
181
182 /* Check that die_mem_stack is defined if any die_mem_stack_N
183 are. */
184 any_die_mem_stack_N
185 = VG_(tdict).track_die_mem_stack_4 ||
186 VG_(tdict).track_die_mem_stack_8 ||
187 VG_(tdict).track_die_mem_stack_12 ||
188 VG_(tdict).track_die_mem_stack_16 ||
189 VG_(tdict).track_die_mem_stack_32 ||
190 VG_(tdict).track_die_mem_stack_112 ||
191 VG_(tdict).track_die_mem_stack_128 ||
192 VG_(tdict).track_die_mem_stack_144 ||
193 VG_(tdict).track_die_mem_stack_160;
194
195 if (any_die_mem_stack_N && ! VG_(tdict).track_die_mem_stack) {
196 *failmsg = "Tool error: one of the specialised 'die_mem_stack_N'\n"
njn64c83242005-06-21 01:54:38 +0000197 " events tracked, but not the generic 'die_mem_stack' one.\n"
198 " 'die_mem_stack' should be defined\n";
199 return False;
njn9b007f62003-04-07 14:40:25 +0000200 }
201
njn64c83242005-06-21 01:54:38 +0000202 return True;
203
njn810086f2002-11-14 12:42:47 +0000204#undef CHECK_NOT
njn810086f2002-11-14 12:42:47 +0000205}
206
njn810086f2002-11-14 12:42:47 +0000207/* Use macro because they're so repetitive */
208#define NEEDS(need) \
209 extern void VG_(needs_##need)(void) \
210 { \
211 VG_(needs).need = True; \
212 }
213
njn8a97c6d2005-03-31 04:37:24 +0000214// These ones don't require any tool-supplied functions
njn810086f2002-11-14 12:42:47 +0000215NEEDS(libc_freeres)
216NEEDS(core_errors)
sewardjb8b79ad2008-03-03 01:35:41 +0000217NEEDS(var_info)
njnfdc28af2003-02-24 10:36:48 +0000218
sewardj0b9d74a2006-12-24 02:24:11 +0000219void VG_(needs_superblock_discards)(
sewardj4ba057c2005-10-18 12:04:18 +0000220 void (*discard)(Addr64, VexGuestExtents)
njn8a97c6d2005-03-31 04:37:24 +0000221)
222{
sewardj0b9d74a2006-12-24 02:24:11 +0000223 VG_(needs).superblock_discards = True;
224 VG_(tdict).tool_discard_superblock_info = discard;
njn8a97c6d2005-03-31 04:37:24 +0000225}
226
227void VG_(needs_tool_errors)(
228 Bool (*eq) (VgRes, Error*, Error*),
sewardj738856f2009-07-15 14:48:32 +0000229 void (*before_pp) (Error*),
njn8a97c6d2005-03-31 04:37:24 +0000230 void (*pp) (Error*),
sewardjadb102f2007-11-09 23:21:44 +0000231 Bool show_TIDs,
njn8a97c6d2005-03-31 04:37:24 +0000232 UInt (*update) (Error*),
florian19f91bb2012-11-10 22:29:54 +0000233 Bool (*recog) (const HChar*, Supp*),
234 Bool (*read_extra) (Int, HChar**, SizeT*, Supp*),
njn8a97c6d2005-03-31 04:37:24 +0000235 Bool (*matches) (Error*, Supp*),
floriane543f302012-10-21 19:43:43 +0000236 const HChar* (*name) (Error*),
floriandbb35842012-10-27 18:39:11 +0000237 Bool (*get_xtra_si)(Error*,/*OUT*/HChar*,Int)
njn8a97c6d2005-03-31 04:37:24 +0000238)
239{
240 VG_(needs).tool_errors = True;
njncf81d552005-03-31 04:52:26 +0000241 VG_(tdict).tool_eq_Error = eq;
sewardj738856f2009-07-15 14:48:32 +0000242 VG_(tdict).tool_before_pp_Error = before_pp;
njncf81d552005-03-31 04:52:26 +0000243 VG_(tdict).tool_pp_Error = pp;
sewardjadb102f2007-11-09 23:21:44 +0000244 VG_(tdict).tool_show_ThreadIDs_for_errors = show_TIDs;
njncf81d552005-03-31 04:52:26 +0000245 VG_(tdict).tool_update_extra = update;
246 VG_(tdict).tool_recognised_suppression = recog;
247 VG_(tdict).tool_read_extra_suppression_info = read_extra;
248 VG_(tdict).tool_error_matches_suppression = matches;
249 VG_(tdict).tool_get_error_name = name;
sewardj588adef2009-08-15 22:41:51 +0000250 VG_(tdict).tool_get_extra_suppression_info = get_xtra_si;
njn8a97c6d2005-03-31 04:37:24 +0000251}
252
253void VG_(needs_command_line_options)(
florian19f91bb2012-11-10 22:29:54 +0000254 Bool (*process)(const HChar*),
njn8a97c6d2005-03-31 04:37:24 +0000255 void (*usage)(void),
256 void (*debug_usage)(void)
257)
258{
259 VG_(needs).command_line_options = True;
njncf81d552005-03-31 04:52:26 +0000260 VG_(tdict).tool_process_cmd_line_option = process;
261 VG_(tdict).tool_print_usage = usage;
262 VG_(tdict).tool_print_debug_usage = debug_usage;
njn8a97c6d2005-03-31 04:37:24 +0000263}
264
265void VG_(needs_client_requests)(
266 Bool (*handle)(ThreadId, UWord*, UWord*)
267)
268{
269 VG_(needs).client_requests = True;
njncf81d552005-03-31 04:52:26 +0000270 VG_(tdict).tool_handle_client_request = handle;
njn8a97c6d2005-03-31 04:37:24 +0000271}
272
273void VG_(needs_syscall_wrapper)(
sewardj1c0ce7a2009-07-01 08:10:49 +0000274 void(*pre) (ThreadId, UInt, UWord*, UInt),
275 void(*post)(ThreadId, UInt, UWord*, UInt, SysRes res)
njn8a97c6d2005-03-31 04:37:24 +0000276)
277{
278 VG_(needs).syscall_wrapper = True;
njncf81d552005-03-31 04:52:26 +0000279 VG_(tdict).tool_pre_syscall = pre;
280 VG_(tdict).tool_post_syscall = post;
njn8a97c6d2005-03-31 04:37:24 +0000281}
282
283void VG_(needs_sanity_checks)(
284 Bool(*cheap)(void),
285 Bool(*expen)(void)
286)
287{
288 VG_(needs).sanity_checks = True;
njncf81d552005-03-31 04:52:26 +0000289 VG_(tdict).tool_cheap_sanity_check = cheap;
290 VG_(tdict).tool_expensive_sanity_check = expen;
njn8a97c6d2005-03-31 04:37:24 +0000291}
292
njnfc51f8d2005-06-21 03:20:17 +0000293void VG_(needs_malloc_replacement)(
njn8a97c6d2005-03-31 04:37:24 +0000294 void* (*malloc) ( ThreadId, SizeT ),
295 void* (*__builtin_new) ( ThreadId, SizeT ),
296 void* (*__builtin_vec_new) ( ThreadId, SizeT ),
297 void* (*memalign) ( ThreadId, SizeT, SizeT ),
298 void* (*calloc) ( ThreadId, SizeT, SizeT ),
299 void (*free) ( ThreadId, void* ),
300 void (*__builtin_delete) ( ThreadId, void* ),
301 void (*__builtin_vec_delete) ( ThreadId, void* ),
302 void* (*realloc) ( ThreadId, void*, SizeT ),
njn8b140de2009-02-17 04:31:18 +0000303 SizeT (*malloc_usable_size) ( ThreadId, void* ),
njn8a97c6d2005-03-31 04:37:24 +0000304 SizeT client_malloc_redzone_szB
305)
306{
njnfc51f8d2005-06-21 03:20:17 +0000307 VG_(needs).malloc_replacement = True;
308 VG_(tdict).tool_malloc = malloc;
309 VG_(tdict).tool___builtin_new = __builtin_new;
310 VG_(tdict).tool___builtin_vec_new = __builtin_vec_new;
311 VG_(tdict).tool_memalign = memalign;
312 VG_(tdict).tool_calloc = calloc;
313 VG_(tdict).tool_free = free;
314 VG_(tdict).tool___builtin_delete = __builtin_delete;
315 VG_(tdict).tool___builtin_vec_delete = __builtin_vec_delete;
316 VG_(tdict).tool_realloc = realloc;
njn8b140de2009-02-17 04:31:18 +0000317 VG_(tdict).tool_malloc_usable_size = malloc_usable_size;
njnfc51f8d2005-06-21 03:20:17 +0000318 VG_(tdict).tool_client_redzone_szB = client_malloc_redzone_szB;
njn8a97c6d2005-03-31 04:37:24 +0000319}
320
sewardj738856f2009-07-15 14:48:32 +0000321void VG_(needs_xml_output)( void )
322{
323 VG_(needs).xml_output = True;
324}
325
sewardj81651dc2007-08-28 06:05:20 +0000326void VG_(needs_final_IR_tidy_pass)(
327 IRSB*(*final_tidy)(IRSB*)
328)
329{
330 VG_(needs).final_IR_tidy_pass = True;
331 VG_(tdict).tool_final_IR_tidy_pass = final_tidy;
332}
njn51d827b2005-05-09 01:02:08 +0000333
njn810086f2002-11-14 12:42:47 +0000334/*--------------------------------------------------------------------*/
sewardj7cf4e6b2008-05-01 20:24:26 +0000335/* Tracked events. Digit 'n' on DEFn is the REGPARMness. */
njn51d827b2005-05-09 01:02:08 +0000336
sewardj7cf4e6b2008-05-01 20:24:26 +0000337#define DEF0(fn, args...) \
338void VG_(fn)(void(*f)(args)) { \
339 VG_(tdict).fn = f; \
340}
341
342#define DEF1(fn, args...) \
343void VG_(fn)(VG_REGPARM(1) void(*f)(args)) { \
njn51d827b2005-05-09 01:02:08 +0000344 VG_(tdict).fn = f; \
345}
346
347#define DEF2(fn, args...) \
sewardj7cf4e6b2008-05-01 20:24:26 +0000348void VG_(fn)(VG_REGPARM(2) void(*f)(args)) { \
njn51d827b2005-05-09 01:02:08 +0000349 VG_(tdict).fn = f; \
350}
351
sewardj9c606bd2008-09-18 18:12:50 +0000352DEF0(track_new_mem_startup, Addr, SizeT, Bool, Bool, Bool, ULong)
sewardj7cf4e6b2008-05-01 20:24:26 +0000353DEF0(track_new_mem_stack_signal, Addr, SizeT, UInt)
354DEF0(track_new_mem_brk, Addr, SizeT, UInt)
sewardj9c606bd2008-09-18 18:12:50 +0000355DEF0(track_new_mem_mmap, Addr, SizeT, Bool, Bool, Bool, ULong)
njn51d827b2005-05-09 01:02:08 +0000356
sewardj7cf4e6b2008-05-01 20:24:26 +0000357DEF0(track_copy_mem_remap, Addr, Addr, SizeT)
358DEF0(track_change_mem_mprotect, Addr, SizeT, Bool, Bool, Bool)
359DEF0(track_die_mem_stack_signal, Addr, SizeT)
360DEF0(track_die_mem_brk, Addr, SizeT)
361DEF0(track_die_mem_munmap, Addr, SizeT)
njn51d827b2005-05-09 01:02:08 +0000362
sewardj7cf4e6b2008-05-01 20:24:26 +0000363DEF2(track_new_mem_stack_4_w_ECU, Addr, UInt)
364DEF2(track_new_mem_stack_8_w_ECU, Addr, UInt)
365DEF2(track_new_mem_stack_12_w_ECU, Addr, UInt)
366DEF2(track_new_mem_stack_16_w_ECU, Addr, UInt)
367DEF2(track_new_mem_stack_32_w_ECU, Addr, UInt)
368DEF2(track_new_mem_stack_112_w_ECU, Addr, UInt)
369DEF2(track_new_mem_stack_128_w_ECU, Addr, UInt)
370DEF2(track_new_mem_stack_144_w_ECU, Addr, UInt)
371DEF2(track_new_mem_stack_160_w_ECU, Addr, UInt)
372DEF0(track_new_mem_stack_w_ECU, Addr, SizeT, UInt)
njn51d827b2005-05-09 01:02:08 +0000373
sewardj7cf4e6b2008-05-01 20:24:26 +0000374DEF1(track_new_mem_stack_4, Addr)
375DEF1(track_new_mem_stack_8, Addr)
376DEF1(track_new_mem_stack_12, Addr)
377DEF1(track_new_mem_stack_16, Addr)
378DEF1(track_new_mem_stack_32, Addr)
379DEF1(track_new_mem_stack_112, Addr)
380DEF1(track_new_mem_stack_128, Addr)
381DEF1(track_new_mem_stack_144, Addr)
382DEF1(track_new_mem_stack_160, Addr)
383DEF0(track_new_mem_stack, Addr, SizeT)
njn51d827b2005-05-09 01:02:08 +0000384
sewardj7cf4e6b2008-05-01 20:24:26 +0000385DEF1(track_die_mem_stack_4, Addr)
386DEF1(track_die_mem_stack_8, Addr)
387DEF1(track_die_mem_stack_12, Addr)
388DEF1(track_die_mem_stack_16, Addr)
389DEF1(track_die_mem_stack_32, Addr)
390DEF1(track_die_mem_stack_112, Addr)
391DEF1(track_die_mem_stack_128, Addr)
392DEF1(track_die_mem_stack_144, Addr)
393DEF1(track_die_mem_stack_160, Addr)
394DEF0(track_die_mem_stack, Addr, SizeT)
njn51d827b2005-05-09 01:02:08 +0000395
sewardj7cf4e6b2008-05-01 20:24:26 +0000396DEF0(track_ban_mem_stack, Addr, SizeT)
njn51d827b2005-05-09 01:02:08 +0000397
floriane543f302012-10-21 19:43:43 +0000398DEF0(track_pre_mem_read, CorePart, ThreadId, const HChar*, Addr, SizeT)
399DEF0(track_pre_mem_read_asciiz, CorePart, ThreadId, const HChar*, Addr)
400DEF0(track_pre_mem_write, CorePart, ThreadId, const HChar*, Addr, SizeT)
sewardj7cf4e6b2008-05-01 20:24:26 +0000401DEF0(track_post_mem_write, CorePart, ThreadId, Addr, SizeT)
njn51d827b2005-05-09 01:02:08 +0000402
floriane543f302012-10-21 19:43:43 +0000403DEF0(track_pre_reg_read, CorePart, ThreadId, const HChar*, PtrdiffT, SizeT)
404DEF0(track_post_reg_write, CorePart, ThreadId, PtrdiffT, SizeT)
njn51d827b2005-05-09 01:02:08 +0000405
njnc4431bf2009-01-15 21:29:24 +0000406DEF0(track_post_reg_write_clientcall_return, ThreadId, PtrdiffT, SizeT, Addr)
njn51d827b2005-05-09 01:02:08 +0000407
sewardj7cf4e6b2008-05-01 20:24:26 +0000408DEF0(track_start_client_code, ThreadId, ULong)
409DEF0(track_stop_client_code, ThreadId, ULong)
njn51d827b2005-05-09 01:02:08 +0000410
sewardj7cf4e6b2008-05-01 20:24:26 +0000411DEF0(track_pre_thread_ll_create, ThreadId, ThreadId)
412DEF0(track_pre_thread_first_insn, ThreadId)
413DEF0(track_pre_thread_ll_exit, ThreadId)
414
415DEF0(track_pre_deliver_signal, ThreadId, Int sigNo, Bool)
416DEF0(track_post_deliver_signal, ThreadId, Int sigNo)
njn51d827b2005-05-09 01:02:08 +0000417
njn51d827b2005-05-09 01:02:08 +0000418/*--------------------------------------------------------------------*/
419/*--- end ---*/
njn810086f2002-11-14 12:42:47 +0000420/*--------------------------------------------------------------------*/