Path: blob/master/arch/cris/arch-v32/mach-a3/vcs_hook.h
15125 views
/*1* Simulator hook call mechanism2*/34#ifndef __hook_h__5#define __hook_h__67int hook_call(unsigned id, unsigned pcnt, ...);8int hook_call_str(unsigned id, unsigned size, const char *str);910enum hook_ids {11hook_debug_on = 1,12hook_debug_off,13hook_stop_sim_ok,14hook_stop_sim_fail,15hook_alloc_shared,16hook_ptr_shared,17hook_free_shared,18hook_file2shared,19hook_cmp_shared,20hook_print_params,21hook_sim_time,22hook_stop_sim,23hook_kick_dog,24hook_dog_timeout,25hook_rand,26hook_srand,27hook_rand_range,28hook_print_str,29hook_print_hex,30hook_cmp_offset_shared,31hook_fill_random_shared,32hook_alloc_random_data,33hook_calloc_random_data,34hook_print_int,35hook_print_uint,36hook_fputc,37hook_init_fd,38hook_sbrk,39hook_print_context_descr,40hook_print_data_descr,41hook_print_group_descr,42hook_fill_shared,43hook_sl_srand,44hook_sl_rand_irange,45hook_sl_rand_urange,46hook_sl_sh_malloc_aligned,47hook_sl_sh_calloc_aligned,48hook_sl_sh_alloc_random_data,49hook_sl_sh_file2mem,50hook_sl_vera_mbox_handle,51hook_sl_vera_mbox_put,52hook_sl_vera_mbox_get,53hook_sl_system,54hook_sl_sh_hexdump55};5657#endif585960