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

Book describes a code which was deleted #85

Closed pooladkhay closed 1 year ago

pooladkhay commented 1 year ago

Hi,

https://github.com/aya-rs/book/blob/main/docs/book/start/logging-packets.md

The book describes how to exchange data between user-space and kernel-space using PerfEventArray while the code for that has been deleted: https://github.com/aya-rs/book/commit/1c6344087e8a5fce0a8294538bef76e967817c28#diff-c94c93586689a4b5143213b53901e407386b7df3cfc090996226685e3a1693e9L52

vadorovsky commented 1 year ago

Whoops, sorry for that!

I will remove the PerfEventArray descriptions from that page and provide some other, better example for using perf buffers.

vadorovsky commented 1 year ago

It's done