From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 23 11:34:56 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4EA7916A41A; Wed, 23 Jan 2008 11:34:56 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: from blah.sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.freebsd.org (Postfix) with ESMTP id F05D513C457; Wed, 23 Jan 2008 11:34:55 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: by blah.sun-fish.com (Postfix, from userid 1002) id 497D71B10EEE; Wed, 23 Jan 2008 12:34:54 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on blah.cmotd.com X-Spam-Level: X-Spam-Status: No, score=-10.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, J_CHICKENPOX_52 autolearn=no version=3.2.3 Received: from hater.haters.org (hater.cmotd.com [192.168.3.125]) by blah.sun-fish.com (Postfix) with ESMTP id 488931B10ED2; Wed, 23 Jan 2008 12:34:51 +0100 (CET) Message-ID: <4797265A.3020409@moneybookers.com> Date: Wed, 23 Jan 2008 13:34:50 +0200 From: Stefan Lambrev User-Agent: Thunderbird 2.0.0.9 (X11/20071120) MIME-Version: 1.0 To: Kris Kennaway 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> In-Reply-To: <47965112.5020009@FreeBSD.org> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.91.2/5531/Wed Jan 23 11:32:09 2008 on blah.cmotd.com X-Virus-Status: Clean Cc: freebsd-hackers@FreeBSD.org Subject: Re: gettimeofday() in hping X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2008 11:34:56 -0000 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 P6/2/0x1ff 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