iovisor / iovisor/bcc

Data type question in bcc_elf.c: 236 line

Open
#4,918 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
10d 4h
Merged PRs (30d)
3

Description

스크린샷 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;

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at bcc_elf.c line 236 and inspect the libelf dependency used by this repository, comparing its available ELF typedefs with the linked library's definitions. Done means documenting whether GElf_Nhdr is provided by the project's dependency or confirming that the reference is a typo.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
operating-systems, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.