failed to resolve cwd: Unknown variable name
Dmitry Yu Okunev
dyokunev at ut.mephi.ru
Fri May 30 15:25:54 UTC 2014
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 880 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-dtrace/attachments/20140530/10d76f1c/attachment.sig>
More information about the freebsd-dtrace
mailing list