aya-rs / book

The Aya Book is an introductory book about using the Rust Programming Language and Aya library to build extended Berkley Packet Filter (eBPF) programs.
https://aya-rs.dev/book/
Apache License 2.0
81 stars 60 forks source link

How to use `kprobe` to generate code files? #133

Open dierbei opened 1 year ago

dierbei commented 1 year ago

I used the following command to create a project and selected kprobe:

cargo generate https://github.com/aya-rs/aya-template

I checked the kprobe example in the repository and found the binding.rs file.

I don't know how to generate this file, what should I do to achieve the same effect?

image

dierbei commented 1 year ago

This is my generated project directory:

image