Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 May 2014 19:22:15 +0400
From:      Dmitry Yu Okunev <dyokunev@ut.mephi.ru>
To:        freebsd-dtrace@freebsd.org
Subject:   failed to resolve cwd: Unknown variable name
Message-ID:  <5388A227.7050805@ut.mephi.ru>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--WdKWsxsqsVCARrjrJ62n0GQWOPiuDPn1U
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

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

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


--WdKWsxsqsVCARrjrJ62n0GQWOPiuDPn1U
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iQIcBAEBAgAGBQJTiKIvAAoJEK2K5AyOMGec5NIQALeBg/HROWFknIyjbippK3HP
Ll+iJJuK6G6YzSHLvo2brZO+rIH02nawVCRfZ4fn/iM1QYt/HZLGf9o/tdRCCGwP
FXPd7Z8fm+cPZD1VbBw9YTN9z+9p0wkDJyaBEEqlmwSTKof/MCHw0oyk4mrqhemh
21BTLIzL49GvkZ5fSi/SjHK/puUAVFFoo7fmtVoYfxp0i3KPxNazNkcYQ4xCJuQx
pF23aWsh6s7WemTwc3OWDE4jhXKjA5WJhYtY4Amx4yUHhMvMUrVgDONSxuDJe7BF
HcBxcUd+OhR2LxQ2IgXLw+sPRk0bNMwKj+8XQ0B/CuKRWPjVhZiz7ctTTYyGVsNL
N0c9ZZ1vXX+s1/VO/C1nm8fBX0NqiN/HuaQTuoJsiOj3gAm0RHDC90imjABwby33
ROisa+8FI947GeoDf7aSXjwiWPPKx22FvHz/VqnmOasdGAsJkpQLqILJ58WGjovu
B65lTVwRYmJlh8MvVBcZxqMeGW2w/RmP+ttGhe7rZ7dLc7KjcxmJr9sUJ143JOJK
tJyP1fwDfynPBTfpDe6VvVrhNbhEHi8EvveWB8yLTA4e2inZ2vpf8H3UYhoV9zLo
/kOWim/8YyjToh9fNPoIvEs6wT+ISWnXFzLmDzdNJRLuouVr2kwFBLtFLZzm8GWZ
rgYkOuR1AhhDAoMILw85
=N8Nf
-----END PGP SIGNATURE-----

--WdKWsxsqsVCARrjrJ62n0GQWOPiuDPn1U--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5388A227.7050805>