Searched refs:nr_sections (Results 1 – 2 of 2) sorted by relevance
18 size_t nr_sections; in orc_dump() local52 if (elf_getshdrnum(elf, &nr_sections)) { in orc_dump()62 for (i = 0; i < nr_sections; i++) { in orc_dump()
3616 int nr_sections; in perf_header__adds_write() local3627 nr_sections = bitmap_weight(header->adds_features, HEADER_FEAT_BITS); in perf_header__adds_write()3628 if (!nr_sections) in perf_header__adds_write()3631 feat_sec = p = calloc(nr_sections, sizeof(*feat_sec)); in perf_header__adds_write()3635 sec_size = sizeof(*feat_sec) * nr_sections; in perf_header__adds_write()3851 int nr_sections; in perf_header__process_sections() local3856 nr_sections = bitmap_weight(header->adds_features, HEADER_FEAT_BITS); in perf_header__process_sections()3857 if (!nr_sections) in perf_header__process_sections()3860 feat_sec = sec = calloc(nr_sections, sizeof(*feat_sec)); in perf_header__process_sections()3864 sec_size = sizeof(*feat_sec) * nr_sections; in perf_header__process_sections()