From owner-freebsd-arm@FreeBSD.ORG Tue May 15 11:53:31 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E351E1065673 for ; Tue, 15 May 2012 11:53:31 +0000 (UTC) (envelope-from thomas.fabien@gmail.com) Received: from work.netasq.com (gwlille.netasq.com [91.212.116.1]) by mx1.freebsd.org (Postfix) with ESMTP id A693E8FC08 for ; Tue, 15 May 2012 11:53:30 +0000 (UTC) Received: from [10.2.1.1] (unknown [10.2.1.1]) by work.netasq.com (Postfix) with ESMTPSA id 72D1C27042CB for ; Tue, 15 May 2012 13:55:06 +0200 (CEST) From: Fabien Thomas Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Tue, 15 May 2012 13:53:28 +0200 Message-Id: <7D3480C9-BFD0-416C-8A65-C31BFE5E093A@gmail.com> To: freebsd-arm@freebsd.org Mime-Version: 1.0 (Apple Message framework v1278) X-Mailer: Apple Mail (2.1278) Subject: RFC: hwpmc soft arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Fabien Thomas List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2012 11:53:32 -0000 Hi, This patch add sampling support for arm using soft PMC. At this time only with one level (no backtrace), i'm planning to add it with ddb code as a base but if some arm guru can give me some pointer it = will help. The patch is tested on 8.3 but should works on head. patch: http://freebsd.org/~fabient/patch-hwpmc_arm_rev1 add to your kernel conf: options HWPMC_HOOKS device hwpmc # can be added as a module options DEVICE_POLLING sample capture during buildworld: kldload hwpmc # if build as a module pmcstat -Sclock.hard -T -w4 http://freebsd.org/~fabient/pmc_arm.png Fabien=