From sgi-lockmeter@gmane.org Thu Aug 24 09:30:55 2006 Received: with ECARTIS (v1.0.0; list lockmeter); Thu, 24 Aug 2006 09:31:09 -0700 (PDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id k7OGUrDW014684 for ; Thu, 24 Aug 2006 09:30:54 -0700 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1GGI5h-0004vo-Qn for lockmeter@oss.sgi.com; Thu, 24 Aug 2006 18:30:02 +0200 Received: from rusfw02.rohde-schwarz.com ([80.246.32.40]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Aug 2006 18:30:01 +0200 Received: from euphoria by rusfw02.rohde-schwarz.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Aug 2006 18:30:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: lockmeter@oss.sgi.com From: Florian Boelstler Subject: Lockmetering a custom kernel module Date: Thu, 24 Aug 2006 17:49:16 +0200 Lines: 18 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: rusfw02.rohde-schwarz.com User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) X-archive-position: 500 X-ecartis-version: Ecartis v1.0.0 Sender: lockmeter-bounce@oss.sgi.com Errors-to: lockmeter-bounce@oss.sgi.com X-original-sender: euphoria@arcor.de Precedence: bulk X-list: lockmeter Hi, I just tried lockmeter for some spinlocks introduced in a kernel module. However I couldn't find the appropriate spinlock symbol in the output obtained by "lockstat print". I got a lot of information about spinlocks used in "built-in" kernel drivers, etc. Is it really true that lockmeter does not work for kernel modules loaded at runtime? Or is it "hidden" behind some symbol denoted by an address? Thanks, Florian Linux 2.6.17 on x86 SMP (with lockmeter patch 2.6.16) lockstat 1.4.11 From sgi-lockmeter@gmane.org Thu Aug 24 10:30:08 2006 Received: with ECARTIS (v1.0.0; list lockmeter); Thu, 24 Aug 2006 10:30:19 -0700 (PDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id k7OHU7DW027112 for ; Thu, 24 Aug 2006 10:30:08 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GGJ0s-00053Y-Om for lockmeter@oss.sgi.com; Thu, 24 Aug 2006 19:29:07 +0200 Received: from rusfw02.rohde-schwarz.com ([80.246.32.40]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Aug 2006 19:29:06 +0200 Received: from euphoria by rusfw02.rohde-schwarz.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Aug 2006 19:29:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: lockmeter@oss.sgi.com From: Florian Boelstler Subject: Re: Lockmetering a custom kernel module Date: Thu, 24 Aug 2006 19:28:42 +0200 Lines: 8 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: rusfw02.rohde-schwarz.com User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) In-Reply-To: X-archive-position: 501 X-ecartis-version: Ecartis v1.0.0 Sender: lockmeter-bounce@oss.sgi.com Errors-to: lockmeter-bounce@oss.sgi.com X-original-sender: euphoria@arcor.de Precedence: bulk X-list: lockmeter Florian Boelstler schrieb: > Is it really true that lockmeter does not work for kernel modules loaded > at runtime? Or is it "hidden" behind some symbol denoted by an address? Just wanted to let you know that when the driver is built into the kernel I get all expected spinlock profiles. Florian From jrhawkes@yahoo.com Fri Aug 25 16:11:38 2006 Received: with ECARTIS (v1.0.0; list lockmeter); Fri, 25 Aug 2006 16:11:49 -0700 (PDT) Received: from smtp104.plus.mail.mud.yahoo.com (smtp104.plus.mail.mud.yahoo.com [68.142.206.237]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with SMTP id k7PNBcDW013410 for ; Fri, 25 Aug 2006 16:11:38 -0700 Received: (qmail 30385 invoked from network); 25 Aug 2006 22:11:07 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:Message-ID:From:To:References:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Priority:X-MSMail-Priority:X-Mailer:X-MimeOLE; b=Mt9g0YW59lplgnWsep1QNU7DUHm4a3DIAWu/rysLhrUpa5QaClVOkHFGmHsEowolDewzea3Izzb5mr5UVxEAecvvNbsOch2N5ZGkPMfAXGlco4UYjt9m0+ZynlfowIPiRGpi1absStEhOPEhSmgcoDITscqmaFTdozQ3eoZ2bG8= ; Received: from unknown (HELO john765ml1hciw) (jrhawkes@216.88.134.131 with login) by smtp104.plus.mail.mud.yahoo.com with SMTP; 25 Aug 2006 22:11:06 -0000 Message-ID: <004301c6c893$59db9bb0$9101a8c0@john765ml1hciw> From: "John Hawkes" To: , "Florian Boelstler" References: Subject: Re: Lockmetering a custom kernel module Date: Fri, 25 Aug 2006 15:11:00 -0700 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="ISO-8859-15"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-archive-position: 502 X-ecartis-version: Ecartis v1.0.0 Sender: lockmeter-bounce@oss.sgi.com Errors-to: lockmeter-bounce@oss.sgi.com X-original-sender: jrhawkes@yahoo.com Precedence: bulk X-list: lockmeter From: "Florian Boelstler" > Florian Boelstler schrieb: >> Is it really true that lockmeter does not work for kernel modules loaded >> at runtime? Or is it "hidden" behind some symbol denoted by an address? > > Just wanted to let you know that when the driver is built into the kernel > I get all expected spinlock profiles. Yes, this is true. An already-built kernel module was compiled against the unpatched versions of routines like spin_lock() and spin_unlock() which don't perform any lockmetering. It seems to me that a kernel module that is compiled against lockmeter-patched kernel source should link to the lockmeter'ing locking/unlocking routines. Are you saying that these post-patch-built modules do not 'meter' correctly, either? John Hawkes