xref: /netbsd-src/external/gpl3/binutils.old/dist/gprof/gmon_io.h (revision e992f068c547fd6e84b3f104dc2340adcc955732)
175fd0b74Schristos /* gmon_io.h
275fd0b74Schristos 
3*e992f068Schristos    Copyright (C) 2000-2022 Free Software Foundation, Inc.
475fd0b74Schristos 
575fd0b74Schristos    This file is part of GNU Binutils.
675fd0b74Schristos 
775fd0b74Schristos    This program is free software; you can redistribute it and/or modify
875fd0b74Schristos    it under the terms of the GNU General Public License as published by
975fd0b74Schristos    the Free Software Foundation; either version 3 of the License, or
1075fd0b74Schristos    (at your option) any later version.
1175fd0b74Schristos 
1275fd0b74Schristos    This program is distributed in the hope that it will be useful,
1375fd0b74Schristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
1475fd0b74Schristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1575fd0b74Schristos    GNU General Public License for more details.
1675fd0b74Schristos 
1775fd0b74Schristos    You should have received a copy of the GNU General Public License
1875fd0b74Schristos    along with this program; if not, write to the Free Software
1975fd0b74Schristos    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
2075fd0b74Schristos    MA 02110-1301, USA.  */
2175fd0b74Schristos 
2275fd0b74Schristos #ifndef gmon_io_h
2375fd0b74Schristos #define gmon_io_h
2475fd0b74Schristos 
2575fd0b74Schristos #define INPUT_HISTOGRAM		(1 << 0)
2675fd0b74Schristos #define INPUT_CALL_GRAPH	(1 << 1)
2775fd0b74Schristos #define INPUT_BB_COUNTS		(1 << 2)
2875fd0b74Schristos 
2975fd0b74Schristos extern int gmon_input;		/* What input did we see?  */
3075fd0b74Schristos extern int gmon_file_version;	/* File version are we dealing with.  */
3175fd0b74Schristos 
3275fd0b74Schristos extern int gmon_io_read_vma (FILE *ifp, bfd_vma *valp);
3375fd0b74Schristos extern int gmon_io_read_32 (FILE *ifp, unsigned int *valp);
3475fd0b74Schristos extern int gmon_io_read (FILE *ifp, char *buf, size_t n);
3575fd0b74Schristos extern int gmon_io_write_vma (FILE *ifp, bfd_vma val);
3675fd0b74Schristos extern int gmon_io_write_32 (FILE *ifp, unsigned int val);
3775fd0b74Schristos extern int gmon_io_write_8 (FILE *ifp, unsigned int val);
3875fd0b74Schristos extern int gmon_io_write (FILE *ifp, char *buf, size_t n);
3975fd0b74Schristos 
4075fd0b74Schristos extern void gmon_out_read   (const char *);
4175fd0b74Schristos extern void gmon_out_write  (const char *);
4275fd0b74Schristos 
4375fd0b74Schristos #endif /* gmon_io_h */
44