void libinit(void)
{
  staticlib_module.api_version = EZTRACE_API_VERSION;

  /* Specify the initialization function.
   * This function will be called once all the plugins are loaded
   * and the trace is started.
   * This function usually declared StateTypes, LinkTypes, etc.
   */
  staticlib_module.init = eztrace_convert_staticlib_init;

  /* Specify the function to call for handling an event
   */
  staticlib_module.handle = handle_staticlib_events;

  /* Specify the module prefix */
  staticlib_module.module_prefix = staticlib_EVENTS_ID;

  asprintf(&staticlib_module.name, "staticlib");
  asprintf(&staticlib_module.description, "module for the example library");

  staticlib_module.token.data = &staticlib_module;

  /* Register the module to eztrace_convert */
  eztrace_convert_register_module(&staticlib_module);

  //printf("module staticlib loaded\n");
}
void libinit(void)
{
  /* Specify the initialization function.
   * This function will be called once all the plugins are loaded
   * and the trace is started.
   * This function usually declared StateTypes, LinkTypes, etc.
   */
  coreblas_module.init = eztrace_convert_coreblas_init;

  /* Specify the function to call for handling an event
   */
  coreblas_module.handle = handle_coreblas_events;

  /* Specify the function to call for handling an event when eztrace_stats is called
   */
  coreblas_module.handle_stats = handle_coreblas_stats;

  /* Print the results of statistics
   */
  coreblas_module.print_stats = print_coreblas_stats;

  /* Specify the module prefix */
  coreblas_module.module_prefix = COREBLAS_EVENTS_ID;

  asprintf(&coreblas_module.name, "coreblas");
  asprintf(&coreblas_module.description, "Module for kernels used in PLASMA (BLAS, LAPACK and coreblas)");

  coreblas_module.token.data = &coreblas_module;

  /* Register the module to eztrace_convert */
  eztrace_convert_register_module(&coreblas_module);

  printf("module Coreblas loaded\n");
}