From 54e044736f7d80ee3fe068e7cb809e4e0f659926 Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Tue, 2 Aug 2016 18:23:56 +0000 Subject: 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 --- clang/utils/perf-training/perf-helper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/utils') 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: -- cgit v1.2.1