Lines Matching refs:agg
316 dtrace_aggdesc_t *agg, *nagg;
318 if ((agg = malloc(sizeof (dtrace_aggdesc_t))) == NULL)
321 bzero(agg, sizeof (dtrace_aggdesc_t));
322 agg->dtagd_id = id;
323 agg->dtagd_nrecs = 1;
325 if (dt_ioctl(dtp, DTRACEIOC_AGGDESC, agg) == -1) {
327 free(agg);
331 if (DTRACE_SIZEOF_AGGDESC(agg) != sizeof (*agg)) {
336 if ((nagg = malloc(DTRACE_SIZEOF_AGGDESC(agg))) != NULL)
337 bcopy(agg, nagg, sizeof (*agg));
339 free(agg);
341 if ((agg = nagg) == NULL)
344 rval = dt_ioctl(dtp, DTRACEIOC_AGGDESC, agg);
348 free(agg);
362 agg->dtagd_rec[0].dtrd_uarg != NULL) {
367 agg->dtagd_rec[0].dtrd_uarg;
369 agg->dtagd_name = aid->di_name;
370 agg->dtagd_varid = aid->di_id;
372 agg->dtagd_varid = DTRACE_AGGVARIDNONE;
375 if ((epid = agg->dtagd_epid) >= dtp->dt_maxprobe ||
378 free(agg);
383 dtp->dt_aggdesc[id] = agg;