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

Expose io_error in SyscallError #928

Merged
merged 1 commit into from
May 4, 2024
Merged

Conversation

seanyoung
Copy link
Contributor

If a bpf syscall fails, it would be useful to know if this is due to not having enough permissions or that the kernel does not have BPF support.

Ubuntu kernels are compiled without CONFIG_BPF_LIRC_MODE2 so this is important for https://github.com/seanyoung/cir/ : I would like to present a useful error saying your kernel does not support BPF IR decoders, go fix your kernel.

Also, when removing all BPF programs using cir config --clear then if there is no support for BPF, there is nothing to clear and the syscall error can be ignored.

If a bpf syscall fails, it would be useful to know if this is due to
not having enough permissions or that the kernel does not have BPF support.

Ubuntu kernels are compiled without `CONFIG_BPF_LIRC_MODE2` so this is
important for https://github.com/seanyoung/cir/ : I would like to
present a useful error saying your kernel does not support BPF IR
decoders, go fix your kernel.

Also, when removing all BPF programs using `cir config --clear` then
if there is no support for BPF, there is nothing to clear and the
syscall error can be ignored.
@mergify mergify bot added the aya This is about aya (userspace) label Apr 13, 2024
Copy link

netlify bot commented Apr 13, 2024

Deploy Preview for aya-rs-docs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit a6c45f6
🔍 Latest deploy log https://app.netlify.com/sites/aya-rs-docs/deploys/661a49a25723570008faa05f
😎 Deploy Preview https://deploy-preview-928--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.

@seanyoung
Copy link
Contributor Author

It would be great to have this merged, please let me know if there is anything I can do to make this more amenable

@alessandrod alessandrod merged commit d0e9b95 into aya-rs:main May 4, 2024
21 checks passed
@alessandrod
Copy link
Collaborator

Oops sorry forgot to merge when I approved two weeks ago!

@seanyoung seanyoung deleted the io-error branch May 4, 2024 13:36
@seanyoung
Copy link
Contributor Author

Wonderful thank you @alessandrod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aya This is about aya (userspace)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants