- stage 1 Decodes a log into a somewhat c-style format
- collect Merges register set and register read/write into one "call"
Both scripts read input from stdin and write their output to stdout. The stage 1 script is used with the raw log from usbsnoop. Then you need to clean the output from any "unknown"-lines. This is best done with grep. This new output can then be processed by the collect script.