r277401 - [Order Files] Fixing an error in the perf-helper script

Chris Bieneman via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 1 15:54:00 PDT 2016


Author: cbieneman
Date: Mon Aug  1 17:54:00 2016
New Revision: 277401

URL: http://llvm.org/viewvc/llvm-project?rev=277401&view=rev
Log:
[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.

Modified:
    cfe/trunk/utils/perf-training/perf-helper.py

Modified: cfe/trunk/utils/perf-training/perf-helper.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/perf-training/perf-helper.py?rev=277401&r1=277400&r2=277401&view=diff
==============================================================================
--- cfe/trunk/utils/perf-training/perf-helper.py (original)
+++ cfe/trunk/utils/perf-training/perf-helper.py Mon Aug  1 17:54:00 2016
@@ -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);'




More information about the cfe-commits mailing list