Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extension_header #3326

Merged
merged 5 commits into from
Mar 30, 2024
Merged

extension_header #3326

merged 5 commits into from
Mar 30, 2024

Conversation

shankarseal
Copy link
Collaborator

@shankarseal shankarseal commented Mar 4, 2024

Description

This fixes #3277. The extension data structures now have version and size fields that can be used to check compatibility with extensions. This will be a breaking change for all extensions. The eBPF API for exporting program data has been renamed as well.

Testing

CI tasks. Later #2747 will be added as well.

Documentation

eBPFExtension.md is modified.

Installation

N/A.

@shankarseal shankarseal force-pushed the fix_3277 branch 2 times, most recently from 308e9c5 to 25505f5 Compare March 5, 2024 02:34
Copy link

codecov bot commented Mar 5, 2024

Codecov Report

Attention: Patch coverage is 80.73022% with 95 lines in your changes are missing coverage. Please review.

Project coverage is 84.48%. Comparing base (d7c7af6) to head (99bce45).
Report is 75 commits behind head on main.

Files Patch % Lines
libs/api_common/store_helper_internal.cpp 71.92% 48 Missing ⚠️
libs/store_helper/ebpf_store_helper.c 76.19% 20 Missing ⚠️
libs/execution_context/ebpf_program.c 85.36% 12 Missing ⚠️
libs/shared/ebpf_serialize.c 72.22% 5 Missing ⚠️
libs/api_common/windows_platform_common.cpp 69.23% 4 Missing ⚠️
libs/shared/shared_common.c 92.30% 3 Missing ⚠️
libs/api_common/windows_helpers.cpp 66.66% 1 Missing ⚠️
netebpfext/net_ebpf_ext_sock_addr.c 83.33% 1 Missing ⚠️
netebpfext/net_ebpf_ext_sock_ops.c 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3326      +/-   ##
==========================================
+ Coverage   83.78%   84.48%   +0.70%     
==========================================
  Files         143      147       +4     
  Lines       27297    27381      +84     
==========================================
+ Hits        22870    23134     +264     
+ Misses       4427     4247     -180     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@shankarseal shankarseal force-pushed the fix_3277 branch 4 times, most recently from 6343916 to dbac4a9 Compare March 8, 2024 01:31
@shankarseal shankarseal marked this pull request as ready for review March 8, 2024 01:32
Alan-Jowett
Alan-Jowett previously approved these changes Mar 8, 2024
docs/eBpfExtensions.md Outdated Show resolved Hide resolved
docs/eBpfExtensions.md Outdated Show resolved Hide resolved
docs/eBpfExtensions.md Outdated Show resolved Hide resolved
include/ebpf_program_types.h Outdated Show resolved Hide resolved
include/ebpf_windows.h Outdated Show resolved Hide resolved
libs/shared/shared_common.c Outdated Show resolved Hide resolved
libs/shared/shared_common.c Show resolved Hide resolved
libs/shared/shared_common.c Outdated Show resolved Hide resolved
libs/shared/shared_common.c Outdated Show resolved Hide resolved
libs/shared/shared_common.c Outdated Show resolved Hide resolved
dthaler

This comment was marked as resolved.

dthaler
dthaler previously approved these changes Mar 9, 2024
Copy link
Collaborator

@dthaler dthaler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved but with a suggestion

libs/execution_context/ebpf_program.c Outdated Show resolved Hide resolved
dthaler
dthaler previously approved these changes Mar 10, 2024
dthaler
dthaler previously approved these changes Mar 27, 2024
saxena-anurag
saxena-anurag previously approved these changes Mar 29, 2024
@saxena-anurag saxena-anurag added this pull request to the merge queue Mar 29, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 29, 2024
@saxena-anurag saxena-anurag added this pull request to the merge queue Mar 29, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 29, 2024
@saxena-anurag saxena-anurag added this pull request to the merge queue Mar 29, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 29, 2024
@shankarseal shankarseal enabled auto-merge March 30, 2024 06:36
@shankarseal shankarseal added this pull request to the merge queue Mar 30, 2024
Merged via the queue into microsoft:main with commit fc97354 Mar 30, 2024
84 checks passed
@shankarseal shankarseal deleted the fix_3277 branch March 30, 2024 18:33
shankarseal added a commit to shankarseal/ebpf-for-windows that referenced this pull request Apr 1, 2024
* extension_header

* fix logic error.

* Re-purposing the size field to act as the "minor version". Additional validation checks are added.

* PR Feedback.

* fix break due to bad merge with PR microsoft#3372
matthewige pushed a commit that referenced this pull request Apr 1, 2024
* extension_header

* fix logic error.

* Re-purposing the size field to act as the "minor version". Additional validation checks are added.

* PR Feedback.

* fix break due to bad merge with PR #3372
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.

eBPF store APIs are not backward compatible.
5 participants