From owner-freebsd-emulation@FreeBSD.ORG Sat Apr 9 21:51:20 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F498106564A; Sat, 9 Apr 2011 21:51:20 +0000 (UTC) (envelope-from chris.richardson.bsd@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id B9C1E8FC14; Sat, 9 Apr 2011 21:51:19 +0000 (UTC) Received: by wyf23 with SMTP id 23so4504531wyf.13 for ; Sat, 09 Apr 2011 14:51:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Avn8NVJ548QWD/JwzOUFqKhBYWQC9I7oF7ndfZYoS/0=; b=GEWDFK4/kO5v9KASeEIAkFBODIGwcegtijq4BwqZmp3FpbKUINPE+/vmYXCBsFck3G tse5eHBDzP86WMllBcNKn/Xip6gpldFGPzotlBXlZPigWBZsac9OelXFjs4lA8AI/3OJ 8N8ihqxfieIYrXRGxZS8zucY5tJKVrrg3WSxg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=M3KnSH5C3QKM/nZ+xIrbPLt2i3NRbkf4WiEIz9D5dlklE3xMLXNtH+rDNJ6XGTRt4H odfe3O7sa828+lQkVh2f4ojp+ROod5I0NX0w4jJzryr306rw7E4GWBcxkxmW7MNx64i6 A7o361w8n+ARNCBJIuZ0VR6mShEKthepBfkrQ= MIME-Version: 1.0 Received: by 10.227.157.68 with SMTP id a4mr3521839wbx.198.1302385878663; Sat, 09 Apr 2011 14:51:18 -0700 (PDT) Received: by 10.227.143.133 with HTTP; Sat, 9 Apr 2011 14:51:18 -0700 (PDT) In-Reply-To: References: Date: Sat, 9 Apr 2011 23:51:18 +0200 Message-ID: From: Chris Richardson To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-emulation@freebsd.org, Chuck Swiger , freebsd-current@freebsd.org Subject: Re: Kernel Tracking Question.. regarding kernel and boot files X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Apr 2011 21:51:20 -0000 On Sat, Apr 9, 2011 at 10:34 PM, Chuck Swiger wrote: > Hi, Chris-- > > [ ...Reply-to: set to direct towards the most appropriate list... ] > > On Apr 9, 2011, at 8:31 AM, Chris Richardson wrote: > > I am totally new to FreeBSD. I was involved within project which will > > trace the kernel. I used ktrace but I could not get appropriate results > > about the files being opened. I don't see any of the boot files boot0-1 > or 2 > > in the ktrace.out file. Where did they go? > > The bootstrap loader stages are what loads and runs the kernel. > ktrace isn't available until afterwards, when the kernel is running. > > > Is ktrace the best "trace suite" for freebsd kernel? > > Kinda depends on what you are doing. Setting up good logging and making > userland > interfaces for getting to useful information (cf vmstat, ps, iostat, etc) > is > more likely to be useful over the longer run. > > What about if I wanna see the interaction between boot process and kernel loading. > > What about going through source code .. Is it better to > > use Combination of Ecllipse/Qemu and FreeBSD Source tree? > > Eclipse is an editor. If you like it in particular, free free to use it, > otherwise pick something else you'd prefer to use for C code. > > > Does this method will provide us with someway to see how booting process > invokes > > the kernel to memory ? Any help will be appreciated. > > You're asking about the process here: > > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/boot-blocks.html > > ...? Frankly, none of these are especially big, start by reviewing the > source > code for 'em. > > Yeah. this file provides me with the stages in theoretical way. How about implementing it using qemu to emulate livecd to see what is going on boot0. Do you have an idea about that ? Good Luck, > Regards, > -- > -Chuck > > >