Commit Graph

2 Commits (edc8395fb2d7eb621c7c8a4041e9bc7a8c78e6f7)

Author SHA1 Message Date
Alessandro Decina 223e2f4ea1 ebpf: inline write_record_header
This seems to help the verifier keep track of where we're writing into
LOG_BUF
3 years ago
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