Home | History | Annotate | Download | only in btt

Lines Matching defs:ap

68 void __output_avg(FILE *ofp, char *hdr, struct avg_info *ap, int do_easy)
70 if (ap->n > 0) {
71 ap->avg = BIT_TIME(ap->total) / (double)ap->n;
73 BIT_TIME(ap->min), ap->avg, BIT_TIME(ap->max), ap->n);
78 hdr, BIT_TIME(ap->min), ap->avg,
79 BIT_TIME(ap->max), ap->n);
84 static inline char *avg2string(struct avg_info *ap, char *string)
86 if (ap->n > 0)
87 sprintf(string, "%13.9f", ap->avg);
100 ai_dip_t ap = odap->func(dip);
101 if (ap->n > 0) {
103 ap->avg = BIT_TIME(ap->total) / (double)ap->n;
105 ap, 0);
494 ai_pip_t ap = opap->func(pip);
496 if (ap->n > 0) {
500 ap->avg = BIT_TIME(ap->total) / (double)ap->n;
501 __output_avg(opap->ofp, proc_name, ap, 0);