From owner-freebsd-dtrace@freebsd.org Tue Mar 22 17:37:17 2016 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D22F7AD9DA6 for ; Tue, 22 Mar 2016 17:37:17 +0000 (UTC) (envelope-from hiren@strugglingcoder.info) Received: from mail.strugglingcoder.info (strugglingcoder.info [104.236.146.68]) by mx1.freebsd.org (Postfix) with ESMTP id C616BD99 for ; Tue, 22 Mar 2016 17:37:17 +0000 (UTC) (envelope-from hiren@strugglingcoder.info) Received: from localhost (unknown [10.1.1.3]) (Authenticated sender: hiren@strugglingcoder.info) by mail.strugglingcoder.info (Postfix) with ESMTPA id 2E8DA179AC for ; Tue, 22 Mar 2016 10:37:17 -0700 (PDT) Date: Tue, 22 Mar 2016 10:37:17 -0700 From: hiren panchasara To: freebsd-dtrace@FreeBSD.org Subject: Re: Probing sooptcopyin() Message-ID: <20160322173717.GP74217@strugglingcoder.info> References: <20160322171555.GN74217@strugglingcoder.info> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zxEKvxCKojqA/Afl" Content-Disposition: inline In-Reply-To: <20160322171555.GN74217@strugglingcoder.info> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.21 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: Tue, 22 Mar 2016 17:37:17 -0000 --zxEKvxCKojqA/Afl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 03/22/16 at 10:15P, hiren panchasara wrote: > I find sooptcopyin() failing and want to see how.=20 >=20 > Prototype is > int sooptcopyin(struct sockopt *sopt, void *buf, size_t len, size_t > minlen) >=20 > sopt->sopt_val seems to be the value passed in. But that being void * > type, I am not sure how to read it on fbt::sooptcopyin:entry invocation. > I've tried to cast it in a few ways without success along with > copyinstr/stringof. My bad. I was passing wrong arg and that's why simple cast wasn't working. :/ Cheers, Hiren --zxEKvxCKojqA/Afl Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAABCgBmBQJW8YLNXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRBNEUyMEZBMUQ4Nzg4RjNGMTdFNjZGMDI4 QjkyNTBFMTU2M0VERkU1AAoJEIuSUOFWPt/lDqIH+QFs6NPzDqLIuCoKZawwA1BS EgngPq8WqzpRXjBXu5exes5x9B+TeR1HuSHLVDqZ7C3d957Bkzdcrj4bnISKBWOT YqWXMkz81vvgx8YNIXw8JNDwzZec+xNhhkU1FerMNEvlvzaRowKEt6kJEx6IPiTZ CmtPvAYYRAYYkOSH0ym1csDFmYi/Wxw4cfbpXQCtBt0n0UHMBDiT9ESEd3uIoYMk 38lZKgv4wV2GgU5WBwkNP7zZvUavDFUXoYIEe7zGbbAtiM9HZ6e8YMaapDPDPOf9 lsXn/YlwzjPrfnMy5BjXm3FC9Fc/7cJFTeLpZSXBXUmeRpsg6AwpXfk9Cll7rRA= =zRt0 -----END PGP SIGNATURE----- --zxEKvxCKojqA/Afl--