From owner-freebsd-dtrace@freebsd.org Tue Mar 22 17:16:04 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 D1BB0AD9974 for ; Tue, 22 Mar 2016 17:16:04 +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 C68DA669 for ; Tue, 22 Mar 2016 17:16:01 +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 60A0017998 for ; Tue, 22 Mar 2016 10:15:55 -0700 (PDT) Date: Tue, 22 Mar 2016 10:15:55 -0700 From: hiren panchasara To: freebsd-dtrace@FreeBSD.org Subject: Probing sooptcopyin() Message-ID: <20160322171555.GN74217@strugglingcoder.info> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sy9WyBOsCRoUO165" Content-Disposition: inline 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:16:04 -0000 --sy9WyBOsCRoUO165 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I find sooptcopyin() failing and want to see how.=20 Prototype is int sooptcopyin(struct sockopt *sopt, void *buf, size_t len, size_t minlen) 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. Any pointers? Cheers, Hiren --sy9WyBOsCRoUO165 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAABCgBmBQJW8X3IXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRBNEUyMEZBMUQ4Nzg4RjNGMTdFNjZGMDI4 QjkyNTBFMTU2M0VERkU1AAoJEIuSUOFWPt/lD7MH/A1Y+05p75lsNGUqHir/LY76 fhYJsgFldVI+8CpWQ7vt8e5R7JT612fGLvNBrDWJ5GzX7coM+pkps+izv9KqYJO8 E09HhlmV7JLrtswbW6fV3R5iA5rBU7+G33A35LzYy/mh38d4W8WnsOLU9EUXAO/T iGlcY7WYAXpTYeskqsn3djGgGpGEntcjx8m0oJCdRv7m6V1Gyg7EjG4ZNX5J1qHV 5SY3L81jfF7DxAV+ZXAWZEE4w5KNnrtn2v2QGS62mWTYZWERkZKVnzZAnLDwbHQW mLFXirrS4UYknwcYKsgJx2KqKQsKa96TEqdhwUunD65e8CgUbeH4sSMFcu4PnrI= =zaYr -----END PGP SIGNATURE----- --sy9WyBOsCRoUO165--