Commit Graph

227 Commits (3aa274597236e8c9938e3626346e2d23119e7ed6)

Author SHA1 Message Date
Alessandro Decina 6a12a48f03 aya: hash_map: factor out common hash code
This is in preparation of adding new hash map types
5 years ago
Alessandro Decina 7c6ae76975 aya: HashMap: add support for LRU maps 5 years ago
Alessandro Decina 04fde46855 aya: more docs 5 years ago
Alessandro Decina eea27f52f3 aya: tweak docs 5 years ago
Alessandro Decina 5aa9cb12ad aya: rename perf map and add docs
Rename the perf_map module to just perf, and rename PerfMap to
PerfEventArray.
5 years ago
Alessandro Decina d94bfde295 aya: maps: add docs and make the hash_map and program_array modules public 5 years ago
Alessandro Decina ce3f83acb1 aya: add HashMap docs 5 years ago
Alessandro Decina e28da8812e aya: make HashMap::new private 5 years ago
Alessandro Decina 24f7c37158 aya: add ProgramArray docs 5 years ago
Alessandro Decina 3fddc8165c aya: make ProgramArray::new private 5 years ago
Alessandro Decina 6682a5ff39 aya: remove pop()
lookup_and_delete_elem is only supported for QUEUE and STACK maps at the
moment.
5 years ago
Alessandro Decina 563ce46118 aya: maps: group syscall errors into MapError::SyscallError 5 years ago
Alessandro Decina 42e0a659b2 aya: remove TryInto cleverness from map() and map_mut()
Require callers to call try_into() explicitly. It's more characters, but
it's easier to understand/document.

Also introduce MapError::NotFound instead of returning Result<Option<_>>.
5 years ago
Alessandro Decina ed53f7470b aya: maps: add Map::name() and Map::map_type() 5 years ago
Alessandro Decina 29f2d9b2d9 aya: switch to rustified enums 5 years ago
Alessandro Decina a3ab2eff57 Format fixes 5 years ago
Alessandro Decina 3abe9bb859 Fix RawFd import paths 5 years ago
Alessandro Decina ba992a2414 maps: fail new() for high level wrappers if the underlying map hasn't been created 5 years ago
Alessandro Decina fdc4dad5ff maps: add AsyncPerfMap
When the async_tokio or async_std features are enabled, AsyncPerfMap
provides an async version of PerfMap which returns a future from
read_events()
5 years ago
Alessandro Decina 4be0c45305 perf_map: split in sub modules 5 years ago
Alessandro Decina 95a24c6f8b perf_map: implement AsRawFd 5 years ago
Alessandro Decina 5d6fe8bdf4 Add IOError variants to PerfMapError and PerfBufferError 5 years ago
Alessandro Decina b9be2f1a9b Make aya::maps::perf_map public 5 years ago
Alessandro Decina 160e0be6d6 Change the suffix of errors from *Failed to *Error 5 years ago
Alessandro Decina d4e282535b bpf, perf_map: make maps usable from multiple threads
Change PerfMap API so that individual buffers can be read from multiple
threads.

Change the way maps are stored in the `Bpf` struct from RefCell to a
custom RwLock.
5 years ago
Alessandro Decina d7c91efb2d Make online_cpus() util public 5 years ago
Alessandro Decina af8f769b50 Turn the project into a workspace, move code under aya/ 5 years ago