iovisor / bcc

BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more
Apache License 2.0
20.36k stars 3.86k forks source link

Data type question in bcc_elf.c: 236 line #4918

Open AlwaysEden opened 7 months ago

AlwaysEden commented 7 months ago
스크린샷 2024-02-26 21 45 13

I used this libelf(https://github.com/WolfgangSt/libelf/tree/master). But It doesn't have GElf_Nhdr data type. The library have following variables. Let me know either bcc project uses other libelf or that is typo.

typedef Elf64_Addr GElf_Addr; typedef Elf64_Half GElf_Half; typedef Elf64_Off GElf_Off; typedef Elf64_Sword GElf_Sword; typedef Elf64_Word GElf_Word; typedef Elf64_Sxword GElf_Sxword; typedef Elf64_Xword GElf_Xword;

typedef Elf64_Ehdr GElf_Ehdr; typedef Elf64_Phdr GElf_Phdr; typedef Elf64_Shdr GElf_Shdr; typedef Elf64_Dyn GElf_Dyn; typedef Elf64_Rel GElf_Rel; typedef Elf64_Rela GElf_Rela; typedef Elf64_Sym GElf_Sym;