Skip to content
Snippets Groups Projects
Commit 0f8c3e3e authored by Chris Bieneman's avatar Chris Bieneman
Browse files

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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@277492 91177308-0d34-0410-b5e6-96231b3b80d8
parent c98263c6
No related branches found
No related tags found
No related merge requests found
...@@ -75,12 +75,13 @@ def dtrace(args): ...@@ -75,12 +75,13 @@ def dtrace(args):
target = "oneshot$target:::entry" target = "oneshot$target:::entry"
else: else:
target = "pid$target:::entry" target = "pid$target:::entry"
predicate = '%s/probemod=="%s"/' % (target, os.path.basename(cmd[0]))
log_timestamp = 'printf("dtrace-TS: %d\\n", timestamp)' log_timestamp = 'printf("dtrace-TS: %d\\n", timestamp)'
if opts.use_ustack: if opts.use_ustack:
action = 'ustack(1);' action = 'ustack(1);'
else: else:
action = 'printf("dtrace-Symbol: %s\\n", probefunc);' 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 = [] dtrace_args = []
if not os.geteuid() == 0: if not os.geteuid() == 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment