Dtrace probemod needs to be based on the first argument of the command, not the first argument of the args. This error was introduced a while back when I added support for skipping the driver and invoking cc1 directly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@277401
91177308-0d34-0410-b5e6-
96231b3b80d8
target = "oneshot$target:::entry"
else:
target = "pid$target:::entry"
- predicate = '%s/probemod=="%s"/' % (target, os.path.basename(args[0]))
+ 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);'