Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Initial check-in of FreeBSD port. #64
Closed
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ffa0ee8
Initial check-in of FreeBSD port.
b5a7e5d
no -snapshot in port name, sorry
1d6a7f0
Makefile: s/LOCALBASE/PREFIX/
8a975e6
Makefile: re-create CONFIGURE_ARGS both default and our custom args
0305429
Makefile: USE_LDCONFIG added, pkg-plist cleanup
daa3f63
Makefile: added pkgconfig to the USES list
657fc0e
Merge branch 'master' of https://github.com/performancecopilot/pcp in…
439ce21
updated to a recent shanshot
42eec5b
some sysctl patches to FreeBSD implementation
Jump to file or symbol
Failed to load files and symbols.
| @@ -0,0 +1,40 @@ | ||
| +# Created by: Markiyan Kushnir <markiyan.kushnir@gmail.com> | ||
| +# $FreeBSD:$ | ||
| +PORTNAME= pcp | ||
| +PORTVERSION= 3.11.0.1 | ||
| +PORTREVISION= 1 | ||
| +CATEGORIES= sysutils | ||
| + | ||
| +MAINTAINER= markiyan.kushnir@gmail.com | ||
| +COMMENT= Performance Co-Pilot (PCP): framework and services to support system-level performance monitoring and management. | ||
| + | ||
| +LICENSE_COMB= dual | ||
| +LICENSE= GPLv2 LGPL21 | ||
| + | ||
| +USE_GITHUB= yes | ||
| +GH_ACCOUNT= performancecopilot | ||
| +GH_TAGNAME= 0171a10d09ce4a25057a79823574a2f0b1aeb77b | ||
| + | ||
| +GNU_CONFIGURE= yes | ||
| +CONFIGURE_ARGS= --prefix=${GNU_CONFIGURE_PREFIX} \ | ||
| + --infodir=${PREFIX}/${INFO_PATH} \ | ||
| + --localstatedir=${PREFIX} \ | ||
| + --mandir=${MANPREFIX}/man \ | ||
| + --build=${CONFIGURE_TARGET} \ | ||
| + --with-logdir=/var/log/pcp \ | ||
| + --with-rundir=/var/run/pcp \ | ||
| + --with-tmpdir=/var/tmp \ | ||
| + --with-configdir=${PREFIX}/etc/pcp \ | ||
| + --with-rcdir=${PREFIX}/etc/rc.d | ||
| + | ||
| +USES= libtool gmake python bison shebangfix pkgconfig | ||
| + | ||
| +MAKEFILE= GNUmakefile | ||
| +ALL_TARGET= default | ||
| +MAKE_ENV= DIST_ROOT=${STAGEDIR} | ||
| + | ||
| +USE_LDCONFIG= yes | ||
| + | ||
| +NO_MTREE= yes | ||
| + | ||
| +.include <bsd.port.mk> |
| @@ -0,0 +1,2 @@ | ||
| +SHA256 (performancecopilot-pcp-3.11.0.1-0171a10d09ce4a25057a79823574a2f0b1aeb77b_GH0.tar.gz) = e3397da062af8529043ec1bd903314bbed4690f6eccd8c7da19cd3f874c5e6fd | ||
| +SIZE (performancecopilot-pcp-3.11.0.1-0171a10d09ce4a25057a79823574a2f0b1aeb77b_GH0.tar.gz) = 17748747 |
| @@ -0,0 +1,18 @@ | ||
| +--- src/include/pcp.env | ||
| ++++ src/include/pcp.env | ||
| +@@ -84,14 +84,7 @@ _get_pids_by_name() | ||
| + # or ends in /$1 ... the matching uses sed's regular expressions, | ||
| + # so passing a regex into $1 will work. | ||
| + | ||
| +- $PCP_PS_PROG $PCP_PS_ALL_FLAGS \ | ||
| +- | sed -n \ | ||
| +- -e 's/$/ /' \ | ||
| +- -e 's/[ ][ ]*/ /g' \ | ||
| +- -e 's/^ //' \ | ||
| +- -e 's/^[^ ]* //' \ | ||
| +- -e "/[0-9][:\.][0-9][0-9] *[^ ]*\/$1 /s/ .*//p" \ | ||
| +- -e "/[0-9][:\.][0-9][0-9] *$1 /s/ .*//p" | ||
| ++ pgrep -f $1 | ||
| + } | ||
| + | ||
| + _get_pids_by_args() |
| @@ -0,0 +1,21 @@ | ||
| +--- src/libpcp/src/check-statics 2016-01-26 16:49:26.300621000 +0200 | ||
| ++++ build/freebsd/work/pcp-cf5e23a93d88420bca29b5be206b800845e55546/src/libpcp/src/check-statics 2016-02-01 14:38:40.660590000 +0200 | ||
| +@@ -452,7 +452,7 @@ | ||
| + -e '/ s .*_\.[0-9][0-9]*$/d' \ | ||
| + -e '/ s LC[0-9][0-9]*$/d' \ | ||
| + -e '/ s L_\.str[0-9][0-9]*$/d' -e '/ s L_\.str$/d' \ | ||
| +- -e '/ r \.L\.str[0-9][0-9]*$/d' -e '/ r \.L\.str$/d' \ | ||
| ++ -e '/ r \.L\.str\.[0-9][0-9]*$/d' -e '/ r \.L\.str[0-9][0-9]*$/d' -e '/ r \.L\.str$/d' \ | ||
| + -e '/ s L___func__\./d' \ | ||
| + -e '/ r \.LCPI./d' \ | ||
| + -e '/ s l_switch\./d' \ | ||
| +@@ -463,7 +463,9 @@ | ||
| + -e 's/s _glib_relative_date\./s /' \ | ||
| + -e '/ s EH_/d' \ | ||
| + -e '/ b \.bss/d' \ | ||
| ++ -e '/ b tbss/d' \ | ||
| + -e '/ d \.data/d' \ | ||
| ++ -e '/ d tdata/d' \ | ||
| + -e '/ r \.rdata/d' \ | ||
| + -e '/ r \.eh_frame/d' \ | ||
| + -e '/ r __PRETTY_FUNCTION__.[0-9][0-9]*$/d' \ |
| @@ -0,0 +1,13 @@ | ||
| +diff --git a/src/perl/MMV/GNUmakefile b/src/perl/MMV/GNUmakefile | ||
| +index ebeb208..1dd92de 100644 | ||
| +--- src/perl/MMV/GNUmakefile | ||
| ++++ src/perl/MMV/GNUmakefile | ||
| +@@ -59,7 +59,7 @@ ifeq "$(PACKAGE_DISTRIBUTION)" "openbsd" | ||
| + else | ||
| + $(call PERL_GET_FILELIST,install,$(TOPDIR)/perl-pcp-mmv.list,MMV) | ||
| + endif | ||
| +- find $$DIST_ROOT -name server.pl -exec chmod 755 '{}' ';' | ||
| ++ #find $$DIST_ROOT -name server.pl -exec chmod 755 '{}' ';' | ||
| + endif | ||
| + | ||
| + install_perl: |
| @@ -0,0 +1,34 @@ | ||
| +diff --git a/src/pmdas/freebsd/freebsd.c b/src/pmdas/freebsd/freebsd.c | ||
| +index c3284bf..b1ca658 100644 | ||
| +--- src/pmdas/freebsd/freebsd.c | ||
| ++++ src/pmdas/freebsd/freebsd.c | ||
| +@@ -109,7 +109,7 @@ static pmdaMetric metrictab[] = { | ||
| + PMDA_PMUNITS(0,1,0,0,PM_TIME_MSEC,0) } }, | ||
| + { (void *)"kernel.all.hz", | ||
| + { PMDA_PMID(CL_SYSCTL,13), PM_TYPE_U32, PM_INDOM_NULL, PM_SEM_DISCRETE, | ||
| +- PMDA_PMUNITS(0,1,0,0,PM_TIME_USEC,0) } }, | ||
| ++ PMDA_PMUNITS(0,-1,0,0,PM_TIME_SEC,0) } }, | ||
| + { (void *)"hinv.cpu.vendor", | ||
| + { PMDA_PMID(CL_SYSCTL,15), PM_TYPE_STRING, PM_INDOM_NULL, PM_SEM_DISCRETE, | ||
| + PMDA_PMUNITS(0,0,0,0,0,0) } }, | ||
| +@@ -176,7 +176,7 @@ static pmdaMetric metrictab[] = { | ||
| + { PMDA_PMID(CL_SPECIAL,6), PM_TYPE_U32, PM_INDOM_NULL, PM_SEM_INSTANT, | ||
| + PMDA_PMUNITS(1,0,0,PM_SPACE_KBYTE,0,0) } }, | ||
| + { (void *)"mem.util.bufmem", | ||
| +- { PMDA_PMID(CL_SPECIAL,7), PM_TYPE_U32, PM_INDOM_NULL, PM_SEM_INSTANT, | ||
| ++ { PMDA_PMID(CL_SPECIAL,7), PM_TYPE_U64, PM_INDOM_NULL, PM_SEM_INSTANT, | ||
| + PMDA_PMUNITS(1,0,0,PM_SPACE_KBYTE,0,0) } }, | ||
| + { (void *)"mem.util.cached", | ||
| + { PMDA_PMID(CL_SPECIAL,8), PM_TYPE_U32, PM_INDOM_NULL, PM_SEM_INSTANT, | ||
| +@@ -596,9 +596,9 @@ freebsd_fetchCallBack(pmdaMetric *mdesc, unsigned int inst, pmAtomValue *atom) | ||
| + break; | ||
| + | ||
| + case 7: /* mem.util.bufmem */ | ||
| +- sts = do_sysctl(mp, sizeof(atom->ul)); | ||
| ++ sts = do_sysctl(mp, sizeof(atom->ull)); | ||
| + if (sts > 0) { | ||
| +- atom->ul = *((__uint32_t *)mp->m_data) / 1024; | ||
| ++ atom->ull = *((__uint64_t *)mp->m_data) / 1024; | ||
| + sts = 1; | ||
| + } | ||
| + break; |
| @@ -0,0 +1,10 @@ | ||
| +--- src/pmdas/root/agent.c | ||
| ++++ src/pmdas/root/agent.c | ||
| +@@ -13,6 +13,7 @@ | ||
| + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
| + * for more details. | ||
| + */ | ||
| ++#include <sys/stat.h> | ||
| + #include "pmapi.h" | ||
| + #include "impl.h" | ||
| + #include "root.h" |
| @@ -0,0 +1,15 @@ | ||
| +Performance Co-Pilot (PCP) provides a framework and services to support | ||
| +system-level performance monitoring and management. It presents a unifying | ||
| +abstraction for all of the performance data in a system, and many tools | ||
| +for interrogating, retrieving and processing that data. | ||
| + | ||
| +PCP is a feature-rich, mature, extensible, cross-platform toolkit | ||
| +supporting both live and retrospective analysis. The distributed PCP | ||
| +architecture makes it especially useful for those seeking centralized | ||
| +monitoring of distributed processing. | ||
| + | ||
| +See the INSTALL file for build, installation and configuration steps. | ||
| +For more information and details on how to contribute to the PCP project | ||
| +visit http://www.pcp.io | ||
| + | ||
| +WWW: http://www.pcp.io |
Oops, something went wrong.