From owner-freebsd-arm@freebsd.org Mon Jan 25 18:07:02 2016 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 DF35D718E for ; Mon, 25 Jan 2016 18:07:01 +0000 (UTC) (envelope-from zbb@semihalf.com) Received: from mail-lb0-x22a.google.com (mail-lb0-x22a.google.com [IPv6:2a00:1450:4010:c04::22a]) (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 682ADFC8 for ; Mon, 25 Jan 2016 18:07:01 +0000 (UTC) (envelope-from zbb@semihalf.com) Received: by mail-lb0-x22a.google.com with SMTP id bc4so78583950lbc.2 for ; Mon, 25 Jan 2016 10:07:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=KDWVVju0ex0q4MrxVcpZNTVs0fhv8DZVm1ELFqMGpDY=; b=GFyRFHdB5hBrBVFFQngK9k1phh3xjO0VxglH23lGZcqiFeQG8RN/0hrqqzp49EuEXr cO5bZIKmx2M5i+WlddgN4l2kSUNw9sk7tlqyRMXTaDzy6g9D5TFmR72DChtSHPamSfAT aegl2W8DDylw+TG0aaulvr6383ZZKLV++QXnwBBtNBXvyTjZmYLTKWCXiCF1u7e+hWbp NSZiwc5XG5+1OQ/JbdKTNMFpyRfxlZC8psJfgnyWPfygInJjDbeMyg/qC+v48EDtHOdk 5hrnrcESOZyPxR827+zeQ2UDOUO7B8HXqXHszeslclX2DiS1Hb6l+u1RpzhBPFmz++gA 035w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=KDWVVju0ex0q4MrxVcpZNTVs0fhv8DZVm1ELFqMGpDY=; b=dFkz6GwDas6y1r5f4Ku0aREIodTorMdjzo6Wq0rVWmJBbbyJFO2zfWMX20llgTNE3i PhlgIFlw6g3p9v9j5r79C1QUpWUdr4hJ/xktYAz0Dw1tyUsxVDEPE2bMxJ7ANFMg4lqK VG+rsGn+dej8ZU66u7x8Z9mqFT86sOHYu9gpzMMN/6Clo3a18EOTRgYjszbngGOjZiUb pXxrf9Q6RGDdCYmrju6I9rfjocEYeNN9xcglZ7BI4TRbK472iZXE55mAPP7tI1QhJ3eY yNpi0k0xNzFwVzWtkzIIdg/qipECfRFT4mlivJxfBD2TTt+vmuamAqmQHl2Ga5OConJH +9FA== X-Gm-Message-State: AG10YOQoT2iDII5cZvjMIk6OEZyuSYrVn2zl/Hv40o/AYrtop6IRbVjuk5W7JUkT6tpm+mfJktGCDFu7TafDkA== X-Received: by 10.112.142.101 with SMTP id rv5mr6694116lbb.101.1453745218379; Mon, 25 Jan 2016 10:06:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.24.93 with HTTP; Mon, 25 Jan 2016 10:06:38 -0800 (PST) In-Reply-To: References: From: Zbigniew Bodek Date: Mon, 25 Jan 2016 19:06:38 +0100 Message-ID: Subject: Re: RFC: HW watchpoints and single stepping for ARMv6/v7 To: "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, 25 Jan 2016 18:07:02 -0000 Hello, Thank you all for testing. Went upstream: r294740 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 >