Lines Matching refs:agg

82 static void		 agg_destroy(struct aggent *agg) __unused;
98 static void general_printasm(FILE *fp, struct aggent *agg);
99 static int general_printc(FILE *fp, struct aggent *agg);
100 static int printblock(FILE *fp, struct aggent *agg);
155 struct aggent *agg;
157 agg = calloc(1, sizeof(struct aggent));
158 if (agg == NULL)
160 agg->ag_name = strdup(name);
161 if (agg->ag_name == NULL) {
162 free(agg);
165 agg->ag_nsamples = nsamples;
166 agg->ag_ostart = start;
167 agg->ag_oend = end;
168 return (agg);
176 agg_destroy(struct aggent *agg)
179 free(agg->ag_name);
180 free(agg);
194 struct aggent *agg;
202 agg = fqueue_findent_by_name(fname);
203 if (agg == NULL)
205 agg->ag_offset = ftell(fp);
208 TAILQ_FOREACH(agg, &fqueue, ag_fiter) {
209 if (fseek(fp, agg->ag_offset, SEEK_SET) == -1)
212 agg->ag_name, PERCSAMP(agg->ag_nsamples));
213 general_printasm(fp, agg);
233 struct aggent *agg;
241 agg = fqueue_findent_by_name(fname);
242 if (agg == NULL)
244 agg->ag_offset = ftell(fp);
247 TAILQ_FOREACH(agg, &fqueue, ag_fiter) {
248 if (fseek(fp, agg->ag_offset, SEEK_SET) == -1)
251 agg->ag_name, PERCSAMP(agg->ag_nsamples));
252 if (general_printc(fp, agg) == -1)
312 struct aggent *agg, *tmpagg;
319 TAILQ_FOREACH_SAFE(agg, &fqueue, ag_fiter, tmpagg)
320 if (agg->ag_nsamples < thi)
321 TAILQ_REMOVE(&fqueue, agg, ag_fiter);
330 struct aggent *agg;
333 agg = TAILQ_FIRST(&fqueue);
334 TAILQ_REMOVE(&fqueue, agg, ag_fiter);
425 struct aggent *agg;
430 TAILQ_FOREACH(agg, &fqueue, ag_fiter) {
432 start = agg->ag_ostart;
433 end = agg->ag_oend;
517 general_printasm(FILE *fp, struct aggent *agg)
538 (float)obj->en_nsamples * 100 / agg->ag_nsamples,
552 general_printc(FILE *fp, struct aggent *agg)
560 if (printblock(fp, agg) == -1)
575 printblock(FILE *fp, struct aggent *agg)
632 (float)tnsamples * 100 / agg->ag_nsamples, buffer);