Julian Seward 31fb0482e7 Complete integration of the new code management (sectored FIFO) story.
This commit adds stats gathering / printing (use -v -v), and selection
of sector size decided by asking skins, via
VG_(details).avg_translation_sizeB, the average size of their
translations.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1334
2002-11-30 00:49:43 +00:00

42 lines
1.1 KiB
C

/*--------------------------------------------------------------------*/
/*--- An example skin. ex_main.c ---*/
/*--------------------------------------------------------------------*/
#include "vg_skin.h"
VG_DETERMINE_INTERFACE_VERSION
void SK_(pre_clo_init)()
{
VG_(details_name) ("Example");
VG_(details_version) ("0.0.1");
VG_(details_description) ("an example Valgrind skin");
VG_(details_copyright_author)(
"Copyright (C) 2002, and put in the public domain, by Santa Claus.");
VG_(details_bug_reports_to) ("santa.claus@northpole.org");
/* Adjust this to be closer to reality once you have your skin
working. */
VG_(details_avg_translation_sizeB) ( 100 );
/* No needs, no core events to track */
}
void SK_(post_clo_init)(void)
{
}
UCodeBlock* SK_(instrument)(UCodeBlock* cb, Addr a)
{
return cb;
}
void SK_(fini)(void)
{
}
/*--------------------------------------------------------------------*/
/*--- end ex_main.c ---*/
/*--------------------------------------------------------------------*/