Skip to content

mattrco/difftrace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

difftrace

difftrace is a small tool for manipulating strace output to produce more meaningful diffs.

Normally when you run strace, memory addresses, timestamps and other things will change between runs. Here's a diff of two different invocations of true:

coloured diff of strace output

difftrace replaces some of these things with placeholders (currently just memory addresses). In the example above, there is no difference between outputs once the memory addresses have been substituted.

difftrace reads from stdin and outputs to stdout:

cat strace_run.out | difftrace

Currently it doesn't handle all possible outputs, but it does handle the simple cases. A lexer and parser have been implemented so that extending what it does is easier.

Implementation inspired by Ben Johnson's post on handwritten parsers.

About

Parse and manipulate strace output for easier diffs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages