njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame^] | 1 | |
| 2 | /*--------------------------------------------------------------------*/ |
| 3 | /*--- Dummy profiling machinery -- overridden by skins when they ---*/ |
| 4 | /*--- want profiling. ---*/ |
| 5 | /*--- vg_dummy_profile.c ---*/ |
| 6 | /*--------------------------------------------------------------------*/ |
| 7 | |
| 8 | /* |
| 9 | This file is part of Valgrind, an x86 protected-mode emulator |
| 10 | designed for debugging and profiling binaries on x86-Unixes. |
| 11 | |
| 12 | Copyright (C) 2000-2002 Julian Seward |
| 13 | jseward@acm.org |
| 14 | |
| 15 | This program is free software; you can redistribute it and/or |
| 16 | modify it under the terms of the GNU General Public License as |
| 17 | published by the Free Software Foundation; either version 2 of the |
| 18 | License, or (at your option) any later version. |
| 19 | |
| 20 | This program is distributed in the hope that it will be useful, but |
| 21 | WITHOUT ANY WARRANTY; without even the implied warranty of |
| 22 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 23 | General Public License for more details. |
| 24 | |
| 25 | You should have received a copy of the GNU General Public License |
| 26 | along with this program; if not, write to the Free Software |
| 27 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
| 28 | 02111-1307, USA. |
| 29 | |
| 30 | The GNU General Public License is contained in the file COPYING. |
| 31 | */ |
| 32 | |
| 33 | #include "vg_include.h" |
| 34 | |
| 35 | |
| 36 | void VGP_(register_profile_event) ( Int n, Char* name ) |
| 37 | { |
| 38 | } |
| 39 | |
| 40 | void VGP_(init_profiling) ( void ) |
| 41 | { |
| 42 | VG_(printf)( |
| 43 | "\nProfiling error:\n" |
| 44 | " The --profile=yes option was specified, but the skin\n" |
| 45 | " wasn't built for profiling. #include \"vg_profile.c\"\n" |
| 46 | " into the skin and rebuild to allow profiling.\n\n"); |
| 47 | VG_(exit)(1); |
| 48 | } |
| 49 | |
| 50 | void VGP_(done_profiling) ( void ) |
| 51 | { |
| 52 | VG_(panic)("done_profiling"); |
| 53 | } |
| 54 | |
| 55 | void VGP_(pushcc) ( UInt cc ) |
| 56 | { |
| 57 | VG_(panic)("pushcc"); |
| 58 | } |
| 59 | |
| 60 | void VGP_(popcc) ( UInt cc ) |
| 61 | { |
| 62 | VG_(panic)("popcc"); |
| 63 | } |
| 64 | |
| 65 | /*--------------------------------------------------------------------*/ |
| 66 | /*--- end vg_dummy_profile.c ---*/ |
| 67 | /*--------------------------------------------------------------------*/ |