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