diff options
author | Chris Bieneman <beanz@apple.com> | 2016-08-02 18:23:56 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2016-08-02 18:23:56 +0000 |
commit | 54e044736f7d80ee3fe068e7cb809e4e0f659926 (patch) | |
tree | 8bd80a8fb74bfa7c0af203122ca4d495f7fce126 /clang/utils | |
parent | ef2ee1fd67c33c4e79601f393dd7f0cc3aeda943 (diff) | |
download | bcm5719-llvm-54e044736f7d80ee3fe068e7cb809e4e0f659926.tar.gz bcm5719-llvm-54e044736f7d80ee3fe068e7cb809e4e0f659926.zip |
Revert "[Order Files] Remove dtrace predicate"
This reverts commit r277487.
Removing the probe predicate was a red herring. It results in more symbols being placed in the final order file, but they are symbols from outside the clang image.
llvm-svn: 277492
Diffstat (limited to 'clang/utils')
-rw-r--r-- | clang/utils/perf-training/perf-helper.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/utils/perf-training/perf-helper.py b/clang/utils/perf-training/perf-helper.py index cf90d34e81f..30b9caeffd5 100644 --- a/clang/utils/perf-training/perf-helper.py +++ b/clang/utils/perf-training/perf-helper.py @@ -75,12 +75,13 @@ 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 }" % (target, log_timestamp, action) + dtrace_script = "%s { %s; %s }" % (predicate, log_timestamp, action) dtrace_args = [] if not os.geteuid() == 0: |