systrace: handle user builds more gracefully

This change adds an indication of which command line args require root to the
--help output.  It also defers opening the output file until after the trace
has actual started being dumped so that if atrace exits with an error the
output file is not truncated.

Bug: 6513400
Change-Id: Ifa0ed1d3d5eef891fee7d9109c2bb988b03c2e4d
1 file changed