r277487 - [Order Files] Remove dtrace predicate

Chris Bieneman via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 2 10:50:53 PDT 2016


Author: cbieneman
Date: Tue Aug  2 12:50:53 2016
New Revision: 277487

URL: http://llvm.org/viewvc/llvm-project?rev=277487&view=rev
Log:
[Order Files] Remove dtrace predicate

Having the dtrace predicate setup to only show probes in clang filters out static initializers executed by dyld, which we do want included in the order files.

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=277487&r1=277486&r2=277487&view=diff
==============================================================================
--- cfe/trunk/utils/perf-training/perf-helper.py (original)
+++ cfe/trunk/utils/perf-training/perf-helper.py Tue Aug  2 12:50:53 2016
@@ -75,13 +75,12 @@ def dtrace(args):
       target = "oneshot$target:::entry"
   else:
       target = "pid$target:::entry"
-  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);'
   else:
       action = 'printf("dtrace-Symbol: %s\\n", probefunc);'
-  dtrace_script = "%s { %s; %s }" % (predicate, log_timestamp, action)
+  dtrace_script = "%s { %s; %s }" % (target, log_timestamp, action)
 
   dtrace_args = []
   if not os.geteuid() == 0:




More information about the cfe-commits mailing list