mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-09 13:18:15 +00:00
Added "version" and "copyright_author" fields for skins to supply. Now startup message looks something like this: ==12698== cachegrind, an I1/D1/L2 cache profiler for x86-linux. ==12698== Copyright (C) 2002, and GNU GPL'd, by Nicholas Nethercote. ==12698== Built with valgrind-HEAD, a program execution monitor. ==12698== Copyright (C) 2000-2002, and GNU GPL'd, by Julian Seward. ==12698== Estimated CPU clock rate is 1422 MHz ==12698== For more details, rerun with: -v The skin can specify a version number, but the skins that will be distributed with Valgrind don't. Also changed "x86 GNU/Linux" to the wicked "x86-linux" at Julian's request. Updated default regression test filter to handle this new startup message. ---- Also moved the skin's name, description, etc., fields out of VG_(needs) into a new struct VG_(details), since they are logically quite different to the needs. Did a little code formatting, etc., for this. Updated skin docs correspondingly, too. Also renamed the need `run_libc_freeres' --> `libc_freeres' so it's a noun phrase rather than a verb phrase. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1172
36 lines
1.0 KiB
C
36 lines
1.0 KiB
C
|
|
/*--------------------------------------------------------------------*/
|
|
/*--- An example skin. ex_main.c ---*/
|
|
/*--------------------------------------------------------------------*/
|
|
|
|
#include "vg_skin.h"
|
|
|
|
void SK_(pre_clo_init)(VgDetails* details, VgNeeds* needs, VgTrackEvents* track)
|
|
{
|
|
details->name = "example";
|
|
details->version = "0.0.1";
|
|
details->description = "an example Valgrind skin";
|
|
details->copyright_author =
|
|
"Copyright (C) 2002, and put in the public domain, by Santa Claus.";
|
|
details->bug_reports_to = "santa.claus@northpole.org";
|
|
|
|
/* 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 ---*/
|
|
/*--------------------------------------------------------------------*/
|