From owner-freebsd-current Sat Jun 26 8:15:18 1999 Delivered-To: freebsd-current@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id 752E014DDF for ; Sat, 26 Jun 1999 08:15:15 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from localhost (dfr@localhost) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id QAA59676; Sat, 26 Jun 1999 16:17:21 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Sat, 26 Jun 1999 16:17:21 +0100 (BST) From: Doug Rabson To: Hidetoshi Shimokawa Cc: pb@fasterix.freenix.org, freebsd-current@freebsd.org Subject: Re: kernel profiling In-Reply-To: <14196.60692.776168.25222H@ett.sat.t.u-tokyo.ac.jp> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 27 Jun 1999, Hidetoshi Shimokawa wrote: > At Sat, 26 Jun 1999 16:11:43 +0200, > Pierre Beyssac wrote: > > > > Just curious: would it be easily doable to profile the kernel by > > sampling the program counter, la profil(2) but for kernel mode? > > Has anyone attempted to write this? > > You can enable kernel profiling by configure kernel with `-p' or '-pp' > option. See config(8) and kgmon(8) for detail. > > I have a patch for FreeBSD/alpha to support kernel profiling. Another excellent alternative for kernel profiling is iprobe. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message