vcs_hook.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * Simulator hook call mechanism
  3. */
  4. #ifndef __hook_h__
  5. #define __hook_h__
  6. int hook_call(unsigned id, unsigned pcnt, ...);
  7. int hook_call_str(unsigned id, unsigned size, const char *str);
  8. enum hook_ids {
  9. hook_debug_on = 1,
  10. hook_debug_off,
  11. hook_stop_sim_ok,
  12. hook_stop_sim_fail,
  13. hook_alloc_shared,
  14. hook_ptr_shared,
  15. hook_free_shared,
  16. hook_file2shared,
  17. hook_cmp_shared,
  18. hook_print_params,
  19. hook_sim_time,
  20. hook_stop_sim,
  21. hook_kick_dog,
  22. hook_dog_timeout,
  23. hook_rand,
  24. hook_srand,
  25. hook_rand_range,
  26. hook_print_str,
  27. hook_print_hex,
  28. hook_cmp_offset_shared,
  29. hook_fill_random_shared,
  30. hook_alloc_random_data,
  31. hook_calloc_random_data,
  32. hook_print_int,
  33. hook_print_uint,
  34. hook_fputc,
  35. hook_init_fd,
  36. hook_sbrk,
  37. hook_print_context_descr,
  38. hook_print_data_descr,
  39. hook_print_group_descr,
  40. hook_fill_shared,
  41. hook_sl_srand,
  42. hook_sl_rand_irange,
  43. hook_sl_rand_urange,
  44. hook_sl_sh_malloc_aligned,
  45. hook_sl_sh_calloc_aligned,
  46. hook_sl_sh_alloc_random_data,
  47. hook_sl_sh_file2mem,
  48. hook_sl_vera_mbox_handle,
  49. hook_sl_vera_mbox_put,
  50. hook_sl_vera_mbox_get,
  51. hook_sl_system,
  52. hook_sl_sh_hexdump
  53. };
  54. #endif