Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 May 2012 13:53:28 +0200
From:      Fabien Thomas <thomas.fabien@gmail.com>
To:        freebsd-arm@freebsd.org
Subject:   RFC: hwpmc soft arm
Message-ID:  <7D3480C9-BFD0-416C-8A65-C31BFE5E093A@gmail.com>

next in thread | raw e-mail | index | archive | help
	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=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7D3480C9-BFD0-416C-8A65-C31BFE5E093A>