From owner-freebsd-questions Thu Apr 16 12:24:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA16086 for freebsd-questions-outgoing; Thu, 16 Apr 1998 12:24:09 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from relay.hq.tis.com (relay.hq.tis.com [192.94.214.100]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA15962 for ; Thu, 16 Apr 1998 19:23:03 GMT (envelope-from dougk@tis.com) Received: by relay.hq.tis.com; id PAA20355; Thu, 16 Apr 1998 15:20:12 -0400 (EDT) Received: from clipper.hq.tis.com(10.33.1.2) by relay.hq.tis.com via smap (4.0a) id xma020342; Thu, 16 Apr 98 15:20:02 -0400 Received: from tis.com (skippy.va.tis.com [192.168.10.16]) by clipper.hq.tis.com (8.7.5/8.7.3) with ESMTP id PAA00468 for ; Thu, 16 Apr 1998 15:18:46 -0400 (EDT) Message-ID: <35365996.C05B85AA@tis.com> Date: Thu, 16 Apr 1998 15:18:46 -0400 From: Doug Kilpatrick Organization: Trusted Information Systems X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 2.2.5-RELEASE i386) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: Profiling LKM's Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have an LKM I want to profile. I know the functions "wss_update", and "wss_insert" are taking some significant time... I'd like to have some hard numbers. (I'd love to have some idea how much time they take on a per-line basis too...but I can work around that) How do I do this? I have already configured the kernel with the -p flag, and compilied/installed it. I have already read the man page to kgmon. (I've even managed to get gprof to give me output that mentions some of the functions in the lkm, just none of the ones I care about and know are getting called.) Doug -- dougk@tis.com I do not speak for my employer. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message