Lines Matching refs:feat_sec
2030 struct perf_file_section *feat_sec, *p; in perf_header__adds_write() local
2040 feat_sec = p = calloc(nr_sections, sizeof(*feat_sec)); in perf_header__adds_write()
2041 if (feat_sec == NULL) in perf_header__adds_write()
2044 sec_size = sizeof(*feat_sec) * nr_sections; in perf_header__adds_write()
2059 err = do_write(fd, feat_sec, sec_size); in perf_header__adds_write()
2062 free(feat_sec); in perf_header__adds_write()
2180 struct perf_file_section *feat_sec, *sec; in perf_header__process_sections() local
2190 feat_sec = sec = calloc(nr_sections, sizeof(*feat_sec)); in perf_header__process_sections()
2191 if (!feat_sec) in perf_header__process_sections()
2194 sec_size = sizeof(*feat_sec) * nr_sections; in perf_header__process_sections()
2198 err = perf_header__getbuffer64(header, fd, feat_sec, sec_size); in perf_header__process_sections()
2209 free(feat_sec); in perf_header__process_sections()