Commit Graph

18 Commits (ec31526de1837b12b86147220b6b03fd98d0ea5f)
 

Author SHA1 Message Date
Michal Rostecki ec31526de1 Format arguments in userspace
This change moves away argument formatting from eBPF to the userspace.
eBPF part of aya-log writes unformatted log message and all arguments to
the perf buffer and the userspace part of aya-log is formatting the
message after receiving all arguments.

Aya-based project to test this change:

https://github.com/vadorovsky/aya-log-example

Fixes: #4
Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
Signed-off-by: Tuetuopay <tuetuopay@me.com>
Co-authored-by: Tuetuopay <tuetuopay@me.com>
3 years ago
Alessandro Decina 5aa5eb5b76 Don't recompute the record length 3 years ago
Alessandro Decina 00e6d39b13 ebpf: initialize AYA_LOGS with max_entries=0
This way aya will create one perf buffer for each cpu
3 years ago
Alessandro Decina cad8d63aa5 Fix clippy warning 3 years ago
Alessandro Decina db0c543c82 Add copy of README.md inside aya-log/
Needed for crates.io
3 years ago
Alessandro Decina 67908b6f55 Add missing manifest fields 3 years ago
Alessandro Decina a4b8934ce1 (cargo-release) version 0.1.1 3 years ago
Alessandro Decina 1a5f003b2c (cargo-release) version 0.1.1 3 years ago
Alessandro Decina 0ca22d0e32 git add .cargo and xtask 3 years ago
Alessandro Decina 154d886a76 Update to aya 0.10.5 3 years ago
Alessandro Decina d33e0b3d42 Simplify BpfLogger::init
Make BpfLogger::init(bpf) log using the default logger. Add
BpfLoger::init_with_logger(bpf, logger) for logging using a custom
logger instance.
3 years ago
Alessandro Decina 897c94d5b8 Minor tweaks to make the verifier's job easier 3 years ago
Alessandro Decina ac5a2d5dbb Switch to aya-ufmt 3 years ago
Alessandro Decina 54e23141bd Use aya_bpf::maps::PerfEventByteArray to output logs 3 years ago
Alessandro Decina 069013ddc9 Use aya_log_ebpf::ufmt instead of ::ufmt 3 years ago
Alessandro Decina 9205986050 Add ufmt to readme 3 years ago
Alessandro Decina f5d047b3ab Update readme 3 years ago
Alessandro Decina 301092ac2e Initial commit 3 years ago