Home
last modified time | relevance | path

Searched refs:sec_cnt (Results 1 – 4 of 4) sorted by relevance

/third_party/libbpf/src/
Dlinker.c63 int sec_cnt; member
141 int sec_cnt; member
200 for (i = 1; i < linker->sec_cnt; i++) { in bpf_linker__free()
250 size_t new_cnt = linker->sec_cnt ? linker->sec_cnt + 1 : 2; in add_dst_sec()
257 memset(secs + linker->sec_cnt, 0, (new_cnt - linker->sec_cnt) * sizeof(*secs)); in add_dst_sec()
260 linker->sec_cnt = new_cnt; in add_dst_sec()
519 size_t new_cnt = obj->sec_cnt ? obj->sec_cnt + 1 : 2; in add_src_sec()
526 memset(secs + obj->sec_cnt, 0, (new_cnt - obj->sec_cnt) * sizeof(*secs)); in add_src_sec()
529 obj->sec_cnt = new_cnt; in add_src_sec()
714 for (i = 1; i < obj->sec_cnt; i++) { in linker_sanity_check_elf()
[all …]
Dlibbpf_internal.h388 int sec_cnt; member
Dlibbpf.c641 size_t sec_cnt; member
1369 obj->efile.sec_cnt = 0; in bpf_object__elf_finish()
1777 for (sec_idx = 1; sec_idx < obj->efile.sec_cnt; sec_idx++) {
2966 if (seg->sec_cnt == 0)
2969 seg->sec_idxs = calloc(seg->sec_cnt, sizeof(*seg->sec_idxs));
3588 if (elf_getshdrnum(obj->efile.elf, &obj->efile.sec_cnt)) {
3594 obj->efile.sec_cnt = elfio_get_sections_num(elf);
3596 obj->efile.secs = calloc(obj->efile.sec_cnt, sizeof(*obj->efile.secs));
3792 targ_sec_idx >= obj->efile.sec_cnt)
4540 if (sec_idx >= obj->efile.sec_cnt)
[all …]
Dbtf.c2774 size_t sec_cnt = 0; local
2847 sec_cnt++;
2854 ext_info->sec_cnt = sec_cnt;