From owner-freebsd-dtrace@FreeBSD.ORG Fri May 30 15:25:54 2014 Return-Path: Delivered-To: freebsd-dtrace@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9CF6AB17 for ; Fri, 30 May 2014 15:25:54 +0000 (UTC) Received: from nexus.ut.mephi.ru (nexus.ut.mephi.ru [85.143.112.92]) by mx1.freebsd.org (Postfix) with ESMTP id 596D1211F for ; Fri, 30 May 2014 15:25:53 +0000 (UTC) Received: from [85.143.112.127] (unknown [85.143.112.127]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: dyokunev@ut.mephi.ru) by nexus.ut.mephi.ru (Postfix) with ESMTPSA id 6E49922E07A1 for ; Fri, 30 May 2014 19:22:04 +0400 (MSK) Message-ID: <5388A227.7050805@ut.mephi.ru> Date: Fri, 30 May 2014 19:22:15 +0400 From: Dmitry Yu Okunev Organization: NRNU MEPhI User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.4.0 MIME-Version: 1.0 To: freebsd-dtrace@freebsd.org Subject: failed to resolve cwd: Unknown variable name X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WdKWsxsqsVCARrjrJ62n0GQWOPiuDPn1U" X-LastMilter: passed X-LastMilter-Score: 0 X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2014 15:25:54 -0000 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--