From owner-freebsd-fs@freebsd.org Fri Aug 25 01:03:27 2017 Return-Path: Delivered-To: freebsd-fs@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 15B87DEC32D for ; Fri, 25 Aug 2017 01:03:27 +0000 (UTC) (envelope-from aijazbaig1@gmail.com) Received: from mail-io0-x234.google.com (mail-io0-x234.google.com [IPv6:2607:f8b0:4001:c06::234]) (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 CF2796D52A; Fri, 25 Aug 2017 01:03:26 +0000 (UTC) (envelope-from aijazbaig1@gmail.com) Received: by mail-io0-x234.google.com with SMTP id s101so3719062ioe.0; Thu, 24 Aug 2017 18:03:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=nRwLU8S71qbkBN+KPmnDdo+HKrqfSMGaDFn5uAcvlMo=; b=WrVHXhxxOgKxjlIZrAWq7n7mGS3h2jQT/g3Zqz57WhfUxCCqcvh1icPJ6U0EzvCgnR lDSsaTXPZyx8xmRn7aK1EVDOVU55wVuKC2Xxbjs0NIh4z37Adt3ywuMMlah7CVdA317p WMIjSlx0yd5Oe+XufTm4HbfBW3uj+usl1UY12TkVGb7ckeleh5/WP2z4I+Q9X1LS8cVe DOdDXK8bEaZW9aGo/hks7LT5PSCsisGHwbNCkxi6xSXrjWi4CHGX5lFn2fXSSDMLzICl 3bFPwlLPgedN9lcrNr8/D90GzHu41pMD46Z3tJ+wTmlhZy+DHXg6il1c3HKBtZXFRx4k qvkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=nRwLU8S71qbkBN+KPmnDdo+HKrqfSMGaDFn5uAcvlMo=; b=B3WaQCJSWpDbxXhXdvY+dfkHo4IpKmXVl8sak5J617CeTL2/6dfHP8jbJ9hEMi4NIC 3FQoPLf88QUh10FqQkzaKT/i6e/RUAzCH8R6d3DjCEgBUNqxw1PIxfPTJQnnIshanU5p amgQcGtE7QDj/x1Uz+khRtSYF8EeBOLw6MfIgd28+buONzKJW/rnZAWiy4soCDQ6wdvN dy6JpoJar5KgMFa8joMgL+aV5qRYybwm1d8oraT4njt6Yx92jvbDZ5FNSh9lo/ou7I9+ +Oe1ss65gwtUrSs24YqYFqVNqKvhmQ5PoLDgjHdV3V2/RWbJmOsl4twSNZZ5FQ47SWch Oiyg== X-Gm-Message-State: AHYfb5ji0mdTzRTzVz+r2Wpk39V0t2n/adLCZHuvY0oPm8AbwEWCrOgE RAhQ8EgOwzUu6VmVi8sbyj0Y75RVog== X-Received: by 10.107.189.7 with SMTP id n7mr6627862iof.36.1503623005641; Thu, 24 Aug 2017 18:03:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.2.200 with HTTP; Thu, 24 Aug 2017 18:03:25 -0700 (PDT) In-Reply-To: <201708241830.v7OIU0nj018164@chez.mckusick.com> References: <046d8df4-71a6-65f5-18ad-50589d6d466d@freebsd.org> <201708241830.v7OIU0nj018164@chez.mckusick.com> From: Aijaz Baig Date: Fri, 25 Aug 2017 06:33:25 +0530 Message-ID: Subject: Re: Tips on remote debugging for filesystem code To: Kirk McKusick Cc: Julian Elischer , freebsd-fs@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Aug 2017 01:03:27 -0000 Yes please I would love to hear about this as well. Nonetheless if any one of you Kirk or Julian could help me get started a bit with what how you guys use it (and those scripts that Kirk talks about), it would be really nice. By the way is this bhyve the only way to go for fs code debugging? On Fri, Aug 25, 2017 at 12:00 AM, Kirk McKusick wrote: > > To: Aijaz Baig , freebsd-fs@freebsd.org > > Subject: Re: Tips on remote debugging for filesystem code > > From: Julian Elischer > > Date: Thu, 24 Aug 2017 16:24:50 +0800 > > > > On 24/8/17 1:40 pm, Aijaz Baig wrote: > > > >> ... > >> How do you guys normally do it? Keen to hear tips and best practices > > > > I have had more success recently using BHype to make a Virtual FreeBSD > > machine and connecting to it using the built-in gdb interface. > > > > Firstly it is easier than a serial interface and secondly you don't > > need two machines. > > Is there documentation that describes how to do this? I have been using > a patched up set of scripts provided by John Baldwin a couple of years > ago to use kgdb with a bhyve VM. But if there is an existing way to do > it now, I would rather switch to it. > > Kirk McKusick > -- Best Regards, Aijaz Baig