1 /* gmon_io.h 2 3 Copyright (C) 2000-2014 Free Software Foundation, Inc. 4 5 This file is part of GNU Binutils. 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by 9 the Free Software Foundation; either version 3 of the License, or 10 (at your option) any later version. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with this program; if not, write to the Free Software 19 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, 20 MA 02110-1301, USA. */ 21 22 #ifndef gmon_io_h 24 #define gmon_io_h 25 26 #define INPUT_HISTOGRAM (1 << 0) 27 #define INPUT_CALL_GRAPH (1 << 1) 28 #define INPUT_BB_COUNTS (1 << 2) 29 30 extern int gmon_input; /* What input did we see? */ 31 extern int gmon_file_version; /* File version are we dealing with. */ 32 33 extern int gmon_io_read_vma (FILE *ifp, bfd_vma *valp); 34 extern int gmon_io_read_32 (FILE *ifp, unsigned int *valp); 35 extern int gmon_io_read (FILE *ifp, char *buf, size_t n); 36 extern int gmon_io_write_vma (FILE *ifp, bfd_vma val); 37 extern int gmon_io_write_32 (FILE *ifp, unsigned int val); 38 extern int gmon_io_write_8 (FILE *ifp, unsigned int val); 39 extern int gmon_io_write (FILE *ifp, char *buf, size_t n); 40 41 extern void gmon_out_read (const char *); 42 extern void gmon_out_write (const char *); 43 44 #endif /* gmon_io_h */ 45