From owner-freebsd-hackers@freebsd.org Sat Jul 25 08:54:53 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 101BF9A9180 for ; Sat, 25 Jul 2015 08:54:53 +0000 (UTC) (envelope-from hetakcoder@gmail.com) Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [IPv6:2a00:1450:400c:c05::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9D7681CE3 for ; Sat, 25 Jul 2015 08:54:52 +0000 (UTC) (envelope-from hetakcoder@gmail.com) Received: by wibxm9 with SMTP id xm9so59049704wib.1 for ; Sat, 25 Jul 2015 01:54:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=qrxLfbGGIj/nXqxS00qKqjcfS+6T6tVqVujfToNr9+Q=; b=oitm6f+99mpA0adJnJPqVmyiWa1UqwtMag6pv2XjDD3Qu20TUBahaWka0qUX0OHtYO LZ+NCF4l75b6Zs8g5nmdMSUCAuZb1O/TBXbhrS/JuP7IdlSuI5aTwXMuE0JguClOvRlU YhttsFBolSK0gRK3sAC4FkT4i8rj/oqkzN3mGooGnr6kxD49kOaQGqa2F6mZ8+or5ylq s2eAy9LaC0kkwIYGiQSUwzB1lo768mLgsSNEqQb+9fhKb0s7+3LNGVSfMkfxvv4IQ6sk puTstjZSSf3uZJFiJJEVq+MCVMfXnvmBoDqSB2QFXFxK4UU+xv8h+lpyTsC2BWI8eAlE MRlQ== X-Received: by 10.180.20.198 with SMTP id p6mr4865060wie.38.1437814490665; Sat, 25 Jul 2015 01:54:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.68.233 with HTTP; Sat, 25 Jul 2015 01:54:11 -0700 (PDT) From: HeTak Date: Sat, 25 Jul 2015 13:24:11 +0430 Message-ID: Subject: Kernel Debug Howto To: freebsd-hackers Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jul 2015 08:54:53 -0000 Hi there, I have recently started some developments on FreeBSD net section. But I am kinda new to this field. My base interest is to first understand the implementation structure via tracing the code and so. I have three major questions: 1- how to debug changes made to FreeBSD kernel? (You know, till some levels, I can even use uprintf or so, but, for example inside radix.c (where I wanna understand how a route is checked to be unique and then inserted to the tree) I can't do such checks..) 2- are there standards there for freebsd kernel developments of which I can follow so my job gets a bit simplified? (Any development guides or so?I prospect it to be some differences between system developments and normal coding, but I don't have an idea on how to get that). 3- what is the fastest way to apply changes to FreeBSD kernel? (For now, I just follow the normal build & install kernel & reboot.) Thanks in advance for your patience in answering an anxious newbie :) -- HeTak