Lines Matching refs:adt

345 int annotated_data_type__get_member_name(struct annotated_data_type *adt,  in annotated_data_type__get_member_name()  argument
348 return fill_member_name(buf, sz, &adt->self, member_offset, /*first=*/true); in annotated_data_type__get_member_name()
1660 static int alloc_data_type_histograms(struct annotated_data_type *adt, int nr_entries) in alloc_data_type_histograms() argument
1665 sz += sizeof(struct type_hist_entry) * adt->self.size; in alloc_data_type_histograms()
1668 adt->histograms = calloc(nr_entries, sizeof(*adt->histograms)); in alloc_data_type_histograms()
1669 if (adt->histograms == NULL) in alloc_data_type_histograms()
1677 adt->histograms[i] = zalloc(sz); in alloc_data_type_histograms()
1678 if (adt->histograms[i] == NULL) in alloc_data_type_histograms()
1682 adt->nr_histograms = nr_entries; in alloc_data_type_histograms()
1687 zfree(&(adt->histograms[i])); in alloc_data_type_histograms()
1688 zfree(&adt->histograms); in alloc_data_type_histograms()
1692 static void delete_data_type_histograms(struct annotated_data_type *adt) in delete_data_type_histograms() argument
1694 for (int i = 0; i < adt->nr_histograms; i++) in delete_data_type_histograms()
1695 zfree(&(adt->histograms[i])); in delete_data_type_histograms()
1697 zfree(&adt->histograms); in delete_data_type_histograms()
1698 adt->nr_histograms = 0; in delete_data_type_histograms()
1729 int annotated_data_type__update_samples(struct annotated_data_type *adt, in annotated_data_type__update_samples() argument
1735 if (adt == NULL) in annotated_data_type__update_samples()
1738 if (adt->histograms == NULL) { in annotated_data_type__update_samples()
1741 if (alloc_data_type_histograms(adt, nr) < 0) in annotated_data_type__update_samples()
1745 if (offset < 0 || offset >= adt->self.size) in annotated_data_type__update_samples()
1748 h = adt->histograms[evsel->core.idx]; in annotated_data_type__update_samples()