diff options
Diffstat (limited to 'sys-apps/intel-performance-counter-monitor')
-rw-r--r-- | sys-apps/intel-performance-counter-monitor/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/intel-performance-counter-monitor/intel-performance-counter-monitor-2.10.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/sys-apps/intel-performance-counter-monitor/Manifest b/sys-apps/intel-performance-counter-monitor/Manifest index fd3bb760cf56..214b9ec539ef 100644 --- a/sys-apps/intel-performance-counter-monitor/Manifest +++ b/sys-apps/intel-performance-counter-monitor/Manifest @@ -1 +1,2 @@ +DIST IntelPerformanceCounterMonitor-PCM-V2.10.zip 950922 SHA256 46897ab2a8627ad5a58f05b19746b00b4f95126e8abccd9bed978b1f2675fc19 SHA512 a9a219495d9e99f8a8ffdae729c56e565c63856b81d71d7d188db2543d8d656535bb88f5701351a41aee948aeeeae304951cdf99dac7e6628bd43ba79bda757a WHIRLPOOL f0a68ad6268ee8a92bc46483e52365aeeac48dadbd6e0d3e776859bd6f6d715b76ac50bb4ae5dbb525fad6f1bbd006bb72eabb510de1c802e1aaad1ab413d995 DIST IntelPerformanceCounterMonitorV2.8.zip 931374 SHA256 3c51b2fc7b772f16f746ea6fda0471d280c0f27bfd52fa51dd78433ca5a6ca6a SHA512 7dbba8c051663a315dcf79224502d76cb4217a483a4b322f0be938e06b988e290a83b345cb8c60645aceb8283555067c2db529179782432ff77fddd538ef8b8f WHIRLPOOL 159015a5d37c7f64813a31892b615443471571e3d3bdf2d23cc4fba08819142bd4d7bf7565a9e15618ae6825f4c97cb630bb49aeb7bfbf1e5819960b99911905 diff --git a/sys-apps/intel-performance-counter-monitor/intel-performance-counter-monitor-2.10.ebuild b/sys-apps/intel-performance-counter-monitor/intel-performance-counter-monitor-2.10.ebuild new file mode 100644 index 000000000000..6ec147277a04 --- /dev/null +++ b/sys-apps/intel-performance-counter-monitor/intel-performance-counter-monitor-2.10.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit versionator fcaps + +MY_PN="IntelPerformanceCounterMonitor-PCM" +MY_PV="V2.10" +MY_P="${MY_PN}-${MY_PV}.zip" + +DESCRIPTION="Intel Performance Counter Monitor - A better way to measure CPU utilization" +HOMEPAGE="https://software.intel.com/en-us/articles/intel-performance-counter-monitor-a-better-way-to-measure-cpu-utilization" +SRC_URI="https://dev.gentoo.org/~idella4/distfiles/${MY_P}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=">=sys-devel/gcc-4:*" + +DEPEND="${RDEPEND} + sys-apps/sed" + +CONFIG_CHECK="~X86_MSR ~PERF_EVENTS" +ERROR_X86_MSR="Intel Performance Counter Monitor, requires X86_MSR to be set in kernel config." + +S="${WORKDIR}/${MY_PN}-${MY_PV}" + +src_prepare() { + sed -i 's/^#CXXFLAGS += -DPCM_USE_PERF/CXXFLAGS += -DPCM_USE_PERF/' Makefile || die +} + +src_install() { + exeinto /usr/bin + newexe pcm.x pcm + newexe pcm-memory.x pcm-memory + newexe pcm-msr.x pcm-msr + newexe pcm-numa.x pcm-numa + newexe pcm-pcie.x pcm-pcie + newexe pcm-power.x pcm-power + newexe pcm-sensor.x pcm-sensor + newexe pcm-tsx.x pcm-tsx +} + +pkg_postinst() { + fcaps CAP_SYS_RAWIO usr/bin/pcm + fcaps CAP_SYS_RAWIO usr/bin/pcm-{memory,msr,numa,pcie,power,tsx} +} |