[collectd-changes] collectd, the system statistics collection daemon: Changes to 'master'
Florian Forster
octo at verplant.org
Tue Nov 20 09:15:19 CET 2007
bindings/perl/Collectd.pm | 70 ++++++++++++++++++++++++++++++++++++----------
src/Makefile.am | 19 ++++++------
src/collectd-perl.pod | 25 ++++++++++++----
src/perl.c | 52 +++++++++++++++++++++++++++++++---
4 files changed, 132 insertions(+), 34 deletions(-)
New commits:
commit 6fed6432dfcacafebe5d963557a94e5c4c277e21
Author: Sebastian Harl <sh at tokkee.org>
Date: Tue Nov 20 08:45:22 2007 +0100
perl plugin: Execute END blocks in main thread only.
Each END block is executed during perl_destruct() which happens once for each
ithread. As the number of ithreads are in no way related to any Perl plugins
this is not what we want. Now, each END block is only executed when the main
threads terminates (which happens after any other Perl thread has been shut
down).
Signed-off-by: Sebastian Harl <sh at tokkee.org>
Signed-off-by: Florian Forster <octo at huhu.verplant.org>
commit 149eea1300930abaef37ff9ccb988d952f66125b
Author: Sebastian Harl <sh at tokkee.org>
Date: Sat Nov 17 20:49:19 2007 +0100
src/Makefile.am: Add installation directory defines to AM_CPPFLAGS.
Those definitions used to be available when compiling collectd itself only.
However, they should be available to the plugins as well - else, different
paths would be used within different parts of collectd.
Signed-off-by: Sebastian Harl <sh at tokkee.org>
Signed-off-by: Florian Forster <octo at huhu.verplant.org>
commit f400d0708fc49deef428f6e487e1f65005f903d0
Author: Sebastian Harl <sh at tokkee.org>
Date: Sat Nov 17 20:48:29 2007 +0100
collectd-perl(5): Suggest the usage of -f when enabling the Perl debugger.
Signed-off-by: Sebastian Harl <sh at tokkee.org>
Signed-off-by: Florian Forster <octo at huhu.verplant.org>
commit c63d52c52bfe891c8faa62e0d5539d7fba7b3d88
Author: Sebastian Harl <sh at tokkee.org>
Date: Sat Nov 17 18:45:58 2007 +0100
Collectd.pm: Improved error handling of failed callbacks.
If call_by_name() failed, it will be handled the same way as if the callback
returned "false". The $@ variable may now be used by plugins as well to
describe errors in greater detail.
Signed-off-by: Sebastian Harl <sh at tokkee.org>
Signed-off-by: Florian Forster <octo at huhu.verplant.org>
commit 3b10fcf1c9efe1ac49029c3c64ff6262047f1e0f
Author: Sebastian Harl <sh at tokkee.org>
Date: Sat Nov 17 18:44:57 2007 +0100
collectd-perl(5): Updated documenation of plugin_register().
Document the usage of names instead of references to identify callbacks.
Signed-off-by: Sebastian Harl <sh at tokkee.org>
Signed-off-by: Florian Forster <octo at huhu.verplant.org>
commit 3e3d0bbc60bf926eea8058f3edfbb600f84b02bd
Author: Sebastian Harl <sh at tokkee.org>
Date: Sat Nov 17 18:43:19 2007 +0100
Collectd.pm: Use threads::shared to share @plugins between threads.
The list of plugins has to be common to all threads to be able to (un)register
callbacks after initialization. As threads::shared is not able to share
references to subroutines the callbacks now have to be identified by their
name. Collectd::call_by_name() is used to execute the callbacks.
Signed-off-by: Sebastian Harl <sh at tokkee.org>
Signed-off-by: Florian Forster <octo at huhu.verplant.org>
commit 3a28b39818c323b1dc8dfa8b5afcd24220a6ddee
Author: Sebastian Harl <sh at tokkee.org>
Date: Sat Nov 17 18:41:46 2007 +0100
perl plugin: Removed newline from debugging output.
Signed-off-by: Sebastian Harl <sh at tokkee.org>
Signed-off-by: Florian Forster <octo at huhu.verplant.org>
commit cad67e6fcbaf2cad7703ef4f83a92dbd87d44cde
Author: Sebastian Harl <sh at tokkee.org>
Date: Sat Nov 17 18:41:08 2007 +0100
perl plugin: Removed logging calls from call_by_name().
The function might be called from a logging callback resulting in an infinite
loop. Instead the error message is now saved in $@.
Signed-off-by: Sebastian Harl <sh at tokkee.org>
Signed-off-by: Florian Forster <octo at huhu.verplant.org>
commit e08d6907db8ad7d9b411e35b499ff82ce3cd9e01
Author: Sebastian Harl <sh at tokkee.org>
Date: Sat Nov 17 18:38:45 2007 +0100
perl plugin: Added Collectd::call_by_name().
This XSUB passes on a function call to a subroutine identified by its name
passed through $Collectd::cb_name. Collectd::call_by_name does not touch the
stack (unless in case of an error), thus any arguments and return values are
kept in place.
This function is meant to be used inside Collectd.pm only.
Signed-off-by: Sebastian Harl <sh at tokkee.org>
Signed-off-by: Florian Forster <octo at huhu.verplant.org>
More information about the collectd-changes
mailing list