Lines Matching defs:agg

85 static void		 agg_destroy(struct aggent *agg) __unused;
101 static void general_printasm(FILE *fp, struct aggent *agg);
102 static int general_printc(FILE *fp, struct aggent *agg);
103 static int printblock(FILE *fp, struct aggent *agg);
156 struct aggent *agg;
158 agg = calloc(1, sizeof(struct aggent));
159 if (agg == NULL)
161 agg->ag_name = strdup(name);
162 if (agg->ag_name == NULL) {
163 free(agg);
166 agg->ag_nsamples = nsamples;
167 agg->ag_ostart = start;
168 agg->ag_oend = end;
169 return (agg);
177 agg_destroy(struct aggent *agg)
180 free(agg->ag_name);
181 free(agg);
195 struct aggent *agg;
203 agg = fqueue_findent_by_name(fname);
204 if (agg == NULL)
206 agg->ag_offset = ftell(fp);
209 TAILQ_FOREACH(agg, &fqueue, ag_fiter) {
210 if (fseek(fp, agg->ag_offset, SEEK_SET) == -1)
213 agg->ag_name, PERCSAMP(agg->ag_nsamples));
214 general_printasm(fp, agg);
234 struct aggent *agg;
242 agg = fqueue_findent_by_name(fname);
243 if (agg == NULL)
245 agg->ag_offset = ftell(fp);
248 TAILQ_FOREACH(agg, &fqueue, ag_fiter) {
249 if (fseek(fp, agg->ag_offset, SEEK_SET) == -1)
252 agg->ag_name, PERCSAMP(agg->ag_nsamples));
253 if (general_printc(fp, agg) == -1)
313 struct aggent *agg, *tmpagg;
320 TAILQ_FOREACH_SAFE(agg, &fqueue, ag_fiter, tmpagg)
321 if (agg->ag_nsamples < thi)
322 TAILQ_REMOVE(&fqueue, agg, ag_fiter);
331 struct aggent *agg;
334 agg = TAILQ_FIRST(&fqueue);
335 TAILQ_REMOVE(&fqueue, agg, ag_fiter);
426 struct aggent *agg;
431 TAILQ_FOREACH(agg, &fqueue, ag_fiter) {
433 start = agg->ag_ostart;
434 end = agg->ag_oend;
518 general_printasm(FILE *fp, struct aggent *agg)
539 (float)obj->en_nsamples * 100 / agg->ag_nsamples,
553 general_printc(FILE *fp, struct aggent *agg)
561 if (printblock(fp, agg) == -1)
576 printblock(FILE *fp, struct aggent *agg)
633 (float)tnsamples * 100 / agg->ag_nsamples, buffer);