summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanilo G. Baio <dbaio@FreeBSD.org>2018-04-07 14:35:13 +0000
committerDanilo G. Baio <dbaio@FreeBSD.org>2018-04-07 14:35:13 +0000
commit48d9e5ceb9f098bd4e85618c243dce6fd4fbff75 (patch)
tree54d84d31eb9216a0116cda2b1d2f27a1a2c73bea
parentUpdate Mojolicious to 7.73 (diff)
Add sysutils/intel-pcm-devel: Process Count Monitor (PCM) for Intel processors
Processor Counter Monitor (PCM) is an application programming interface (API) and a set of tools based on the API to monitor performance and energy metrics of Intel(r) Core(tm), Xeon(r) and Atom(tm) processors. This requires the 'cpuctl' module to be loaded. WWW: https://github.com/opcm/pcm PR: 227317 Submitted by: Vinícius Zavam <egypcio@googlemail.com> Differential Revision: https://reviews.freebsd.org/D14986
Notes
Notes: svn path=/head/; revision=466729
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/intel-pcm-devel/Makefile29
-rw-r--r--sysutils/intel-pcm-devel/distinfo3
-rw-r--r--sysutils/intel-pcm-devel/files/patch-pci.cpp10
-rw-r--r--sysutils/intel-pcm-devel/pkg-descr7
-rw-r--r--sysutils/intel-pcm-devel/pkg-plist11
-rw-r--r--sysutils/intel-pcm/Makefile6
7 files changed, 65 insertions, 2 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 74f8b2ec3933..8df3428c9d67 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -497,6 +497,7 @@
SUBDIR += installwatch
SUBDIR += intel-nvmupdate
SUBDIR += intel-pcm
+ SUBDIR += intel-pcm-devel
SUBDIR += intel-qcu
SUBDIR += iocage
SUBDIR += iocell
diff --git a/sysutils/intel-pcm-devel/Makefile b/sysutils/intel-pcm-devel/Makefile
new file mode 100644
index 000000000000..1faae0d1ee38
--- /dev/null
+++ b/sysutils/intel-pcm-devel/Makefile
@@ -0,0 +1,29 @@
+# Created by: Adrian Chadd
+# $FreeBSD$
+
+PORTNAME= intel-pcm
+DISTVERSION= g20180319
+CATEGORIES= sysutils
+PKGNAMESUFFIX= -devel
+
+MAINTAINER= egypcio@googlemail.com
+COMMENT= Process Count Monitor (PCM) for Intel processors
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+ONLY_FOR_ARCHS= amd64 i386
+
+USES= gmake
+
+USE_GITHUB= yes
+GH_ACCOUNT= opcm
+GH_PROJECT= pcm
+GH_TAGNAME= e7e3dcc
+
+CONFLICTS_INSTALL= intel-pcm
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/*.x ${STAGEDIR}${PREFIX}/sbin
+
+.include <bsd.port.mk>
diff --git a/sysutils/intel-pcm-devel/distinfo b/sysutils/intel-pcm-devel/distinfo
new file mode 100644
index 000000000000..b68e365a8317
--- /dev/null
+++ b/sysutils/intel-pcm-devel/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1523108456
+SHA256 (opcm-pcm-g20180319-e7e3dcc_GH0.tar.gz) = ea099f2bf90ff8ac99012c5e8e462e1c8fe2ac7b2f7e6326f3e590ada2a00bc6
+SIZE (opcm-pcm-g20180319-e7e3dcc_GH0.tar.gz) = 1104097
diff --git a/sysutils/intel-pcm-devel/files/patch-pci.cpp b/sysutils/intel-pcm-devel/files/patch-pci.cpp
new file mode 100644
index 000000000000..b0d2f9413318
--- /dev/null
+++ b/sysutils/intel-pcm-devel/files/patch-pci.cpp
@@ -0,0 +1,10 @@
+--- pci.cpp.orig 2017-05-15 10:43:22 UTC
++++ pci.cpp
+@@ -17,6 +17,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+
+ #include <iostream>
+ #include <stdio.h>
++#include <strings.h> //for bzero
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
diff --git a/sysutils/intel-pcm-devel/pkg-descr b/sysutils/intel-pcm-devel/pkg-descr
new file mode 100644
index 000000000000..847c206890f2
--- /dev/null
+++ b/sysutils/intel-pcm-devel/pkg-descr
@@ -0,0 +1,7 @@
+Processor Counter Monitor (PCM) is an application programming interface (API)
+and a set of tools based on the API to monitor performance and energy metrics
+of Intel(r) Core(tm), Xeon(r) and Atom(tm) processors.
+
+This requires the 'cpuctl' module to be loaded.
+
+WWW: https://github.com/opcm/pcm
diff --git a/sysutils/intel-pcm-devel/pkg-plist b/sysutils/intel-pcm-devel/pkg-plist
new file mode 100644
index 000000000000..fb02bddb2e5f
--- /dev/null
+++ b/sysutils/intel-pcm-devel/pkg-plist
@@ -0,0 +1,11 @@
+sbin/pcm-core.x
+sbin/pcm-iio.x
+sbin/pcm-lspci.x
+sbin/pcm-memory.x
+sbin/pcm-msr.x
+sbin/pcm-numa.x
+sbin/pcm-pcie.x
+sbin/pcm-power.x
+sbin/pcm-sensor.x
+sbin/pcm-tsx.x
+sbin/pcm.x
diff --git a/sysutils/intel-pcm/Makefile b/sysutils/intel-pcm/Makefile
index 436719f9ad88..53087b067df4 100644
--- a/sysutils/intel-pcm/Makefile
+++ b/sysutils/intel-pcm/Makefile
@@ -11,15 +11,17 @@ COMMENT= Process Count Monitor (PCM) for Intel processors
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-USES= gmake
+ONLY_FOR_ARCHS= amd64 i386
-ONLY_FOR_ARCHS= i386 amd64
+USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= opcm
GH_PROJECT= pcm
GH_TAGNAME= 201710
+CONFLICTS_INSTALL= intel-pcm-devel
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/*.x ${STAGEDIR}${PREFIX}/sbin