Lines Matching defs:agg

84 static void		 agg_destroy(struct aggent *agg) __unused;
100 static void general_printasm(FILE *fp, struct aggent *agg);
101 static int general_printc(FILE *fp, struct aggent *agg);
102 static int printblock(FILE *fp, struct aggent *agg);
157 struct aggent *agg;
159 agg = calloc(1, sizeof(struct aggent));
160 if (agg == NULL)
162 agg->ag_name = strdup(name);
163 if (agg->ag_name == NULL) {
164 free(agg);
167 agg->ag_nsamples = nsamples;
168 agg->ag_ostart = start;
169 agg->ag_oend = end;
170 return (agg);
178 agg_destroy(struct aggent *agg)
181 free(agg->ag_name);
182 free(agg);
196 struct aggent *agg;
204 agg = fqueue_findent_by_name(fname);
205 if (agg == NULL)
207 agg->ag_offset = ftell(fp);
210 TAILQ_FOREACH(agg, &fqueue, ag_fiter) {
211 if (fseek(fp, agg->ag_offset, SEEK_SET) == -1)
214 agg->ag_name, PERCSAMP(agg->ag_nsamples));
215 general_printasm(fp, agg);
235 struct aggent *agg;
243 agg = fqueue_findent_by_name(fname);
244 if (agg == NULL)
246 agg->ag_offset = ftell(fp);
249 TAILQ_FOREACH(agg, &fqueue, ag_fiter) {
250 if (fseek(fp, agg->ag_offset, SEEK_SET) == -1)
253 agg->ag_name, PERCSAMP(agg->ag_nsamples));
254 if (general_printc(fp, agg) == -1)
314 struct aggent *agg, *tmpagg;
321 TAILQ_FOREACH_SAFE(agg, &fqueue, ag_fiter, tmpagg)
322 if (agg->ag_nsamples < thi)
323 TAILQ_REMOVE(&fqueue, agg, ag_fiter);
332 struct aggent *agg;
335 agg = TAILQ_FIRST(&fqueue);
336 TAILQ_REMOVE(&fqueue, agg, ag_fiter);
427 struct aggent *agg;
432 TAILQ_FOREACH(agg, &fqueue, ag_fiter) {
434 start = agg->ag_ostart;
435 end = agg->ag_oend;
538 general_printasm(FILE *fp, struct aggent *agg)
559 print_count(obj->en_nsamples, agg->ag_nsamples),
573 general_printc(FILE *fp, struct aggent *agg)
581 if (printblock(fp, agg) == -1)
596 printblock(FILE *fp, struct aggent *agg)
653 print_count(tnsamples, agg->ag_nsamples), buffer);