Hello.

I cannot use dtrace in FreeBSD for my need due to next bug.

It's said that there's a build-in variable "cwd" contains "the name of
the current working directory of the process associated with the current
thread" [1]

[1] http://docs.oracle.com/cd/E18752_01/html/819-5488/gcfpz.html

But when I try to use the variable I get a failure:
> dtrace: invalid probe specifier syscall:::entry { printf("%s", cwd);
}: in action list: failed to resolve cwd: Unknown variable name

You can get the same error by running a dtrace-script from official
FreeBSD distribution:
> /usr/share/dtrace/toolkit/opensnoop -c

-- 
Best regards, Dmitry,
head of UNIX-tech department NRNU MEPhI,
tel. 8 (495) 788-56-99, add. 8255

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to