summaryrefslogtreecommitdiffstats
path: root/clang/utils/perf-training
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-08-24 22:09:46 +0000
committerChris Bieneman <beanz@apple.com>2016-08-24 22:09:46 +0000
commit7f5884a489ecadd889bffbea19d6dfab9859ddee (patch)
tree4887a873c0827f7602928e9dda4c6b9d0819a5ed /clang/utils/perf-training
parentb17ac35f207ad0804abd44167c27010e8d362cee (diff)
downloadbcm5719-llvm-7f5884a489ecadd889bffbea19d6dfab9859ddee.tar.gz
bcm5719-llvm-7f5884a489ecadd889bffbea19d6dfab9859ddee.zip
[Order Files] On Darwin use DTrace's oneshot probe
The oneshot probe only gets executed the first time the probe is hit in the process. For order file generation this is really all we care about. llvm-svn: 279673
Diffstat (limited to 'clang/utils/perf-training')
-rw-r--r--clang/utils/perf-training/order-files.lit.cfg5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/utils/perf-training/order-files.lit.cfg b/clang/utils/perf-training/order-files.lit.cfg
index 75501f8c629..e38d264595b 100644
--- a/clang/utils/perf-training/order-files.lit.cfg
+++ b/clang/utils/perf-training/order-files.lit.cfg
@@ -30,6 +30,11 @@ config.suffixes = ['.c', '.cpp', '.m', '.mm', '.cu', '.ll', '.cl', '.s', '.S', '
dtrace_wrapper = '%s %s/perf-helper.py dtrace' % (config.python_exe, config.test_source_root)
dtrace_wrapper_cc1 = '%s %s/perf-helper.py dtrace --cc1' % (config.python_exe, config.test_source_root)
+if 'darwin' in config.target_triple:
+ lit_config.note('using DTrace oneshot probe')
+ dtrace_wrapper = '%s --use-oneshot' % dtrace_wrapper
+ dtrace_wrapper_cc1 = '%s --use-oneshot' % dtrace_wrapper_cc1
+
use_lit_shell = os.environ.get("LIT_USE_INTERNAL_SHELL")
config.test_format = lit.formats.ShTest(use_lit_shell == "0")
config.substitutions.append( ('%clang_cpp_skip_driver', ' %s %s --driver-mode=cpp %s ' % (dtrace_wrapper_cc1, config.clang, sysroot_flags)))
OpenPOWER on IntegriCloud