Date: Tue, 22 Mar 2016 10:37:17 -0700 From: hiren panchasara <hiren@strugglingcoder.info> To: freebsd-dtrace@FreeBSD.org Subject: Re: Probing sooptcopyin() Message-ID: <20160322173717.GP74217@strugglingcoder.info> In-Reply-To: <20160322171555.GN74217@strugglingcoder.info> References: <20160322171555.GN74217@strugglingcoder.info>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160322173717.GP74217>