From owner-freebsd-current Sat Jun 26 8: 9:14 1999 Delivered-To: freebsd-current@freebsd.org Received: from gate.keisu.t.u-tokyo.ac.jp (ns06.t.u-tokyo.ac.jp [133.11.68.1]) by hub.freebsd.org (Postfix) with SMTP id 8652F14C97 for ; Sat, 26 Jun 1999 08:09:11 -0700 (PDT) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: (qmail 94192 invoked from network); 26 Jun 1999 15:09:11 -0000 Received: from sylph.sat.t.u-tokyo.ac.jp (10.6.1.20) by ns06.t.u-tokyo.ac.jp with SMTP; 26 Jun 1999 15:09:11 -0000 Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [10.6.1.30]) by sylph.sat.t.u-tokyo.ac.jp (Postfix) with ESMTP id C580D2DAA9; Sun, 27 Jun 1999 00:09:10 +0900 (JST) Received: from ett.sat.t.u-tokyo.ac.jp by ett.sat.t.u-tokyo.ac.jp (8.9.3/sat-V0.6) id AAA45845; Sun, 27 Jun 1999 00:09:09 +0900 (JST) Date: Sun, 27 Jun 1999 00:09:08 +0900 Message-ID: <14196.60692.776168.25222H@ett.sat.t.u-tokyo.ac.jp> From: Hidetoshi Shimokawa To: pb@fasterix.freenix.org Cc: freebsd-current@FreeBSD.ORG Subject: Re: kernel profiling In-Reply-To: In your message of "Sat, 26 Jun 1999 16:11:43 +0200" <19990626161143.A9799@fasterix.frmug.fr.net> References: <19990626161143.A9799@fasterix.frmug.fr.net> User-Agent: Wanderlust/1.0.0 (Kokomo) SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) MULE XEmacs/21.2 (beta13) (Demeter) (i386-unknown-freebsd3.1) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7:#j7i14gu$ jgR\S*&C3R/pJX 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. -- /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: finger -l simokawa@sat.t.u-tokyo.ac.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message