From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 18 18:51:52 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3ABFB3D5; Tue, 18 Mar 2014 18:51:52 +0000 (UTC) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E8983D69; Tue, 18 Mar 2014 18:51:51 +0000 (UTC) Received: from julian-mbp3.pixel8networks.com (50-196-156-133-static.hfc.comcastbusiness.net [50.196.156.133]) (authenticated bits=0) by vps1.elischer.org (8.14.8/8.14.8) with ESMTP id s2IIpoOF086158 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 18 Mar 2014 11:51:51 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <532895C2.1010006@freebsd.org> Date: Tue, 18 Mar 2014 11:51:46 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Mike Ma , Ed Maste , freebsd-hackers@freebsd.org Subject: Re: GSoC proposal: kernel debugging support for LLDB References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Mar 2014 18:51:52 -0000 most interesting kernel debug support is for live debugging (with the remote stub or similar) how does this relate to that? On 3/17/14, 12:35 PM, Mike Ma wrote: > Hi all, > > I've submitted a GSoC proposal here, > http://www.google-melange.com/gsoc/proposal/public/google/gsoc2014/mikemandarine/5665319561461760. > I'm copying the proposal here for wider audience. > Any suggestions or comments are more than appreciated. > > Thanks a lot for your time. > > Project Description > I'm planning to add a plugin called FreeBSD-kernel to LLDB, and the > existing userland ELF core strategies can be inherited. On FreeBSD > system, kernel virtual memory image can be accessed using libkvm > interfaces, as to support kernel debugging, libkvm APIs, i.e. > kvm_read(3)/kvm_write(3), will be mainly used. To fully support kernel > debugging, module metadata parsing and module automatic loading will > also be implemented. > > There is some existing work related to this project. The first is kgdb > in FreeBSD code base, it is a kernel debugger based on gdb. Plus, > there is Mac OS X kernel debugging support in LLDB as well. This > project will be focused on the platform that LLDB supports, including > amd64, mips and i386. Once this project is done, remote kernel > debugging and cross-platform kernel debugging would be the next steps > of interest. > > Deliverables > - There are two major milestones: > #1 Basic support for opening kernel crash dumps and /dev/mem. > (mid-term deliverable) > #2 Full debugging support by adding module parsing and loading. > (final deliverable) > > Test Plan > - Check all functionalities and commands are working properly, and > compare behavior with kgdb and LLDB. > - Benchmark tests on startup, stepping, etc. > > Project Schedule > - Week 1 - 3: Kernel crash dumps support. > - Week 4 - 6: Live debugging against /dev/mem support. > - Week 7 - 10: Kernel Module parsing and loading support. > - Week 11 - 12: Tests and bug fixing, and documentation work. > All features should be done by the suggested Pencils down day (Aug. 11th). > >