Lines Matching refs:counters

32 void __gcov_merge_add (gcov_type *counters  __attribute__ ((unused)),
37 void __gcov_merge_single (gcov_type *counters __attribute__ ((unused)),
42 void __gcov_merge_delta (gcov_type *counters __attribute__ ((unused)),
49 /* The profile merging function that just adds the counters. It is given
50 an array COUNTERS of N_COUNTERS old counters and it reads the same number
51 of counters from the gcov file. */
53 __gcov_merge_add (gcov_type *counters, unsigned n_counters)
55 for (; n_counters; counters++, n_counters--)
56 *counters += gcov_get_counter ();
61 /* The profile merging function that just adds the counters. It is given
62 an array COUNTERS of N_COUNTERS old counters and it reads the same number
63 of counters from the gcov file. */
65 __gcov_merge_ior (gcov_type *counters, unsigned n_counters)
67 for (; n_counters; counters++, n_counters--)
68 *counters |= gcov_get_counter_target ();
74 is stored. There could be a fork that creates new counters. To have
77 __gcov_merge_time_profile (gcov_type *counters, unsigned n_counters)
86 if (value && (!counters[i] || value < counters[i]))
87 counters[i] = value;
94 It is given an array COUNTERS of N_COUNTERS old counters and it
95 reads the same number of counters from the gcov file. The counters
103 __gcov_merge_single (gcov_type *counters, unsigned n_counters)
110 for (i = 0; i < n_measures; i++, counters += 3)
116 if (counters[0] == value)
117 counters[1] += counter;
118 else if (counter > counters[1])
120 counters[0] = value;
121 counters[1] = counter - counters[1];
124 counters[1] -= counter;
125 counters[2] += all;
133 given an array COUNTERS of N_COUNTERS old counters and it reads the
134 same number of counters from the gcov file. The counters are split
142 __gcov_merge_delta (gcov_type *counters, unsigned n_counters)
149 for (i = 0; i < n_measures; i++, counters += 4)
156 if (counters[1] == value)
157 counters[2] += counter;
158 else if (counter > counters[2])
160 counters[1] = value;
161 counters[2] = counter - counters[2];
164 counters[2] -= counter;
165 counters[3] += all;
172 This function is given array COUNTERS of N_COUNTERS old counters and it
173 reads the same number of counters from the gcov file. */
176 __gcov_merge_icall_topn (gcov_type *counters, unsigned n_counters)
183 gcov_type *value_array = &counters[i + 1];