From: Chris Bieneman Date: Mon, 1 Aug 2016 22:54:00 +0000 (+0000) Subject: [Order Files] Fixing an error in the perf-helper script X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9bce81c0b541391ffffdd9c12ca84d834a95dda1;p=clang [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 --- 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);'