reverie/reverie-examples
James Gill 3bd4cffb7b
Some checks failed
ci / Check (push) Has been cancelled
ci / Test Suite (push) Has been cancelled
ci / Clippy (push) Has been cancelled
Upgrade serde_json to 1.0.125
Summary: It has some fixes from the previous 1.0.100

Reviewed By: Imxset21

Differential Revision: D63983796

fbshipit-source-id: 5dc5b48ac515d8901a942d737a1f1f1057060cad
2024-10-07 10:01:13 -07:00
..
chrome-trace Remove dependencies on associated_type_defaults unstable feature 2022-11-18 12:36:51 -08:00
strace Remove dependencies on associated_type_defaults unstable feature 2022-11-18 12:36:51 -08:00
Cargo.toml Upgrade serde_json to 1.0.125 2024-10-07 10:01:13 -07:00
chaos.rs ci: Fix clippy (#20) 2023-07-10 16:46:43 -07:00
chunky_print.rs ci: Fix clippy warnings (#23) 2023-09-13 15:01:16 -07:00
counter1.rs Remove dependencies on associated_type_defaults unstable feature 2022-11-18 12:36:51 -08:00
counter2.rs ci: Fix clippy (#20) 2023-07-10 16:46:43 -07:00
debug.rs Remove dependencies on associated_type_defaults unstable feature 2022-11-18 12:36:51 -08:00
noop.rs Remove dependencies on associated_type_defaults unstable feature 2022-11-18 12:36:51 -08:00
README.md Remove unused pedigree example 2022-12-05 10:20:52 -08:00
strace_minimal.rs Remove dependencies on associated_type_defaults unstable feature 2022-11-18 12:36:51 -08:00

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:

  1. read and recvfrom 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.
  2. EINTR is returned instead of running the real syscall for every other read.