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

Update eBPF version to 0.13.0 #426

Merged
merged 28 commits into from
Dec 15, 2023

Conversation

saxena-anurag
Copy link
Contributor

@saxena-anurag saxena-anurag commented Dec 9, 2023

  1. Update eBPF version used by XDP repo to 0.13
  2. Update tests to use .sys file instead of .o file.

Note: For backward compatibility tests, JIT mode is also being installed for eBPF. Ideally the backward compat can be updated to use native modes, and then eBPF installation can be updated to only use native mode.

@saxena-anurag saxena-anurag changed the title [DRAFT] DO NOT REVIEW Update eBPF version to 0.13 Dec 15, 2023
@saxena-anurag saxena-anurag changed the title Update eBPF version to 0.13 Update eBPF version to 0.13.0 Dec 15, 2023
@saxena-anurag saxena-anurag marked this pull request as ready for review December 15, 2023 00:58
@saxena-anurag saxena-anurag requested a review from a team as a code owner December 15, 2023 00:58
@saxena-anurag saxena-anurag enabled auto-merge (squash) December 15, 2023 00:58
tools/setup.ps1 Outdated Show resolved Hide resolved
@saxena-anurag saxena-anurag marked this pull request as draft December 15, 2023 06:25
auto-merge was automatically disabled December 15, 2023 06:25

Pull request was converted to draft

@saxena-anurag saxena-anurag marked this pull request as ready for review December 15, 2023 07:55
<package id="Microsoft.Build.Tasks.Git" version="1.0.0" targetFramework="native" developmentDependency="true" />
<package id="Microsoft.SourceLink.AzureRepos.Git" version="1.0.0" targetFramework="native" developmentDependency="true" />
<package id="Microsoft.SourceLink.Common" version="1.0.0" targetFramework="native" developmentDependency="true" />
<package id="Microsoft.SourceLink.GitHub" version="1.0.0" targetFramework="native" developmentDependency="true" />
<package id="eBPF-for-Windows" version="0.9.0" targetFramework="native" developmentDependency="true" />
</packages>
</packages>
Copy link
Member

Choose a reason for hiding this comment

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

nit: please have trailing newline

@@ -195,4 +195,4 @@
<Error Condition="!Exists('$(SolutionDir)packages\Microsoft.SourceLink.AzureRepos.Git.1.0.0\build\Microsoft.SourceLink.AzureRepos.Git.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)packages\Microsoft.SourceLink.AzureRepos.Git.1.0.0\build\Microsoft.SourceLink.AzureRepos.Git.targets'))" />
<Error Condition="!Exists('$(EbpfPackagePath)build\native\ebpf-for-windows.props')" Text="$([System.String]::Format('$(ErrorText)', '$(EbpfPackagePath)build\native\ebpf-for-windows.props'))" />
</Target>
</Project>
</Project>
Copy link
Member

Choose a reason for hiding this comment

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

nit: trailing newline

tools/setup.ps1 Outdated
Comment on lines 580 to 586
if ($UseJitEbpf) {
Write-Verbose "msiexec.exe /i $EbpfMsiFullPath INSTALLFOLDER=$EbpfPath ADDLOCAL=eBPF_Runtime_Components,eBPF_Runtime_Components_JIT /qn /l*v $LogsDir\ebpfinstall.txt"
msiexec.exe /i $EbpfMsiFullPath INSTALLFOLDER=$EbpfPath ADDLOCAL=eBPF_Runtime_Components,eBPF_Runtime_Components_JIT /qn /l*v $LogsDir\ebpfinstall.txt | Write-Verbose
} else {
Write-Verbose "msiexec.exe /i $EbpfMsiFullPath INSTALLFOLDER=$EbpfPath ADDLOCAL=eBPF_Runtime_Components /qn /l*v $LogsDir\ebpfinstall.txt"
msiexec.exe /i $EbpfMsiFullPath INSTALLFOLDER=$EbpfPath ADDLOCAL=eBPF_Runtime_Components /qn /l*v $LogsDir\ebpfinstall.txt | Write-Verbose
}
Copy link
Member

Choose a reason for hiding this comment

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

IMHO, creating a variable to control which ADDLOCAL to supply would be easier to read than two almost identical lines.

@nibanks nibanks added build Related to building/compiling the code ebpf labels Dec 15, 2023
nibanks
nibanks previously approved these changes Dec 15, 2023
mtfriesen
mtfriesen previously approved these changes Dec 15, 2023
@saxena-anurag saxena-anurag dismissed stale reviews from mtfriesen and nibanks via de4c21a December 15, 2023 17:55
@saxena-anurag saxena-anurag enabled auto-merge (squash) December 15, 2023 18:27
@mtfriesen mtfriesen merged commit 74c93a2 into microsoft:main Dec 15, 2023
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related to building/compiling the code ebpf
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants