From owner-freebsd-hackers Sat Jan 18 15: 6:10 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 578DD37B401 for ; Sat, 18 Jan 2003 15:06:09 -0800 (PST) Received: from eagle.sharma-home.net (cpe-66-1-147-119.ca.sprintbbd.net [66.1.147.119]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C22743F3F for ; Sat, 18 Jan 2003 15:06:08 -0800 (PST) (envelope-from arun@sharma-home.net) Received: from sharma-home.net (linksys.mirabella.net [192.168.1.4]) by eagle.sharma-home.net (Postfix) with ESMTP id 140E280D7; Sat, 18 Jan 2003 15:08:48 -0800 (PST) Message-ID: <3E29DDDB.6000906@sharma-home.net> Date: Sat, 18 Jan 2003 15:06:03 -0800 From: Arun Sharma User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2) Gecko/20021126 X-Accept-Language: en-us MIME-Version: 1.0 To: Terry Lambert Cc: hackers@freebsd.org Subject: Re: listing sysinit order ? References: <20030118203706.GA21624@sharma-home.net> <3E29D775.EA2323A9@mindspring.com> In-Reply-To: <3E29D775.EA2323A9@mindspring.com> X-Enigmail-Version: 0.71.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Terry Lambert wrote: > Arun Sharma wrote: > >>So my question is, is there a simple tool to list the order in which >>various initialization/probe routines get called in mi_startup ? If not, >>what would it take to write one ? > > more /sys/sys/kernel.h > Yes, I'm aware of this one, but it doesn't tell me very pricisely which drivers get initialized in what order. > You can not cause messages to be printed until after SI_SUB_CONSOLE; > if you want to put a printf in the init_main.c, verify that the > sysinit_sub_id is > SI_SUB_CONSOLE before attempting to call the > printf. At that point only a function pointer is available. Is there a good way of converting it into a printable string ? -Arun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message