PR 6022
[binutils.git] / gprof / gmon_io.h
blob29d608d08a3c4d926c6a34a728e3b5eaf776b1a3
1 /* gmon_io.h
3 Copyright 2000, 2001, 2002, 2004, 2007, 2008
4 Free Software Foundation, Inc.
6 This file is part of GNU Binutils.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
21 MA 02110-1301, USA. */
23 #ifndef gmon_io_h
24 #define gmon_io_h
26 #define INPUT_HISTOGRAM (1 << 0)
27 #define INPUT_CALL_GRAPH (1 << 1)
28 #define INPUT_BB_COUNTS (1 << 2)
30 extern int gmon_input; /* What input did we see? */
31 extern int gmon_file_version; /* File version are we dealing with. */
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);
41 extern void gmon_out_read (const char *);
42 extern void gmon_out_write (const char *);
44 #endif /* gmon_io_h */