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 development.md #156

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Update development.md #156

wants to merge 3 commits into from

Conversation

emanuele-em
Copy link

No description provided.

Copy link

netlify bot commented Apr 30, 2024

Deploy Preview for aya-rs ready!

Name Link
🔨 Latest commit e9d6e52
🔍 Latest deploy log https://app.netlify.com/sites/aya-rs/deploys/663f1e94ec0ff90008feb2e4
😎 Deploy Preview https://deploy-preview-156--aya-rs.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.

@@ -35,7 +35,7 @@ cargo install cargo-generate
```

And finally to generate bindings for kernel data structures, you must install
`bpftool`, either from your distribution or building it from
`bpftool`. This tool is part of the package `linux-tools-common`, `linux-lowlatency-tools-common` or you can build it from
Copy link
Collaborator

Choose a reason for hiding this comment

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

These names are unlikely to be the same across distros? Also IIRC linux-tools-common under ubuntu installs a stub that when executed tells you "you need to install linux-tools-" or something like that

Copy link
Author

Choose a reason for hiding this comment

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

You're right but it was not clear for me,btw I rewrite it

And finally to generate bindings for kernel data structures, you must install
`bpftool`, either from your distribution or building it from
[source](https://github.com/libbpf/bpftool).
To generate bindings for kernel data structures, you'll need to install bpftool. You can locate this tool as part of a larger tools package in certain distributions (e.g., `linux-tools-common` on Ubuntu), or you can opt to build it from its [source](https://github.com/libbpf/bpftool).
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd say

To generate bindings for kernel types you need to install bpftool. You can install it from your
distribution (run `sudo apt install linux-tools-$(uname -r)` under debian based distributions), or
building from [source])(https://github.com/libbpf/bpftool).

Copy link
Author

Choose a reason for hiding this comment

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

yes! It's perfect!

Copy link
Member

@tamird tamird left a comment

Choose a reason for hiding this comment

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

I think we'd rather not encode another project's installation instructions. We can link to their docs, but I don't want to repeat non-canonical details.

@dave-tucker
Copy link
Member

+1 to what Tamir said. Bear in mind on Fedora dnf install bpftool works, as is the case in many other distros - Debian included IIRC.

@emanuele-em
Copy link
Author

emanuele-em commented Aug 5, 2024

No problem! It was the only unclear step for me, but most likely the problem is me 😂

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.

4 participants