Crates.io | intentrace |
lib.rs | intentrace |
version | 0.2.4 |
source | src |
created_at | 2024-10-29 19:51:34.794288 |
updated_at | 2024-11-08 13:13:49.363464 |
description | intentrace is strace with intent, it goes all the way for you instead of half the way. |
homepage | |
repository | https://github.com/sectordistrict/intentrace |
max_upload_size | |
id | 1427566 |
size | 2,589,777 |
intentrace is a strace for everyone, intentrace works similarly to strace in that it intercepts and records the system calls which are called by a process, it then reasons through these syscalls by consulting an enormous backlog of handwritten syscall deductions. Due to the fact that linux syscalls almost always have dual usage that's obfuscated by libraries, seeing what a syscall is exactly asking for is immensely useful when e.g. a programmer is debugging a crashing binary.
Intentrace follows a similar working methodology to the one employed by the UniKraft kernel in that it attempts to cover a high percentage of the most popular linux software despite supporting only around 166 syscalls out of the 380+ linux syscalls (see page 8 of the Unikraft Paper for an example of strategic syscall coverage: https://arxiv.org/pdf/2104.12721). It's planned eventually for intentrace to cover all linux syscalls.
intentrace ls
intentrace google-chrome
-q
intentrace -q ls
-f
intentrace -f docker run alpine
Parameter | Description | Default value |
---|---|---|
-c --summary |
provide a summary table at the end of tracing | false |
-p pid --attach pid |
attach to an already running proceess | not enabled |
-f --follow-forks |
trace child process when traced programs create them | false |
-z --failed-only |
only print failed syscalls | false |
-q --mute-stdout |
mute traced program's std output | false |
Prerequisites:
Latest stable version of Rust and Cargo.
Build and run intentrace:
git clone https://github.com/sectordistrict/intentrace.git
cd intentrace`
cargo build --release
cargo install intentrace
intentrace is currently in beta, currently multi-threaded programs are a hit and miss.
intentrace was originally intended to be a 2 window TUI, where a top panel shows a normal stream of syscalls, and a bottom panel containing metadata and explanation, however this was abandoned in favor of the current scheme.
intentrace currently only supports x86-64
, given that the program is currently in beta, PRs for cross compatibility will unfortunately not be accepted until the program is stable enough.
Support intentrace by contributing issues and PRs, don't feel discouraged from filing issues or creating PRs. Reading the source is a great way to learn how linux works.
Feel free to file issues and open Pull Requests. Issues and PRs can contain and involve: