From owner-freebsd-current@FreeBSD.ORG Mon Dec 14 05:54:40 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 66F10106566B for ; Mon, 14 Dec 2009 05:54:40 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outV.internet-mail-service.net (outv.internet-mail-service.net [216.240.47.245]) by mx1.freebsd.org (Postfix) with ESMTP id 522818FC08 for ; Mon, 14 Dec 2009 05:54:39 +0000 (UTC) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 293CCB647 for ; Sun, 13 Dec 2009 21:54:42 -0800 (PST) X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id A35982D6011 for ; Sun, 13 Dec 2009 21:54:38 -0800 (PST) Message-ID: <4B25D32B.70306@elischer.org> Date: Sun, 13 Dec 2009 21:54:51 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: FreeBSD Current Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: profiling kernel modules. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Dec 2009 05:54:40 -0000 It's been a few years since I last profiled the kernel, (probably a decade :-) but it was always a monolithic compiled kernel. Now I want to profile a module, but I'm not finding a lot of specific instructions as to how to do this, For example how to get the loaded addresses for the modules taken into account, or what arguments need to be added to the compile of the module to make sure it has any code stubs that may be needed, etc. if you know anything about these subjects, or related (e.g. usin the performance counters in the kernel/modules I'd love to get your inpout and maybe turn out a doc on how to do this. This would be for -current (9) or 8.0R. Julian.