From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from gallifrey.ext.pengutronix.de ([2001:6f8:1178:4:5054:ff:fe8d:eefb] helo=localhost) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1RLGnD-0004sG-E1 for ptxdist@pengutronix.de; Tue, 01 Nov 2011 17:02:27 +0100 From: Juergen Beisert Date: Tue, 1 Nov 2011 16:42:06 +0100 MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201111011642.07425.jbe@pengutronix.de> Subject: [ptxdist] [PATCH] Add a nice little helper for memory bandwidth measurement on ARM CPUs Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de commit 7f778cacb6400af8e5d23abc85ecaf05a8761e0f Author: Juergen Beisert Date: Tue Nov 1 16:36:45 2011 +0100 Add a nice little helper for memory bandwidth measurement on ARM CPUs This tool measures the available bandwidth into the external memory and can provide valuable numbers when setting up chipset settings, priority settings or memory timings. It's specific for ARM architecture based CPUs. Signed-off-by: Juergen Beisert diff --git a/rules/arm-memspeed.in b/rules/arm-memspeed.in new file mode 100644 index 0000000..1af3ea8 --- /dev/null +++ b/rules/arm-memspeed.in @@ -0,0 +1,10 @@ +## SECTION=test_suites + +config ARM_MEMSPEED + tristate + prompt "arm-memspeed" + help + Measures the available bandwidth on ARM based CPUs into the external + RAM. It can help to check chipset and RAM timing settings. + Note: it does not work on a different architecture than ARM! + diff --git a/rules/arm-memspeed.make b/rules/arm-memspeed.make new file mode 100644 index 0000000..2690b90 --- /dev/null +++ b/rules/arm-memspeed.make @@ -0,0 +1,55 @@ +# -*-makefile-*- +# +# Copyright (C) 2011 by Juergen Beisert +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_ARM_MEMSPEED) += arm-memspeed + +# +# Paths and names +# +ARM_MEMSPEED_VERSION := 1.0 +ARM_MEMSPEED_MD5 := daf1824f1d1f0a6dd8021cc825b2a8b3 +ARM_MEMSPEED := arm-memspeed-$(ARM_MEMSPEED_VERSION) +ARM_MEMSPEED_SUFFIX := tar.bz2 +ARM_MEMSPEED_URL := http://www.kreuzholzen.de/src/arm-memspeed/$(ARM_MEMSPEED).$(ARM_MEMSPEED_SUFFIX) +ARM_MEMSPEED_SOURCE := $(SRCDIR)/$(ARM_MEMSPEED).$(ARM_MEMSPEED_SUFFIX) +ARM_MEMSPEED_DIR := $(BUILDDIR)/$(ARM_MEMSPEED) +ARM_MEMSPEED_LICENSE := GPLv2 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- +# +# autoconf +# +ARM_MEMSPEED_CONF_TOOL := autoconf + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/arm-memspeed.targetinstall: + @$(call targetinfo) + + @$(call install_init, arm-memspeed) + @$(call install_fixup, arm-memspeed,PRIORITY,optional) + @$(call install_fixup, arm-memspeed,SECTION,base) + @$(call install_fixup, arm-memspeed,AUTHOR,"Juergen Beisert ") + @$(call install_fixup, arm-memspeed,DESCRIPTION, "Memory bandwidth measurement tool") + + @$(call install_copy, arm-memspeed, 0, 0, 0755, -, /usr/bin/memspeed) + + @$(call install_finish, arm-memspeed) + + @$(call touch) + +# vim: syntax=make -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | -- ptxdist mailing list ptxdist@pengutronix.de