Home | History | Annotate | Download | only in strace

Lines Matching refs:counts

46 #define counts (countv[current_personality])
56 if (!counts)
58 counts = calloc(nsyscalls, sizeof(*counts));
59 if (!counts)
62 "strace: out of memory for call counts\n");
67 counts[tcp->scno].calls++;
69 counts[tcp->scno].errors++;
102 tv_add(&counts[tcp->scno].time, &counts[tcp->scno].time, tv);
110 return -tv_cmp(&counts[*((int *) a)].time,
111 &counts[*((int *) b)].time);
124 int m = counts[*((int *) a)].calls;
125 int n = counts[*((int *) b)].calls;
183 if (counts == NULL || counts[i].calls == 0)
185 tv_mul(&dtv, &overhead, counts[i].calls);
186 tv_sub(&counts[i].time, &counts[i].time, &dtv);
187 call_cum += counts[i].calls;
188 error_cum += counts[i].errors;
189 tv_add(&tv_cum, &tv_cum, &counts[i].time);
191 if (counts && sortfun)
198 if (counts)
203 if (counts[j].calls == 0)
205 tv_div(&dtv, &counts[j].time, counts[j].calls);
206 if (counts[j].errors)
207 sprintf(error_str, "%d", counts[j].errors);
210 percent = (100.0 * tv_float(&counts[j].time)
213 percent, tv_float(&counts[j].time),
215 counts[j].calls,