From owner-freebsd-arm@freebsd.org Mon Nov 30 14:41:56 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 790FCA3C78D for ; Mon, 30 Nov 2015 14:41:56 +0000 (UTC) (envelope-from zbb@semihalf.com) Received: from mail-lf0-x231.google.com (mail-lf0-x231.google.com [IPv6:2a00:1450:4010:c07::231]) (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 124461EDF for ; Mon, 30 Nov 2015 14:41:55 +0000 (UTC) (envelope-from zbb@semihalf.com) Received: by lffu14 with SMTP id u14so199805739lff.1 for ; Mon, 30 Nov 2015 06:41:54 -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=LxBlWbpfFPfecA4AFy59i107Zu+qs5jcalmsv88JYyI=; b=Pw4aaxS2Xboc+WKyzXfxlwaWwY9OMWXCZd+L2gSyx6nFS8irX6deWsQ8ISpDFQghYS jyzvAaXD2sxJG5dGnBydJyGwCCzL5rofqKxgeFIlazEnAHYDnt0lI82M70eNBo5rxLII 4GS/cYZDgeaCgdQbGZHmFtp4WGCAIsWEovvq6Oxnqobh8finJ5ggjGdsz9VEaqBtdR1y gV6Tzp3capGCe2XprSEXRsc1UWAXTNa/sYGBErIiiSp2D8IwuyvMDYkQDgwMDCqwxS7/ qhZ5z43xSj48SJlQLFPgefqQzjR3pcnQxD2BgHoHYclJlPhQmLcKCmSCnYduCtArIFhY Aang== 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=LxBlWbpfFPfecA4AFy59i107Zu+qs5jcalmsv88JYyI=; b=FDOsE6mQ6jYH89ft/yvPs8fgoRpuTmO/roTBZDv56xCH/3m+oMw/k7aeTAAPWPCV5s QaScp87U6Mx6NVSQ3YYJl8HfU0hPLHV/alASe4ceezuTr3+CYD5WOhr8ASafX99ubzU4 kAOIeCLtWdZxG95GGJpPqcIEcoxVy66aK1gVaWlmaV97LPh2cLjuJC/eA/CcwCc5dPMg 8ZwTgWsjxs9656/4Lqerk7g7reI/bd7ZdTATT4pmA1kSne1FVXX54qEZeZ8xCVb3Secd bfiDUanEnwfEmExncTiNrMdkWenA4z9dT3cgl1zh0DyoLuD4sPD1ZpPM/bud5f52S5w2 yuUQ== X-Gm-Message-State: ALoCoQkF7nViYgJD3EnHiUxPo6jzRY87sJwRaT6fWAJ3tSW6fhUWacKDvSoIyUWY2Pxq85aEJ1kb X-Received: by 10.25.167.209 with SMTP id q200mr25930160lfe.15.1448894513862; Mon, 30 Nov 2015 06:41:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.76.65 with HTTP; Mon, 30 Nov 2015 06:41:34 -0800 (PST) In-Reply-To: References: From: Zbigniew Bodek Date: Mon, 30 Nov 2015 15:41:34 +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-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 14:41:56 -0000 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