aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6/gcc/coverage.h
diff options
context:
space:
mode:
authorJing Yu <jingyu@google.com>2011-12-19 16:56:54 -0800
committerJing Yu <jingyu@google.com>2011-12-19 16:56:54 -0800
commit40d7cd0fd78fe2004e2a53c4618c148339b02733 (patch)
tree5874557a6c86a1f564a03e5f28b266e31bc3759c /gcc-4.6/gcc/coverage.h
parentfe2afdf3f3701489c05d2a7509752d6f0c7616f7 (diff)
downloadtoolchain_gcc-40d7cd0fd78fe2004e2a53c4618c148339b02733.tar.gz
toolchain_gcc-40d7cd0fd78fe2004e2a53c4618c148339b02733.tar.bz2
toolchain_gcc-40d7cd0fd78fe2004e2a53c4618c148339b02733.zip
Add gcc-4.6. Synced to @180989
Change-Id: Ie3676586e1d8e3c8cd9f07d022f450d05fa08439 svn://gcc.gnu.org/svn/gcc/branches/google/gcc-4_6-mobile
Diffstat (limited to 'gcc-4.6/gcc/coverage.h')
-rw-r--r--gcc-4.6/gcc/coverage.h86
1 files changed, 86 insertions, 0 deletions
diff --git a/gcc-4.6/gcc/coverage.h b/gcc-4.6/gcc/coverage.h
new file mode 100644
index 000000000..f49e1545a
--- /dev/null
+++ b/gcc-4.6/gcc/coverage.h
@@ -0,0 +1,86 @@
+/* coverage.h - Defines data exported from coverage.c
+ Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2007, 2008
+ Free Software Foundation, Inc.
+
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 3, or (at your option) any later
+version.
+
+GCC is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING3. If not see
+<http://www.gnu.org/licenses/>. */
+
+#ifndef GCC_COVERAGE_H
+#define GCC_COVERAGE_H
+
+#include "gcov-io.h"
+
+extern void coverage_init (const char *, const char*);
+extern void coverage_finish (void);
+
+/* Complete the coverage information for the current function. Once
+ per function. */
+extern void coverage_end_function (unsigned, unsigned);
+
+/* Start outputting coverage information for the current
+ function. Repeatable per function. */
+extern int coverage_begin_output (unsigned, unsigned);
+
+/* Compute the control flow checksum for the current function. */
+extern unsigned coverage_compute_cfg_checksum (void);
+
+/* Compute the line number checksum for the current function. */
+extern unsigned coverage_compute_lineno_checksum (void);
+
+/* Allocate some counters. Repeatable per function. */
+extern int coverage_counter_alloc (unsigned /*counter*/, unsigned/*num*/);
+/* Use a counter from the most recent allocation. */
+extern tree tree_coverage_counter_ref (unsigned /*counter*/, unsigned/*num*/);
+/* Use a counter address from the most recent allocation. */
+extern tree tree_coverage_counter_addr (unsigned /*counter*/, unsigned/*num*/);
+
+/* Get all the counters for the current function. */
+extern gcov_type *get_coverage_counts (unsigned /*counter*/,
+ unsigned /*expected*/,
+ unsigned /*cfg_checksum*/,
+ unsigned /*lineno_checksum*/,
+ const struct gcov_ctr_summary **);
+/* Get all the counters for the current function without warning. */
+extern gcov_type *get_coverage_counts_no_warn (struct function *,
+ unsigned /*counter*/, unsigned *);
+
+extern struct cgraph_node * find_func_by_global_id (unsigned HOST_WIDE_INT gid);
+
+/* All the coverage counters are supposed to be allocated by the time
+ coverage_end_function is called. However, direct-call counters are
+ allocated after coverage_end_function has been called. This function
+ fixes up the various internal structures to reflect these counter
+ allocations. This function is called after coverage_end_function and
+ before coverage_finish. */
+extern void coverage_dc_end_function (void);
+
+/* True if a function entry corresponding to the given function identifier
+ is present in the coverage internal data structures. */
+extern bool coverage_function_present (unsigned fn_ident);
+
+extern tree get_gcov_type (void);
+extern tree get_gcov_unsigned_t (void);
+
+/* Mark this module as containing asm statements. */
+extern void coverage_has_asm_stmt (void);
+
+/* Check if the specified options are valid for pmu profilig. */
+extern int check_pmu_profile_options (const char *options);
+
+/* Defined in tree-profile.c. */
+extern void tree_init_instrumentation_sampling (void);
+
+#endif