Important Note:
I've fixed __thread and made this conditional, added our own thread
private data support when needed, made run-time mutex initialization
work for platforms that cannot do compile-time initialization for
recursive mutexes and fixed the unholy strerror_r() mess.
Much of this will overlap what Nathan's been doing, and I'm off now for
2 weeks ... I'll reconcile the merge conflicts (that I expect) with
Nathan's changes in early April.
Cheers, Ken.
Changes committed to git://oss.sgi.com/kenj/pcp.git pcp4
(note this is the pcp4 branch)
CHANGELOG | 16 +
build/rpm/pcp.spec.in | 4
build/tar/GNUmakefile | 14 -
build/tar/postinstall | 2
build/tar/preinstall | 2
configure.in | 100 ++++++---
debian/changelog | 2
src/cpan/.gitignore | 2
src/cpan/LogImport/GNUmakefile | 2
src/cpan/LogSummary/GNUmakefile | 2
src/cpan/MMV/GNUmakefile | 2
src/cpan/PMDA/GNUmakefile | 2
src/include/builddefs.in | 13 -
src/include/pcp/platform_header.h.in | 5
src/include/pcp/pmapi.h | 5
src/libpcp/src/GNUmakefile | 5
src/libpcp/src/access.c | 3
src/libpcp/src/auxconnect.c | 3
src/libpcp/src/check-statics | 63 ++++-
src/libpcp/src/config.c | 2
src/libpcp/src/connect.c | 2
src/libpcp/src/connectlocal.c | 1
src/libpcp/src/context.c | 58 +++--
src/libpcp/src/derive.c | 113 ++++++++--
src/libpcp/src/err.c | 19 -
src/libpcp/src/events.c | 1
src/libpcp/src/internal.h | 25 ++
src/libpcp/src/interp.c | 2
src/libpcp/src/ipc.c | 9
src/libpcp/src/lock.c | 49 +++-
src/libpcp/src/logconnect.c | 4
src/libpcp/src/logportmap.c | 1
src/libpcp/src/logutil.c | 2
src/libpcp/src/optfetch.c | 3
src/libpcp/src/pdu.c | 2
src/libpcp/src/pdubuf.c | 4
src/libpcp/src/pmns.c | 13 +
src/libpcp/src/store.c | 1
src/libpcp/src/tz.c | 2
src/libpcp/src/util.c | 10
src/pmcd/rc_pcp | 17 +
src/pmdas/bonding/.gitignore | 1
src/pmdas/dbping/.gitignore | 2
src/pmdas/dtsrun/.gitignore | 3
src/pmdas/elasticsearch/.gitignore | 1
src/pmdas/elasticsearch/Remove | 10
src/pmdas/elasticsearch/pmdaelasticsearch.pl | 289 ++++++++++++++++++++++-----
src/pmdas/etw/event.c | 2
src/pmdas/gpsd/.gitignore | 1
src/pmdas/kvm/.gitignore | 1
src/pmdas/logger/event.c | 2
src/pmdas/memcache/.gitignore | 1
src/pmdas/mssql/.gitignore | 3
src/pmdas/mysql/.gitignore | 1
src/pmdas/named/.gitignore | 1
src/pmdas/netfilter/.gitignore | 1
src/pmdas/news/.gitignore | 1
src/pmdas/oracle/.gitignore | 3
src/pmdas/pdns/.gitignore | 1
src/pmdas/postfix/.gitignore | 1
src/pmdas/postgresql/.gitignore | 1
src/pmdas/rsyslog/.gitignore | 1
src/pmdas/samba/.gitignore | 1
src/pmdas/snmp/.gitignore | 4
src/pmdas/systemtap/.gitignore | 1
src/pmdas/trace/GNUmakefile | 2
src/pmdas/vmware/.gitignore | 1
src/pmdas/zimbra/.gitignore | 1
src/pmimport/iostat2pcp/.gitignore | 1
src/pmimport/mrtg2pcp/.gitignore | 1
src/pmimport/sar2pcp/.gitignore | 1
src/pmimport/sheet2pcp/.gitignore | 1
72 files changed, 714 insertions(+), 214 deletions(-)
commit 656801b9104c84b510824ed6cf51d68c3d07119e
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Sat Mar 17 06:18:01 2012 +1100
more thread-safe changes
For platforms where compile-time initialization for recursive mutexes
is not supported, we need to be more careful about capturing control
on entry to libpcp and forcing run-time intialization.
commit 7a924408e53b0d2c08872f73d209dcbeb5dbc264
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Sat Mar 17 05:14:18 2012 +1100
more threads and portability changes
Better configure.in checks for
+ __thread support in the compiler
+ presence of pthread_barrier_t and friends (not used in PCP, but
needed for PCP QA)
And resolve the strerror_r() polymorphism of return values between GNU
and POSIX/XSI [was breaking on Mac OS X]
commit 7d854d309b63b9d5eaa28e109c0cc5f7e1beacab
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Wed Mar 14 06:06:54 2012 +1100
libpcp - roll-your-own thread private data
These changes conditionally provide our own thread private data support
for C compilers that don't understand the __thread declaration ... look
for the HAVE___THREAD and PM_TPD* macros.
Tested on a Linux system (forcing both __thread and the new support), now
off to other platforms.
commit c997b56bf35c1e98543d6f28cc42a188c894545f
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Tue Mar 13 21:57:47 2012 +1100
perl housekeeping - add to LDIRT
Some builds leave *.yml and *.json temporary files ... clean these out.
commit c15ad25f413e5d13a97810d11d891382f7d73a00
Merge: 3f4bf12 7be04a4
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Fri Mar 9 16:18:36 2012 +1100
Merge branch 'dev' into pcp4
commit 3f4bf12ae8f0d30b135de7eeb891b9b296d79b5d
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Fri Mar 9 10:26:21 2012 +1100
thread support - fix typo
PTHREAD_MUTEX_RECURSIVE_NP should be PTHREAD_MUTEX_RECURSIVE for better
portability.
commit 977329ba6e766c0b5112af0ae8f0964223cff483
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Thu Mar 8 06:57:22 2012 +1100
pcp script - add LSB markers
Although the pcp init script is not really part of the start and stop
regime (it is a legacy bridge), it still needs some LSB fluff to keep
insserv happy on SuSE.
commit 8531e4be86a14b9e8b8ed3148852a13149f8f09d
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Thu Mar 8 06:55:15 2012 +1100
rpm build spec - init script tweaking
In the %preun script, make sure we are dealing with all the old and
and new combinations of init scripts after the pcp -> pmcd & pmlogger
split.
commit 451c74f6b90c3ae1660bfa43e2e2a6dbdd528baf
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Thu Mar 8 06:50:29 2012 +1100
__pmConnectLogger - pmlogger connection PDU buffer pinning fix - III
Fallout from previous __pmUnpinPDUBuf() change in __pmConnectLogger()
as part of the PCP 4.0 changes. The logic here was wrong and we were
calling sometimes __pmUnpinPDUBuf() with a bogus buffer address (exposed
by QA 230), which was finally caught by the addition of the assert()
in __pmUnpinPDUBuf() as part of commit 3534fbb.
commit 7be04a481eada7549088dcc26dd4b82f29e49c9d
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed Mar 7 16:58:52 2012 +1100
Update changelog with a few more details.
commit 41b170583c1609b14102b78160334159819d733a
Merge: 852a65b a7be221
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed Mar 7 16:47:48 2012 +1100
Merge branch 'pcp4' of git://oss.sgi.com/kenj/pcp into dev
commit 852a65bcb03c164147b3fe537f2dc9f4fb80b60c
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed Mar 7 16:34:46 2012 +1100
Add elasticsearch shard metrics and associated index indom.
commit 9cbfbc2a5fd010322c5cc502c111c7219c69ba03
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed Mar 7 16:34:04 2012 +1100
Fix incorrect agent name in elasticsearch Remove script.
commit d2631802c281a963edc241b738d6965305080503
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed Mar 7 11:46:33 2012 +1100
Add elasticsearch transport stats. Update queries for 0.19.x
commit a7be221af54de52ba50b0f3a33aa1d927ee290d3
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Tue Mar 6 15:47:52 2012 +1100
trace PMDA - demos makefile
Fix botched substitution for pthreads library (was failing on SuSE).
commit 39548b0f048f003fc6df12c22c7de793da830a29
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Tue Mar 6 15:45:54 2012 +1100
build/tar/GNUmakefile - replace awk by sed
Fix problem exposed in some builds when $(PCP_AWK_PROG) expands to
"gawk --posix".
commit a46335bfb4fdad5a0bbe9f22a5240a582bd120ce
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Tue Mar 6 15:45:06 2012 +1100
tarball distro - init.d script changes
More pcp -> pmcd and pmlogger split changes.
commit 4cac46306be71b078c72dfdcbb5594218b2bf11b
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Tue Mar 6 15:43:19 2012 +1100
more man page .gitignore changes ... .bz2 suffix in gentoo
commit 96596e24fd697a0e1f5c450a97731035ec1adb9c
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Mon Mar 5 10:39:06 2012 +1100
perl man page .gitignore changes ... .bz2 suffix in gentoo
commit 0da0cbe9d34fdebdea56e247120f8a7b392f9c79
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Mon Mar 5 10:38:39 2012 +1100
tar build fix - need eval after PCP_AWK_PROG change
commit c34137a847e93b70323d3f495df89a30dc3df428
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Sat Mar 3 10:30:38 2012 +1100
Update a couple of comments to reflect reality.
|