Skip to content

[DRAFT] Consume ebpf-extension-common#5075

Draft
LakshK98 wants to merge 6 commits intomicrosoft:mainfrom
LakshK98:extension_dedup
Draft

[DRAFT] Consume ebpf-extension-common#5075
LakshK98 wants to merge 6 commits intomicrosoft:mainfrom
LakshK98:extension_dedup

Conversation

@LakshK98
Copy link
Copy Markdown
Contributor

@LakshK98 LakshK98 commented Mar 3, 2026

This pull request introduces a new shared submodule for eBPF extension rundown logic and refactors the codebase to use this shared implementation reducing code duplication. The changes also update project configuration files to include the new submodule and ensure proper build integration.

Shared eBPF extension rundown logic integration:

  • Added external/ebpf-extension-common as a new submodule in .gitmodules and referenced its commit in external/ebpf-extension-common to provide common eBPF extension rundown code. [1] [2]
  • Updated Visual Studio solution ebpf-for-windows.sln to include new projects for both kernel-mode and user-mode builds of the shared rundown logic, with appropriate build configurations. [1] [2]
  • Updated include paths in netebpfext/sys/netebpfext.vcxproj to reference the shared rundown header files. [1] [2]

Code refactoring to use shared rundown logic:

  • Removed local implementations of rundown structures and functions from netebpfext/net_ebpf_ext_hook_provider.c and netebpfext/net_ebpf_ext_structs.h, replacing them with calls to the shared rundown API from ebpf_ext_rundown.h. This affects initialization, waiting, entering, and leaving rundown. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
  • Updated netebpfext/net_ebpf_ext.c to include the shared rundown header and use the shared rundown function for cleanup. [1] [2]

Description

Describe the purpose of and changes within this Pull Request.
Please reference an issue with a keyword such as Fixes #abc, Closes #xyz, etc., so the work can be tracked.

Testing

Do any existing tests cover this change? Are new tests needed?

Documentation

Is there any documentation impact for this change?

Installation

Is there any installer impact for this change?

@LakshK98 LakshK98 force-pushed the extension_dedup branch 2 times, most recently from bbb79de to 923c091 Compare March 3, 2026 18:26
@LakshK98 LakshK98 marked this pull request as draft March 3, 2026 20:35
@LakshK98 LakshK98 changed the title [DRAFT] Extension dedup [DRAFT] Consume ebpf-extension-common Mar 3, 2026
@github-actions
Copy link
Copy Markdown
Contributor

This pull request isn't linked to any GitHub issue. Please reference an issue with a keyword such as Fixes #123, Closes #456, etc., so the work can be tracked.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

This pull request isn't linked to any GitHub issue. Please reference an issue with a keyword such as Fixes #123, Closes #456, etc., so the work can be tracked.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

This pull request isn't linked to any GitHub issue. Please reference an issue with a keyword such as Fixes #123, Closes #456, etc., so the work can be tracked.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

This pull request isn't linked to any GitHub issue. Please reference an issue with a keyword such as Fixes #123, Closes #456, etc., so the work can be tracked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant