From owner-freebsd-arm@freebsd.org Mon Nov 30 18:03:22 2015 Return-Path: Delivered-To: freebsd-arm@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 AF4C6A3D55B for ; Mon, 30 Nov 2015 18:03:22 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-vk0-x236.google.com (mail-vk0-x236.google.com [IPv6:2607:f8b0: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 65A13190F for ; Mon, 30 Nov 2015 18:03:22 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by vkha189 with SMTP id a189so107121410vkh.2 for ; Mon, 30 Nov 2015 10:03:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=x0qtnQ7EnI7z8dBLRnNgowJDQtSNpGGuP3V92/6MP/k=; b=kKAvnT9+wHstCvvt6SpuRrAR76Pb+I+0QjiEfPy3s75BpC2XzPpwFJvLIEuFpuqhO6 nm0fExVCWudIszb2Bp9GNh+sdQghDxuz9TKNX4kAduoVN4qlN5YkbveeZnP4QsRTCVmh iThhg0AdHE1wv/aWUQv7LeQaPUMM/iV5PL9kc5or1ejzrFYilvFWYPmVmszzWbNYfMPs tpHnJJXsV2g3UtgkIGFiVpr4hVrZyYkgWNeL5kiXGWvPtqpfv89tLNh4X/pe9zQR0yIO eolDFkFB5O7Zg9Fe45CGpnW+vE9p8DH1TTEC5azI9R+76G+mtyPgs9LdbQTLHELbCm80 XqfA== MIME-Version: 1.0 X-Received: by 10.31.134.3 with SMTP id i3mr54998846vkd.14.1448906601129; Mon, 30 Nov 2015 10:03:21 -0800 (PST) Received: by 10.31.47.137 with HTTP; Mon, 30 Nov 2015 10:03:20 -0800 (PST) In-Reply-To: References: Date: Mon, 30 Nov 2015 10:03:20 -0800 Message-ID: Subject: Re: RFC: HW watchpoints and single stepping for ARMv6/v7 From: Russell Haley To: Zbigniew Bodek Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Nov 2015 18:03:22 -0000 Cool. I have a hummingboard (iMX6). Do I need to know what I'm looking for or am I just making sure it doesn't explode? Russ On Mon, Nov 30, 2015 at 6:41 AM, Zbigniew Bodek wrote: > Hello again, > > It seems that this is the last chance to test this patch on other > platforms than Rpi, Arndale and Pandaboard. > Please check out this https://reviews.freebsd.org/D4037 > I will be grateful if you had a chance to test this on something else > than the above mentioned. > > Best regards > zbb > > 2015-10-31 17:21 GMT+01:00 Zbigniew Bodek : > > Hello again, > > > > I should have post some more information about testing this patch. Here > it goes: > > ------------------------------------------------------------------ > > One can enter kernel debugger by one of those: > > > > press: ~, ctrl + b > > or > > type: sysctl -w debug.kdb.enter=1 > > > > You can then set a HW watchpoint on any memory location at
> > by invoking following command in KDB: > > db> hwatch
, > > > > parameter is optional, the default is 4. > > > > To display watchpoints: > > db> show watch > > > > To remove watchpoint: > > db> dhwatch
> > > > Press "c" to continue. > > > > ------------------------------------------------------------------ > > While in KDB you can step through the kernel code using "s" BUT you > > need to apply a dependent patch: https://reviews.freebsd.org/D4036 > > otherwise you will cause the kernel panic. > > > > Thanks again > > zbb > > > > 2015-10-30 17:25 GMT+01:00 Zbigniew Bodek : > >> Hello, > >> > >> We would like to add HW watchpoints and HW single step support to ARMv6 > kernel. > >> Please check this review: https://reviews.freebsd.org/D4037 > >> > >> Since there are differences between debug architectures on ARM (v6, > >> v6.1, v7, v7.1) I would like to ask for some testing on your machines. > >> I was able to test this on Pandaboard and Arndale but please check > >> whether this works on your targets as well. > >> > >> Rise a red flag if you see any issues or in worst case scenario - > >> "undefined instruction" error. > >> > >> Best regards > >> zbb > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >