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

bpf: Add bpf_strncmp helper #871

Merged
merged 2 commits into from
Nov 21, 2024
Merged

bpf: Add bpf_strncmp helper #871

merged 2 commits into from
Nov 21, 2024

Conversation

vadorovsky
Copy link
Member

The bpf_strncmp helper allows for better string comparison in eBPF programs.

Kernel patchset:

https://lore.kernel.org/bpf/20211210141652.877186-1-houtao1@huawei.com/

Copy link

netlify bot commented Jan 22, 2024

Deploy Preview for aya-rs-docs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit aa1ee1e
🔍 Latest deploy log https://app.netlify.com/sites/aya-rs-docs/deploys/673f0cdc77fac10008a3734c
😎 Deploy Preview https://deploy-preview-871--aya-rs-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mergify mergify bot added aya-bpf This is about aya-bpf (kernel) test A PR that improves test cases or CI labels Jan 22, 2024
@vadorovsky vadorovsky force-pushed the strncmp branch 3 times, most recently from f937b7b to c8f5da1 Compare January 22, 2024 12:12
Copy link

mergify bot commented Apr 20, 2024

@vadorovsky, this pull request is now in conflict and requires a rebase.

Copy link

mergify bot commented Jul 3, 2024

@vadorovsky, this pull request is now in conflict and requires a rebase.

@tamird
Copy link
Member

tamird commented Nov 20, 2024

I have updated the implementation to use the size of s1 as indicated by the documentation rather than the size of s2. LGTM.

@tamird tamird force-pushed the strncmp branch 5 times, most recently from eb26d78 to 4e5ace8 Compare November 20, 2024 22:33
The `bpf_strncmp` helper allows for better string comparison in eBPF
programs.

Added in torvalds/linux@c5fb19937455095573a19.
@tamird tamird merged commit 0b58d3e into aya-rs:main Nov 21, 2024
27 checks passed
@vadorovsky vadorovsky deleted the strncmp branch November 21, 2024 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aya-bpf This is about aya-bpf (kernel) test A PR that improves test cases or CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants