Lines Matching refs:feat_sec
3594 struct perf_file_section *feat_sec, *p; in perf_header__adds_write() local
3604 feat_sec = p = calloc(nr_sections, sizeof(*feat_sec)); in perf_header__adds_write()
3605 if (feat_sec == NULL) in perf_header__adds_write()
3608 sec_size = sizeof(*feat_sec) * nr_sections; in perf_header__adds_write()
3623 err = do_write(&ff, feat_sec, sec_size); in perf_header__adds_write()
3627 free(feat_sec); in perf_header__adds_write()
3823 struct perf_file_section *feat_sec, *sec; in perf_header__process_sections() local
3833 feat_sec = sec = calloc(nr_sections, sizeof(*feat_sec)); in perf_header__process_sections()
3834 if (!feat_sec) in perf_header__process_sections()
3837 sec_size = sizeof(*feat_sec) * nr_sections; in perf_header__process_sections()
3841 err = perf_header__getbuffer64(header, fd, feat_sec, sec_size); in perf_header__process_sections()
3852 free(feat_sec); in perf_header__process_sections()