Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jan 2008 13:34:50 +0200
From:      Stefan Lambrev <stefan.lambrev@moneybookers.com>
To:        Kris Kennaway <kris@FreeBSD.org>
Cc:        freebsd-hackers@FreeBSD.org
Subject:   Re: gettimeofday() in hping
Message-ID:  <4797265A.3020409@moneybookers.com>
In-Reply-To: <47965112.5020009@FreeBSD.org>
References:  <4795CC13.7080601@moneybookers.com>	<868x2i3v8d.fsf@ds4.des.no>	<864pd63v2h.fsf@ds4.des.no>	<4795FE54.9090606@moneybookers.com>	<86lk6i0vzk.fsf@ds4.des.no>	<479605E2.6070709@moneybookers.com>	<479621BE.2060907@FreeBSD.org>	<4796357B.9020508@moneybookers.com> <47963911.4000002@FreeBSD.org>	<47965072.7030700@moneybookers.com> <47965112.5020009@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Kris,

Kris Kennaway wrote:
> Stefan Lambrev wrote:
>>
>> Kris Kennaway wrote:
>>> Stefan Lambrev wrote:
>>>
>>>>> You should use hwpmc to verify where the application is really 
>>>>> spending time, since gettimeofday doesn't seem to account for it all.
>>>> pmc: Unknown Intel CPU.
>>>> module_register_init: MOD_LOAD (hwpmc, 0xffffffff8029906d, 
>>>> 0xffffffff8054c500) error 78
>>>
>>> OK, this is the famous problem with modern CPUs that jkoshy has 
>>> declined to work around :(  There are patches for this in perforce, see
>>>
>>> http://perforce.freebsd.org/changeView.cgi?CH=126189
I got hwpmc to compile (but only as module)
hwpmc: TSC/1/0x20<REA> P6/2/0x1ff<INT,USR,SYS,EDG,THR,REA,WRI,INV,QUA>
but when I try to use pmcstat I receive this error message:
pmcstat: ERROR: Initialization of the pmc(3) library failed: Device not 
configured

kldstat lists hwpmc.ko as loaded and I have options HWPMC_HOOKS in my 
kernel.

Any idea what's go wrong?

-- 

Best Wishes,
Stefan Lambrev
ICQ# 24134177




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4797265A.3020409>