cc6d88bfd3
Summary: Fixes all current clippy warnings[1] so CI is green again. Fixing the warning `clippy::needless_pass_by_ref_mut` became a little involved. The internal version of clippy isn't recent enough to have this warning and so just doing `#[allow(clippy::needless_pass_by_ref_mut)]` leads to another error. The resulting change fixes the clippy warning and gets rid of some of the shenanigans I was doing to avoid allocating path buffers within the child process. [1]: https://github.com/facebookexperimental/reverie/actions/runs/6164196219/job/16729396694 Pull Request resolved: https://github.com/facebookexperimental/reverie/pull/23 Reviewed By: VladimirMakaev Differential Revision: D49209202 Pulled By: jasonwhite fbshipit-source-id: b03ff432783910bef11fc239d146659dc2c0db30 |
||
---|---|---|
.. | ||
chrome-trace | ||
strace | ||
Cargo.toml | ||
chaos.rs | ||
chunky_print.rs | ||
counter1.rs | ||
counter2.rs | ||
debug.rs | ||
noop.rs | ||
README.md | ||
strace_minimal.rs |
Examples
Example tools built on top of Reverie.
Copying one of these examples is the recommended way to get started using Reverie.
chrome-trace: Generates a chrome trace file
This tool is like strace
, but generates a trace file that can be loaded in
chrome://tracing/
.
counter1: Reverie Counter Tool (1)
This is a basic example of event counting. It counts the number of system calls and reports that single integer at exit.
This version of tool uses a single, centralized piece of global state.
counter2: Reverie Counter Tool (2)
This is a basic example of event counting. This tool counts the number of system calls and reports that single integer at exit.
This implementation of the tool uses a distributed notion of state, maintaining a per-thread, per-process, and global state. Basically, this is an example of "MapReduce" style tracing of a process tree.
noop: Identity Function Tool
This instrumentation tool intercepts events but does nothing with them. It is useful for observing the overhead of interception, and as a starting point.
chunky_print: Print-gating Tool
This example tool intercepts write events on stdout and stderr and manipulates either when those outputs are released, or the scheduling order that determines the order of printed output.
strace: Reverie Echo Tool
This instrumentation tool simply echos intercepted events, like strace.
chaos: Chaos Tool
This tool is meant to emulate a pathological kernel where:
read
andrecvfrom
calls return only one byte at a time. This is intended to catch errors in parsers that assume multiple bytes will be returned at a time.EINTR
is returned instead of running the real syscall for every other read.