Subversion Repositories shark

Rev

Blame | Last modification | View Log | RSS feed

/*
 *
 *
 *
 */


#include <ll/i386/cons.h>
#include <stddef.h>

#include <trace/trace.h>
#include <trace/queues.h>

int __register_sub_init_prologue(void)
{
  int q;
  TRC_init_phase1(NULL);
  trc_register_fixed_queue();
  q=trc_create_queue(TRC_FIXED_QUEUE,NULL);
  trc_assign_class_to_queue(TRC_CLASS_SYSTEM,q);
  trc_trace_class(TRC_CLASS_SYSTEM);
  return 0;
}

int main(int argc,char *argv[])
{
  cprintf("\nHello, world!\n");
  cprintf("The tracer has been activated! Look at the results.\n");
  cprintf("(A fixed queue has been created)\n\n");
  return 0;
}