forked from OSchip/llvm-project
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
This commit is contained in:
parent
ef2ee1fd67
commit
54e044736f
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue