Date: Mon, 17 Mar 2014 20:35:30 +0100 From: Mike Ma <mikemandarine@gmail.com> To: Ed Maste <emaste@freebsd.org>, freebsd-hackers@freebsd.org Subject: GSoC proposal: kernel debugging support for LLDB Message-ID: <CA%2BcqwfckT4s3iNwaoNR5p57er7Voofo7f2VnAp%2BGpEiFE-0pJg@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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). -- Cheers, Mike
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BcqwfckT4s3iNwaoNR5p57er7Voofo7f2VnAp%2BGpEiFE-0pJg>