summaryrefslogtreecommitdiffstats
path: root/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
commit9bce81c0b541391ffffdd9c12ca84d834a95dda1 (patch)
tree57f06bf926b781b8593d5d91de343c4e8039c17d /utils
parentd64a6edb75cc09974722ac460c7e2d5b6c301dfd (diff)
[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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@277401 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/perf-training/perf-helper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/perf-training/perf-helper.py b/utils/perf-training/perf-helper.py
index 0dc280de75..30b9caeffd 100644
--- a/utils/perf-training/perf-helper.py
+++ b/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);'