Home | History | Annotate | Download | only in gcov-src

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 ();
87 This function is given array COUNTERS of N_COUNTERS old counters and it
88 reads the same number of counters from the gcov file. */
91 __gcov_merge_dc (gcov_type *counters, unsigned n_counters)
103 if (counters[i] && global_id)
106 if (__gcov_is_gid_insane (counters[i]))
107 counters[i] = global_id;
109 global_id = counters[i];
113 if (counters[i] != global_id)
119 counters[i] = global_id;
121 counters[i + 1] += call_count;
124 if (__gcov_is_gid_insane (counters[i]))
125 counters[i] = counters[i + 1] = 0;
129 if (counters[i] == 0)
130 counters[i+1] = 0;
131 if (counters[i + 1] == 0)
132 counters[i] = 0;
140 This function is given array COUNTERS of N_COUNTERS old counters and it
141 reads the same number of counters from the gcov file. */
144 __gcov_merge_icall_topn (gcov_type *counters, unsigned n_counters)
151 gcov_type *value_array = &counters[i + 1];
204 is stored. There could be a fork that creates new counters. To have
207 __gcov_merge_time_profile (gcov_type *counters, unsigned n_counters)
216 if (value && (!counters[i] || value < counters[i]))
217 counters[i] = value;
224 It is given an array COUNTERS of N_COUNTERS old counters and it
225 reads the same number of counters from the gcov file. The counters
233 __gcov_merge_single (gcov_type *counters, unsigned n_counters)
240 for (i = 0; i < n_measures; i++, counters += 3)
246 if (counters[0] == value)
247 counters[1] += counter;
248 else if (counter > counters[1])
250 counters[0] = value;
251 counters[1] = counter - counters[1];
254 counters[1] -= counter;
255 counters[2] += all;
263 given an array COUNTERS of N_COUNTERS old counters and it reads the
264 same number of counters from the gcov file. The counters are split
272 __gcov_merge_delta (gcov_type *counters, unsigned n_counters)
279 for (i = 0; i < n_measures; i++, counters += 4)
286 if (counters[1] == value)
287 counters[2] += counter;
288 else if (counter > counters[2])
290 counters[1] = value;
291 counters[2] = counter - counters[2];
294 counters[2] -= counter;
295 counters[3] += all;