coverage.h revision 132718
1132718Skan/* coverage.h - Defines data exported from coverage.c
2132718Skan   Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
3132718Skan
4132718SkanThis file is part of GCC.
5132718Skan
6132718SkanGCC is free software; you can redistribute it and/or modify it under
7132718Skanthe terms of the GNU General Public License as published by the Free
8132718SkanSoftware Foundation; either version 2, or (at your option) any later
9132718Skanversion.
10132718Skan
11132718SkanGCC is distributed in the hope that it will be useful, but WITHOUT ANY
12132718SkanWARRANTY; without even the implied warranty of MERCHANTABILITY or
13132718SkanFITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14132718Skanfor more details.
15132718Skan
16132718SkanYou should have received a copy of the GNU General Public License
17132718Skanalong with GCC; see the file COPYING.  If not, write to the Free
18132718SkanSoftware Foundation, 59 Temple Place - Suite 330, Boston, MA
19132718Skan02111-1307, USA.  */
20132718Skan
21132718Skan#ifndef GCC_COVERAGE_H
22132718Skan#define GCC_COVERAGE_H
23132718Skan
24132718Skan#include "gcov-io.h"
25132718Skan
26132718Skanextern void coverage_init (const char *);
27132718Skanextern void coverage_finish (void);
28132718Skanextern void coverage_read_counts_file (void);
29132718Skan
30132718Skan/* Complete the coverage information for the current function. Once
31132718Skan   per function.  */
32132718Skanextern void coverage_end_function (void);
33132718Skan
34132718Skan/* Start outputting coverage information for the current
35132718Skan   function. Repeatable per function.  */
36132718Skanextern int coverage_begin_output (void);
37132718Skan
38132718Skan/* Allocate some counters. Repeatable per function.  */
39132718Skanextern int coverage_counter_alloc (unsigned /*counter*/, unsigned/*num*/);
40132718Skan/* Use a counter from the most recent allocation.  */
41132718Skanextern rtx coverage_counter_ref (unsigned /*counter*/, unsigned/*num*/);
42132718Skan
43132718Skan/* Get all the counters for the current function.  */
44132718Skanextern gcov_type *get_coverage_counts (unsigned /*counter*/,
45132718Skan				       unsigned /*expected*/,
46132718Skan				       const struct gcov_ctr_summary **);
47132718Skan
48132718Skan#endif
49