Changes committed to git://git.performancecopilot.org/pcp.git dev
build/rpm/fedora.spec | 7
config.mingw | 8
configure | 213 +++--
configure.in | 197 +++--
debian/changelog | 2
man/man1/pmfind.1 | 32
man/man3/pmdiscoverservices.3 | 35
qa/722 | 50 -
qa/766 | 88 ++
qa/766.out | 13
qa/775 | 16
qa/775.out | 8
qa/776 | 244 ++++--
qa/776.out | 61 -
qa/946 | 16
qa/946.out | 8
qa/group | 2
src/include/pcp/config.h.in | 1
src/include/pcp/impl.h | 4
src/libpcp/src/GNUmakefile | 4
src/libpcp/src/auxconnect.c | 213 ++++-
src/libpcp/src/auxserver.c | 196 ++++-
src/libpcp/src/avahi.c | 4
src/libpcp/src/check-statics | 21
src/libpcp/src/connect.c | 61 -
src/libpcp/src/discovery.c | 82 +-
src/libpcp/src/internal.h | 13
src/libpcp/src/logconnect.c | 2
src/libpcp/src/probe.c | 1134 ++++++++++++++++++++++--------
src/libpcp/src/probe.h | 19
src/libpcp/src/secureconnect.c | 183 +++-
src/libpcp_fault/src/GNUmakefile | 4
src/libpcp_qwt/src/qwt_picker_machine.cpp | 1
src/libpcp_qwt/src/qwt_plot_histogram.cpp | 5
src/pmatop/pmatop.py | 86 +-
src/pmchart/main.cpp | 9
src/pmcollectl/pmcollectl.py | 16
src/pmfind/pmfind.c | 2
src/pmns/stdpmid.pcp | 2
src/pmtime/main.cpp | 9
src/python/pcp/pmapi.py | 61 +
src/python/pcp/pmcc.py | 10
src/python/pmapi.c | 3
43 files changed, 2234 insertions(+), 911 deletions(-)
commit e63315b9331f367789fe271c9806de0ff70ede9c
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Fri May 30 17:07:45 2014 +1000
Discovery tests - deterministic output with remote advertisers
commit 66c74314672df80b6d525d0928fef0796d7a2fc2
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Fri May 30 17:06:31 2014 +1000
Check for null return on a libpcp strdup, fail it consistently
commit 510a11dc7a1199eeab48c57ff1efef6583961407
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Fri May 30 17:05:55 2014 +1000
Fix a little typo on the pmfind(1) man page
commit bbc566873e3a10984e3cae9d436599cc44da9edd
Merge: 2b8663d 83f5777
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Fri May 30 13:53:11 2014 +1000
Merge branch 'brolley/dev' of ../pcpfans into brolley-merge
commit 2b8663d2e1138353b8496d7696907e3887b83859
Merge: d8a42b1 bc7942e
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Fri May 30 13:49:17 2014 +1000
Merge branch 'scox/dev' of ../pcpfans into scox-merge
commit d8a42b1f8fad0188d5e743e4efff62e441ad62cc
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Fri May 30 13:43:26 2014 +1000
Fix a couple of memory leaks in the python C wrapper
Coverity scanning found a couple of pmapi.c memleaks in the
python C wrapper, trivially fixed. Overdue for some python
API valgrind testing, added to the eternal to-do list.
commit 9543d27f7fc4fb6261975ae1452bb2fc334be3c0
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Fri May 30 13:37:55 2014 +1000
Fix a potential uninitialised sts return code in libpcp
Coverity scanning found a path where __pmConnectLogger could end
up passing an uninitialised sts variable back to the caller.
commit b18f98882b676ade463f125baf52c7f7f4646247
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Fri May 30 13:34:06 2014 +1000
Reserve domain numbers for planned papi and perf PMDAs
commit ff200a6d4920e67cd0a08148b4b79eaf926e1d1b
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Fri May 30 13:31:19 2014 +1000
Add a missed break statement in Qwt picker events
commit 9d114ccbbe6d6af01c843e00e4cec6f27d0c39e8
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Fri May 30 13:29:43 2014 +1000
Fix a couple of potential putenv on null pointers
Coverity scanning found a couple of places (pmtime/pmchart) where
a null pointer from a failed strdup might be putenv'd - ensure we
do not do that.
commit ec8c7d74ba8ffeb7ec27249f95e7395db1dd56b0
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Fri May 30 13:21:35 2014 +1000
Merge back a couple of spec changes from other build trees
Ensure all of the tutorial pieces end up in the pcp-doc package
where nature intended (not pcp-libs-devel), switch Qt builds on
(accidently off somehow) and point the finger at Dave for 3.9.5
RPM packaging (after earlier discussion).
commit bc7942ed10d5190866bfb2a5b2fbe630edfa5d6a
Author: Stan Cox <scox@xxxxxxxxxx>
Date: Thu May 29 21:36:51 2014 -0400
Handle curses errors gracefully.
* pmatop.py (main): Handle curses.error
commit 51b06c27e9fde381a6b907859101c6d36bce1614
Author: Stan Cox <scox@xxxxxxxxxx>
Date: Thu May 29 21:35:09 2014 -0400
Revert to Fix pmatop now in terms of sub-second recording
commit 83f5777e4f713b8614f549987d4fd25085c6910a
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Thu May 29 11:44:20 2014 -0400
Some rework of the internal __pm*AddPorts() API functions.
- Commented on the caller's responsibility for freeing
(re)allocated memory.
- Eliminated two obsolete static 'first_time' flags.
commit 0f68018d06fe9cd574cad13a4731ea9f8fb58b55
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Thu May 29 16:47:14 2014 +1000
Dodge compiler-generated signed overflow bullet from Qwt
Avoid a possible signed integer overflow in :
/usr/include/QtCore/qvector.h: In member function âvoid
QwtPlotHistogram::flushPolygon(QPainter*, double, QPolygonF&) constâ:
/usr/include/QtCore/qvector.h:330: warning: assuming signed overflow does
not occur when assuming that (X - c) <= X is always true
Looks like Qwt 6.1 has reworked this area significantly, and
the error will also be resolved on our next upgrade - but in
the interim, fix it locally.
commit 150d62bc4bdae3f6562bb922b48553efa63d6873
Merge: 1b08023 bcc9eb6
Author: Stan Cox <scox@xxxxxxxxxx>
Date: Wed May 28 22:42:45 2014 -0400
Merge branch 'dev' into scox/dev
Conflicts:
src/pmatop/pmatop.py
commit 63a9214beef64aed9bc58f185f592fdf346e0466
Merge: 5bbfbb2 bcc9eb6
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Wed May 28 14:07:08 2014 -0400
Merge remote-tracking branch 'origin/dev' into brolley/dev
commit 5bbfbb265c716af86a3b7f4b6df1af93b3ccbcc1
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Wed May 28 14:02:12 2014 -0400
Make pmfind qa tests tolerant of PCP services on other hosts on the network.
- Filter out hits on all services
- break test 776 into inet and ipv6 variants. New test 766 is inet
and 776 is now ipv6. Only test one active interface.
commit bcc9eb6c99519ce9ac4d60a6ae37ce82418e49e3
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed May 28 17:57:06 2014 +1000
Fix pmatop now in terms of sub-second recording
pmatop contains some duplicated code from pmcollectl (or
vice-versa) related to archive recording - also contains
the same bugs fixed recently in pmcollect wrt recording
for less than a second. Make the code the same again, and
make a note to refactor this into the convenience classes
soon also.
This code, and pmcollectl, now make use of the new timeval
method for sleeping, and both are simpler as a result.
Update qa/722 to make use of very short sampling intervals
to exercise this change (and complete more quickly too).
commit cc4ea9639afd060930aaaaa50e6e9664f9b113e2
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed May 28 17:51:13 2014 +1000
Improvements in python timeval/metricspec error handling
Currently the python API has static methods on the pmContext
class allowing timeval and metricspec creation via the PMAPI
pmParseTimeInterval and pmParseMetricSpec interfaces. We've
slightly botched the error handling however, and these calls
return a tuple with (result,errstr). This is not a sensible
strategy, since the introduction of pmErr exceptions.
So, make the most of it and provide a better interface that
callers can use via new methods on the existing timeval and
MetricSpec classes. The old, compat code simply calls the
new methods, and (continues to) returns an empty string for
the success case. We also tack the error message onto the
exception for improved error handling, which was overlooked
last time through.
Existing tests exercise the compat case, and pmcollectl and
pmatop will be updated to use the new class methods.
commit 08e57c9aae3dc1b825fa1eb73e0252992bf727cc
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed May 28 10:04:16 2014 +1000
Initial steps in MinGW64 cross-compilation from Fedora 20
commit 1b080237d105642d16bcd9537e021fcab035eb00
Author: Stan Cox <scox@xxxxxxxxxx>
Date: Tue May 27 17:01:16 2014 -0400
Convert scale of extracted metric values.
* pmcc.py (computeValues): Call pmConvScale on extracted value.
commit 619dca0925928751656990546e60d033e6071f43
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Tue May 27 15:38:51 2014 -0400
Updated man pages for pmfind(1) and pmdiscoverservices(3).
commit 7ebb599a5f64b17bb3c3ce1be9bcd10aa026565b
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Tue May 27 15:37:52 2014 -0400
Was searching for 'ifconfig' but not using the results of the search.
D'uhh.
commit 8d0520fddfb2089da7e3a2573c1933428df10c82
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Tue May 27 15:12:56 2014 -0400
__pmFirstIpv6SubnetAddr: Do not over index the address bytes.
commit 1cb149c4eb96afa993ea8487814e2bdd1b8cb061
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Tue May 27 15:12:23 2014 -0400
qa test 776: Allow for running pmproxy and pmwebd services.
commit ae66495fb9b4742645ac5dd3dc56dc781ddac8c2
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Tue May 27 14:32:25 2014 -0400
New qa test 776: Tests -m probe=.... for pmfind.
commit 77377f219088da3ff75c254806613830e9545ee8
Author: Stan Cox <scox@xxxxxxxxxx>
Date: Tue May 27 10:50:55 2014 -0400
Handle curses problems gracefully.
* pmatop.py (main): Catch curses.error.
(record): Mimic pmcollectl recording behavior.
commit a3866d20d78b77ccc960565f94366825b15db25c
Merge: 57736b9 592f252
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Mon May 26 10:16:06 2014 -0400
Merge remote-tracking branch 'origin/dev' into brolley/dev
commit 57736b9013bee5e2bbe3e9e7d68dfc1327589e60
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Mon May 26 10:15:13 2014 -0400
Use the new *AddPorts() APIs throughout as appropriate.
commit 746504515ced5fc1557f946c71287bac4cce9ef6
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Fri May 23 14:11:30 2014 -0400
New internal API functions for collecting server port numbers.
- extern int __pmServiceAddPorts(const char *, int **, int) _PCP_HIDDEN;
determines port numbers for the named service.
- extern int __pmPMCDAddPorts(int **, int) _PCP_HIDDEN;
determines port numbers for pmcd using the PMCD_PORT
environment variable.
- extern int __pmProxyAddPorts(int **, int) _PCP_HIDDEN;
determines port numbers for pmproxy using the PMPROXY_PORT
environment variable.
- extern int __pmWebdAddPorts(int **, int) _PCP_HIDDEN;
determines port numbers for pmwebd using the new PMWEBD_PORT
environment variable.
- extern int __pmAddPorts(const char *, int **, int) _PCP_HIDDEN;
parses the given string of comma-separated port numbers.
pmfind now uses these APIs to obtain the default port numbers for
its supported services (all of the above). With this change,
pmfind now supports multiple port numbers for a service when
using the "probe" mechanism.
commit db06f51eb56683cf6720f9f00c518b494bb1aba5
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Thu May 22 15:39:36 2014 -0400
Service discovery via active probing for pmproxy and pmwebd.
commit 4bb7a3da430545d03ee34fbc2ec764e19301e89f
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Thu May 22 14:48:34 2014 -0400
Active service probing rework based on comments from nathans.
commit ec362bf1a289f12d32461466e216db9a024c5f43
Merge: 556ed04 be5f8a8
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Thu May 22 11:16:29 2014 -0400
Merge remote-tracking branch 'origin/dev' into brolley/dev
Conflicts:
src/libpcp/src/avahi.c
src/libpcp/src/discovery.c
src/pmfind/pmfind.c
commit 556ed040eec1a7650abf422162f1a1e51096b13e
Merge: 95afe9e 53419be
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Tue May 20 14:02:59 2014 -0400
Merge remote-tracking branch 'origin/dev' into brolley/dev
commit 95afe9e669087d3eefb9f6c93dd19690225b44c3
Merge: 010dcd3 22da97f
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Fri May 16 11:09:47 2014 -0400
Merge remote-tracking branch 'origin/dev' into brolley/dev
commit 010dcd3ba8ef7f10dcc0e1763cb30424cf7f63ca
Merge: d4e3baa 57a6755
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Wed May 14 15:37:28 2014 -0400
Merge remote-tracking branch 'origin/dev' into brolley/dev
commit d4e3baa39437d6f00ef6871dc05e376e3a35c256
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Tue May 13 17:19:57 2014 -0400
Add a configure check for the presence of sem_t in <semephore.h>.
commit 5cb6494ef28bc084bd49d8c5c8192e8ac8f264dd
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Tue May 13 16:59:01 2014 -0400
Use a __pmSockAddr to count the number of active probing threads as they
finish.
commit 56113a27a1ff372feb35b1580a5c1d764621ade4
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Tue May 13 16:27:37 2014 -0400
Set a small stack size for each active probing worker thread.
THREAD_STACK_MIN appears to be sufficient.
commit 0ac32a160d472c20d058426c96a04ed3249ea7eb
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Tue May 13 15:56:20 2014 -0400
Implement a max threads control for active service probing.
Implemented as part of the mechanism string for use by
API users as well as by pmfind(1).
commit d39843cf6dbf338745aebb6421c7e7c36ef44f6c
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Mon May 12 14:41:59 2014 -0400
Native (non-NSPR) implementation of service probing.
Consolidates common code between the native and NSPR
implementation.
commit da42ecfddf37b1283a8aa04f55ee3aef1a9710d2
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Mon May 12 13:05:46 2014 -0400
Fix concurrency problem in active probing.
The size of the results list was not always guarded.
commit f1950eb25df22ba7cc2f3d32a4f27d2e04f4d21b
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Mon May 12 11:27:23 2014 -0400
For active probing, reduce the timeout for a conneciton in progress.
From 5 seconds to 1 second.
commit d22f8abba9262c75d458c26919fcd814d96e8edd
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Mon May 12 11:09:08 2014 -0400
Add some tracing for active probing.
Tracing mesages generated when fd and thread limits reached.
commit 4a64f4e67420ec38d463b5bf8b0955e76149090b
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Mon May 12 11:04:36 2014 -0400
Threaded probing for PCP services.
Active probing now done on a separate trhead for each address.
commit 696ea39bdcccb377060dfdba4f1eb7ce8b792a7c
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Tue May 6 17:02:51 2014 -0400
__pmSockAddrToString() should (and now does) take (const __pmSockAddr *).
commit 8fb4a0c73702e4663517f78259202503e0eedf23
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Tue May 6 16:32:27 2014 -0400
__pmAddDiscoveredService() should return negative error codes.
So that they can be distinguished from the updated number of urls.
All callers updated.
commit 83f6b0c44c8eeb9d1217ad2fa4556f3254518792
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Tue May 6 14:52:44 2014 -0400
pmfind: Finalize iteration API for subnet addresses.
commit 7cab926e462e13967b178a5953e5824df8a37326
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Mon May 5 15:41:47 2014 -0400
New source files for active service probing.
commit e685accd03273bd8e0180313d80d159670136448
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Mon May 5 15:37:04 2014 -0400
Initial framework for PCP service discovery via active probing.
|