Michal Rostecki
81befa0661
Update aya to 0.10.7
...
Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
2 years ago
Michal Rostecki
ca1fe7e05f
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>
2 years ago
Alessandro Decina
9b229d00e1
Don't recompute the record length
2 years ago
Alessandro Decina
7f8d7057df
ebpf: initialize AYA_LOGS with max_entries=0
...
This way aya will create one perf buffer for each cpu
2 years ago
Alessandro Decina
2800454763
Fix clippy warning
2 years ago
Alessandro Decina
8bde15dad7
Add copy of README.md inside aya-log/
...
Needed for crates.io
2 years ago
Alessandro Decina
5e18a715b2
Add missing manifest fields
2 years ago
Alessandro Decina
31e71f8db5
(cargo-release) version 0.1.1
2 years ago
Alessandro Decina
29955b2287
(cargo-release) version 0.1.1
2 years ago
Alessandro Decina
6d14a16d8e
git add .cargo and xtask
2 years ago
Alessandro Decina
cced3da5c8
Update to aya 0.10.5
2 years ago
Alessandro Decina
9ab9c80183
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.
2 years ago
Alessandro Decina
2ac433449c
Minor tweaks to make the verifier's job easier
2 years ago
Alessandro Decina
b14d4bab2f
Switch to aya-ufmt
2 years ago
Alessandro Decina
22d8f86fbb
Use aya_bpf::maps::PerfEventByteArray to output logs
2 years ago
Alessandro Decina
741957f945
Use aya_log_ebpf::ufmt instead of ::ufmt
2 years ago
Alessandro Decina
0d7ac3eb3e
Add ufmt to readme
2 years ago
Alessandro Decina
5df853cfb0
Update readme
2 years ago
Alessandro Decina
b29a061bce
Initial commit
2 years ago