reverie-rs / reverie

trace and intercept linux syscalls.
Other
14 stars 5 forks source link

log support for systrace tool/plugin #32

Closed wangbj closed 5 years ago

wangbj commented 5 years ago

This add potential logging support for systrace tools plugin (provided via tools_helper::logger crate). It is recommended because call generic logging API (such as env_logger) isn't considered safe, because the latter is too high level, and does allocations.

tools_helper::logger on the other hand doesn't use allocations, and it also uses spin locks for thread safety.

The (tool) log can be enabled by setting SYSTOOL_LOG=xxx for systrace.