diff options
author | Chris Bieneman <beanz@apple.com> | 2016-08-01 22:54:00 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2016-08-01 22:54:00 +0000 |
commit | 973781bbb418cf55772d2ab54798cf25c6df5e11 (patch) | |
tree | 3673f5032fa5b2da560e46089888146df088fc81 /clang/utils | |
parent | b44909eccbe79902e9f3002d72b4b6d596f0a94b (diff) | |
download | bcm5719-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.py | 2 |
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);' |