Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Oct 2012 11:32:45 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        RW <rwmaillists@googlemail.com>
Cc:        Jonathan Anderson <jonathan.anderson@cl.cam.ac.uk>, Pawel Jakub Dawidek <pjd@freebsd.org>, John Baldwin <jhb@freebsd.org>, Ben Laurie <benl@freebsd.org>, freebsd-security@freebsd.org, Mariusz Gromada <mariusz.gromada@gmail.com>
Subject:   Re: Collecting entropy from device_attach() times.
Message-ID:  <86626raojm.fsf@ds4.des.no>
In-Reply-To: <20121003011607.5553fe48@gumby.homeunix.com> (RW's message of "Wed, 3 Oct 2012 01:16:07 %2B0100")
References:  <20120918211422.GA1400@garage.freebsd.pl> <20120919231051.4bc5335b@gumby.homeunix.com> <20120920102104.GA1397@garage.freebsd.pl> <201209200758.51924.jhb@freebsd.org> <20120922080323.GA1454@garage.freebsd.pl> <20120922195325.GH1454@garage.freebsd.pl> <505E59DC.7090505@gmail.com> <20120923151706.GN1454@garage.freebsd.pl> <5060D723.6020305@gmail.com> <CAG5KPzxf0Rfufk5K6Jt4e85xc7zXY_B3a2Sq0Uf_uVLHbV-baw@mail.gmail.com> <86r4pqqwnm.fsf@ds4.des.no> <86ipat6n0o.fsf@ds4.des.no> <86y5joiyan.fsf@ds4.des.no> <20121003011607.5553fe48@gumby.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
RW <rwmaillists@googlemail.com> writes:
> It doesn't compute it in a weird way for amd64 and most i386 systems.
> Where possible, get_cyclecount is just a wrapper for rdtsc, which I
> think it will be for all the systems you quoted (with the possible
> exception of virtualbox).

No.  All the machines I tested it on had TSCs, but not all i386 machines
we support do, so get_cyclecount() is always a function call on i386.
Look at the code, or heck, disassemble my kernel if you don't believe
me.

(did you even look at my numbers?)

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86626raojm.fsf>