summaryrefslogtreecommitdiffstats
path: root/clang/utils
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-08-01 22:54:00 +0000
committerChris Bieneman <beanz@apple.com>2016-08-01 22:54:00 +0000
commit973781bbb418cf55772d2ab54798cf25c6df5e11 (patch)
tree3673f5032fa5b2da560e46089888146df088fc81 /clang/utils
parentb44909eccbe79902e9f3002d72b4b6d596f0a94b (diff)
downloadbcm5719-llvm-973781bbb418cf55772d2ab54798cf25c6df5e11.tar.gz
bcm5719-llvm-973781bbb418cf55772d2ab54798cf25c6df5e11.zip
[Order Files] Fixing an error in the perf-helper script
Dtrace probemod needs to be based on the first argument of the command, not the first argument of the args. This error was introduced a while back when I added support for skipping the driver and invoking cc1 directly. llvm-svn: 277401
Diffstat (limited to 'clang/utils')
-rw-r--r--clang/utils/perf-training/perf-helper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/utils/perf-training/perf-helper.py b/clang/utils/perf-training/perf-helper.py
index 0dc280de753..30b9caeffd5 100644
--- a/clang/utils/perf-training/perf-helper.py
+++ b/clang/utils/perf-training/perf-helper.py
@@ -75,7 +75,7 @@ def dtrace(args):
target = "oneshot$target:::entry"
else:
target = "pid$target:::entry"
- predicate = '%s/probemod=="%s"/' % (target, os.path.basename(args[0]))
+ predicate = '%s/probemod=="%s"/' % (target, os.path.basename(cmd[0]))
log_timestamp = 'printf("dtrace-TS: %d\\n", timestamp)'
if opts.use_ustack:
action = 'ustack(1);'
OpenPOWER on IntegriCloud