Lines Matching refs: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; in agg_create() local
159 agg = calloc(1, sizeof(struct aggent)); in agg_create()
160 if (agg == NULL) in agg_create()
162 agg->ag_name = strdup(name); in agg_create()
163 if (agg->ag_name == NULL) { in agg_create()
164 free(agg); in agg_create()
167 agg->ag_nsamples = nsamples; in agg_create()
168 agg->ag_ostart = start; in agg_create()
169 agg->ag_oend = end; in agg_create()
170 return (agg); in agg_create()
178 agg_destroy(struct aggent *agg) in agg_destroy() argument
181 free(agg->ag_name); in agg_destroy()
182 free(agg); in agg_destroy()
196 struct aggent *agg; in asmparse() local
204 agg = fqueue_findent_by_name(fname); in asmparse()
205 if (agg == NULL) in asmparse()
207 agg->ag_offset = ftell(fp); in asmparse()
210 TAILQ_FOREACH(agg, &fqueue, ag_fiter) { in asmparse()
211 if (fseek(fp, agg->ag_offset, SEEK_SET) == -1) in asmparse()
214 agg->ag_name, PERCSAMP(agg->ag_nsamples)); in asmparse()
215 general_printasm(fp, agg); in asmparse()
235 struct aggent *agg; in cparse() local
243 agg = fqueue_findent_by_name(fname); in cparse()
244 if (agg == NULL) in cparse()
246 agg->ag_offset = ftell(fp); in cparse()
249 TAILQ_FOREACH(agg, &fqueue, ag_fiter) { in cparse()
250 if (fseek(fp, agg->ag_offset, SEEK_SET) == -1) in cparse()
253 agg->ag_name, PERCSAMP(agg->ag_nsamples)); in cparse()
254 if (general_printc(fp, agg) == -1) in cparse()
314 struct aggent *agg, *tmpagg; in fqueue_compact() local
321 TAILQ_FOREACH_SAFE(agg, &fqueue, ag_fiter, tmpagg) in fqueue_compact()
322 if (agg->ag_nsamples < thi) in fqueue_compact()
323 TAILQ_REMOVE(&fqueue, agg, ag_fiter); in fqueue_compact()
332 struct aggent *agg; in fqueue_deleteall() local
335 agg = TAILQ_FIRST(&fqueue); in fqueue_deleteall()
336 TAILQ_REMOVE(&fqueue, agg, ag_fiter); in fqueue_deleteall()
427 struct aggent *agg; in fqueue_getall() local
432 TAILQ_FOREACH(agg, &fqueue, ag_fiter) { in fqueue_getall()
434 start = agg->ag_ostart; in fqueue_getall()
435 end = agg->ag_oend; in fqueue_getall()
538 general_printasm(FILE *fp, struct aggent *agg) in general_printasm() argument
559 print_count(obj->en_nsamples, agg->ag_nsamples), in general_printasm()
573 general_printc(FILE *fp, struct aggent *agg) in general_printc() argument
581 if (printblock(fp, agg) == -1) in general_printc()
596 printblock(FILE *fp, struct aggent *agg) in printblock() argument
653 print_count(tnsamples, agg->ag_nsamples), buffer); in printblock()