summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>2018-08-03 12:59:26 +0100
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2018-09-14 12:48:42 +0100
commitfbf0f9ebf6fe36bf0af61d5944e2e0d13c40f4e9 (patch)
treed5a3cb5195501537a7031389694ab4e04e45aaa0 /scripts
parent218fa79fdcf0d47dfd34eccbaf827d4224ed28d8 (diff)
trace.pl: Use undocumented -o to perf record to allow tee
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/trace.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/trace.pl b/scripts/trace.pl
index 2976cfdf..18f9f3b1 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 @_;
}