diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2009-10-30 19:30:24 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2009-10-30 19:30:24 +0000 |
commit | b516404be7304cd0ec42dfc10ce75e9ddad631d1 (patch) | |
tree | cfa7f903e0f687dbacfb8a1ca6c63b30db10e73b /dev-util | |
parent | amd64/x86 stable, bug #290733 (diff) | |
download | historical-b516404be7304cd0ec42dfc10ce75e9ddad631d1.tar.gz historical-b516404be7304cd0ec42dfc10ce75e9ddad631d1.tar.bz2 historical-b516404be7304cd0ec42dfc10ce75e9ddad631d1.zip |
Initial import of the performance counter userland utility.
Package-Manager: portage-2.2_rc46/cvs/Linux x86_64
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/perf/ChangeLog | 10 | ||||
-rw-r--r-- | dev-util/perf/Manifest | 14 | ||||
-rw-r--r-- | dev-util/perf/metadata.xml | 16 | ||||
-rw-r--r-- | dev-util/perf/perf-2.6.31.ebuild | 79 |
4 files changed, 119 insertions, 0 deletions
diff --git a/dev-util/perf/ChangeLog b/dev-util/perf/ChangeLog new file mode 100644 index 000000000000..b28df263c5fa --- /dev/null +++ b/dev-util/perf/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-util/perf +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/ChangeLog,v 1.1 2009/10/30 19:30:24 flameeyes Exp $ + +*perf-2.6.31 (30 Oct 2009) + + 30 Oct 2009; Diego E. Pettenò <flameeyes@gentoo.org> +perf-2.6.31.ebuild, + +metadata.xml: + Initial import of the performance counter userland utility. + diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest new file mode 100644 index 000000000000..2604669c8d87 --- /dev/null +++ b/dev-util/perf/Manifest @@ -0,0 +1,14 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +DIST linux-2.6.31.tar.bz2 61494822 RMD160 c0d88e63740abf0d4f9d82557260a31643f5a01b SHA1 c6e0e6b473ba2b80d164e37cfabf294e783c03d9 SHA256 0acd83f7b85db7ee18c2b0b7505e1ba6fd722c36f49a8870a831c851660e3512 +EBUILD perf-2.6.31.ebuild 2034 RMD160 af52f4c05909134364dff7a4492964b77f6f0265 SHA1 982454b0305613f772645050ffc970db83178ac7 SHA256 4c400cd01ccdf28c8406520a88a861054b719df34dd7c1c633341c7f58250cf1 +MISC ChangeLog 387 RMD160 20263c2f098790270429be94d705dff919dbd40e SHA1 632241a2dd02ddfdf417ea7ca360ece7da23e22b SHA256 38c9f01277a80a5a10f981919d8d7a5a309596c9d6d70ab5f87f17752d139831 +MISC metadata.xml 498 RMD160 1480414657051f164fddc85f157441befde54c2e SHA1 96ffea9b90dc3e0a53ef3a1084fa6df1ec00e580 SHA256 bcb0a6db4a990d7b689bd8736f9cefe021325a408f7e71e383a92e01f70c4426 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.13 (GNU/Linux) + +iEYEARECAAYFAkrrPtwACgkQAiZjviIA2XiG6QCdHkWErjXZjyBS3FjSnNeINPjI +mnwAn27UIgn1wH+PApSrh0h6IQhdsKTK +=n7d0 +-----END PGP SIGNATURE----- diff --git a/dev-util/perf/metadata.xml b/dev-util/perf/metadata.xml new file mode 100644 index 000000000000..a946a6d4dd47 --- /dev/null +++ b/dev-util/perf/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>flameeyes@gentoo.org</email> + </maintainer> + <use> + <flag name="demangle"> + Enable C++ symbol name demangling, using libbfd from + <pkg>sys-devel/binutils</pkg>. When this flag is enabled, the + package will have to be rebuilt after every version bump of + binutils. + </flag> + </use> +</pkgmetadata> diff --git a/dev-util/perf/perf-2.6.31.ebuild b/dev-util/perf/perf-2.6.31.ebuild new file mode 100644 index 000000000000..c43b94d35291 --- /dev/null +++ b/dev-util/perf/perf-2.6.31.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/perf-2.6.31.ebuild,v 1.1 2009/10/30 19:30:24 flameeyes Exp $ + +EAPI=2 + +inherit versionator eutils toolchain-funcs linux-info + +MY_PV="${PV/_/-}" +MY_PV="${MY_PV/-pre/-git}" + +LINUX_SOURCES=linux-${MY_PV}.tar.bz2 + +DESCRIPTION="Userland tools for Linux Performance Counters" +HOMEPAGE="http://perf.wiki.kernel.org/" +SRC_URI="mirror://kernel/linux/kernel/v$(get_version_component_range 1-2)/${LINUX_SOURCES}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+demangle" + +DEPEND="demangle? ( sys-devel/binutils ) + dev-libs/elfutils" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/linux-${MY_PV}/tools/perf" + +CONFIG_CHECK="PERF_EVENTS KALLSYMS" + +src_unpack() { + # We expect the tar implementation to support the -j option (both + # GNU tar and libarchive's tar support that). + tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} linux-${MY_PV}/{tools/perf,include,lib,"arch/*/include"} + + [[ -n ${A/${LINUX_SOURCES}/} ]] && unpack ${A/${LINUX_SOURCES}/} +} + +src_prepare() { + # Drop some upstream too-developer-oriented flags and fix the + # Makefile in general + sed -i \ + -e 's:-Werror::' \ + -e 's:-ggdb3::' \ + -e 's:-fstack-protector-all::' \ + -e 's:^LDFLAGS =:EXTLIBS +=:' \ + -e '/-x c - /s:\$(ALL_LDFLAGS):\0 $(EXTLIBS):' \ + -e '/^ALL_CFLAGS =/s:$: $(CFLAGS_OPTIMIZE):' \ + -e '/^ALL_LDFLAGS =/s:$: $(LDFLAGS_OPTIMIZE):' \ + "${S}"/Makefile +} + +src_compile() { + local makeargs= + + use demangle || makeargs="${makeargs} NO_DEMANGLE= " + + emake ${makeargs} \ + CC="$(tc-getCC)" AR="$(tc-getAR)" \ + prefix="/usr" bindir_relative="sbin" \ + CFLAGS_OPTIMIZE="${CFLAGS}" \ + LDFLAGS_OPTIMIZE="${LDFLAGS}" || die +} + +src_test() { + : +} + +src_install() { + # Don't use make install or it'll be re-building the stuff :( + dosbin perf || die + + dodoc CREDITS || die +} + +pkg_postinst() { + elog "We currently provide no documentation with perf; we're sorry" + elog "but there will be no man page nor --help output." +} |