mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-05 11:10:21 +00:00
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
42 lines
1.1 KiB
C
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 ---*/
|
|
/*--------------------------------------------------------------------*/
|