1/* Definitions for the gcov counters in the GNU compiler.
2 Copyright (C) 2001-2023 Free Software Foundation, Inc.
3
4This file is part of GCC.
5
6GCC is free software; you can redistribute it and/or modify it under
7the terms of the GNU General Public License as published by the Free
8Software Foundation; either version 3, or (at your option) any later
9version.
10
11GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12WARRANTY; without even the implied warranty of MERCHANTABILITY or
13FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14for more details.
15
16You should have received a copy of the GNU General Public License
17along with GCC; see the file COPYING3. If not see
18<http://www.gnu.org/licenses/>. */
19
20/* Before including this file, define a macro:
21
22 DEF_GCOV_COUNTER(COUNTER, NAME, FN_TYPE)
23
24 This macro will be expanded to all supported gcov counters, their
25 names, or the type of handler functions. FN_TYPE will be
26 expanded to a handler function, like in gcov_merge, it is
27 expanded to __gcov_merge ## FN_TYPE. */
28
29/* Arc transitions. */
30DEF_GCOV_COUNTER(GCOV_COUNTER_ARCS, "arcs", _add)
31
32/* Histogram of value inside an interval. */
33DEF_GCOV_COUNTER(GCOV_COUNTER_V_INTERVAL, "interval", _add)
34
35/* Histogram of exact power2 logarithm of a value. */
36DEF_GCOV_COUNTER(GCOV_COUNTER_V_POW2, "pow2", _add)
37
38/* The most common value of expression. */
39DEF_GCOV_COUNTER(GCOV_COUNTER_V_TOPN, "topn", _topn)
40
41/* The most common indirect address. */
42DEF_GCOV_COUNTER(GCOV_COUNTER_V_INDIR, "indirect_call", _topn)
43
44/* Compute average value passed to the counter. */
45DEF_GCOV_COUNTER(GCOV_COUNTER_AVERAGE, "average", _add)
46
47/* IOR of the all values passed to counter. */
48DEF_GCOV_COUNTER(GCOV_COUNTER_IOR, "ior", _ior)
49
50/* Time profile collecting first run of a function */
51DEF_GCOV_COUNTER(GCOV_TIME_PROFILER, "time_profiler", _time_profile)
52

source code of gcc/gcov-counter.def