From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 14 19:42:21 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00ACB106566C for ; Mon, 14 Apr 2008 19:42:21 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from frontmail.ipactive.de (frontmail.maindns.de [85.214.95.103]) by mx1.freebsd.org (Postfix) with ESMTP id B459B8FC15 for ; Mon, 14 Apr 2008 19:42:20 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from mail.vtec.ipme.de (F72a1.f.ppp-pool.de [195.4.114.161]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by frontmail.ipactive.de (Postfix) with ESMTP id AB70E128844 for ; Mon, 14 Apr 2008 21:18:50 +0200 (CEST) Received: from cesar.sz.vwsoft.com (cesar.sz.vwsoft.com [192.168.16.3]) (Authenticated sender: relay@sz.vwsoft.com) by mail.vtec.ipme.de (Postfix) with ESMTP id F024E3F439 for ; Mon, 14 Apr 2008 21:19:40 +0200 (CEST) Message-ID: <4803AE07.9010106@vwsoft.com> Date: Mon, 14 Apr 2008 21:18:31 +0200 From: Volker User-Agent: Thunderbird 2.0.0.12 (X11/20080316) MIME-Version: 1.0 To: hackers@freebsd.org X-Enigmail-Version: 0.95.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit MailScanner-NULL-Check: 1208805594.01463@VJhq2YDwb9BxKA2CS2WCWw X-MailScanner-ID: F024E3F439.8440B X-VWSoft-MailScanner: Found to be clean X-MailScanner-From: volker@vwsoft.com X-ipactive-MailScanner-Information: Please contact the ISP for more information X-ipactive-MailScanner: Found to be clean X-ipactive-MailScanner-From: volker@vwsoft.com Cc: Subject: "visualize" kernel memory allocations 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: Mon, 14 Apr 2008 19:42:21 -0000 Hi hackers! I need to hunt kernel memory allocations done by a kld. Unfortunately the kld in question is a blob, no access to source code, so I need to check for kmem_alloc() + kmem_malloc() + kmem_free() and print information from there to the console screen. >From within these functions, I need to get the name (or an ID) of the module trying to allocate memory (and display that or - better - filter some allocations out). Thx, Volker