Lines Matching refs:feat_sec
3244 struct perf_file_section *feat_sec, *p; in perf_header__adds_write() local
3259 feat_sec = p = calloc(nr_sections, sizeof(*feat_sec)); in perf_header__adds_write()
3260 if (feat_sec == NULL) in perf_header__adds_write()
3263 sec_size = sizeof(*feat_sec) * nr_sections; in perf_header__adds_write()
3278 err = do_write(&ff, feat_sec, sec_size); in perf_header__adds_write()
3281 free(feat_sec); in perf_header__adds_write()
3404 struct perf_file_section *feat_sec, *sec; in perf_header__process_sections() local
3414 feat_sec = sec = calloc(nr_sections, sizeof(*feat_sec)); in perf_header__process_sections()
3415 if (!feat_sec) in perf_header__process_sections()
3418 sec_size = sizeof(*feat_sec) * nr_sections; in perf_header__process_sections()
3422 err = perf_header__getbuffer64(header, fd, feat_sec, sec_size); in perf_header__process_sections()
3433 free(feat_sec); in perf_header__process_sections()