android: stack.py: revert to copying input lines by default
In crrev.com/c/926227 copying of input lines to output was removed, as
it was confusing/slow for interactive use in the terminal. However, some
users appreciate this mode allowing them to pipe adb logcat through the
Inspecting further, the mode that omits irrelevant lines existed: it was
automatically used when FILE was provided (to not be stdin).
Add an option --pass-through (or -p) to control copying the non-trace lines.
Make --pass-through incompatible with reading from a non-stdin FILE because the
idea of the latter is to pre-filter the lines and run them through
multiprocessing. Pre-filtering, passthrough and post-merging sounds too
complicated right now.
Reviewed-by: Andrew Grieve <email@example.com>
Commit-Queue: Egor Pasko <firstname.lastname@example.org>
2 files changed