[PATH i-g-t 02/13] trace.pl: Use undocumented -o to perf record to allow tee

Tvrtko Ursulin
2018-09-05T13:49:47Z

scripts/trace.pl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/trace.pl b/scripts/trace.pl
index 2976cfdf585a..18f9f3b18396 100755
--- a/scripts/trace.pl
+++ b/scripts/trace.pl
@@ -170,8 +170,9 @@ sub arg_trace
if ($_[0] eq '--trace') {
shift @_;

+ unshift @_, '--';
unshift @_, join(',', @events);
- unshift @_, ('perf', 'record', '-a', '-c', '1', '-q', '-e');
+ unshift @_, ('perf', 'record', '-a', '-c', '1', '-q', '-o', 'perf.data', '-e');

exec @_;