Skip to content

refactor(bpf-linker): eliminate extern-map temp file, simplify API#83

Open
rwenz2004 wants to merge 1 commit into
DKapture:mainfrom
rwenz2004:main
Open

refactor(bpf-linker): eliminate extern-map temp file, simplify API#83
rwenz2004 wants to merge 1 commit into
DKapture:mainfrom
rwenz2004:main

Conversation

@rwenz2004

Copy link
Copy Markdown
Contributor

Drop /var/tmp/.dkapture-extern-maps in favor of PinRegistry-based extern map detection. Remove MapResolver and BpfLinker class, replace with two C-callable functions: bpf_linker_resolve_extern() and bpf_linker_pin_shared(). Fill ExternVarInfo metadata from BTF struct members. Migrate net-limit.cpp to new API. Fix patch_skel.py generated code referencing non-existent bpf_linker_pin_owned.

Drop /var/tmp/.dkapture-extern-maps in favor of PinRegistry-based
extern map detection. Remove MapResolver and BpfLinker class, replace
with two C-callable functions: bpf_linker_resolve_extern() and
bpf_linker_pin_shared(). Fill ExternVarInfo metadata from BTF struct
members. Migrate net-limit.cpp to new API. Fix patch_skel.py generated
code referencing non-existent bpf_linker_pin_owned.

Signed-off-by: Runrun Liu <liurunrun@uniontech.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant