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