]>
git.ipfire.org Git - thirdparty/rrdtool-1.x.git/log
Peter Stamfest [Fri, 5 Sep 2014 06:39:42 +0000 (08:39 +0200)]
Fix tune related test scripts to work in the presence of a caching daemon.
Also do explicit "forgetting" of just tuned RRD, because "tune" is
never done via rrdcached.
Peter Stamfest [Fri, 5 Sep 2014 06:36:22 +0000 (08:36 +0200)]
Merge branch 'travis-fix' into create-with-source-data
Peter Stamfest [Fri, 5 Sep 2014 06:24:54 +0000 (08:24 +0200)]
replace "realpath" with "readlink -f"
Peter Stamfest [Fri, 5 Sep 2014 06:24:21 +0000 (08:24 +0200)]
get rid of warnings
Peter Stamfest [Thu, 4 Sep 2014 20:50:08 +0000 (22:50 +0200)]
Merge branch 'tobi-master' into create-with-source-data
Tobias Oetiker [Thu, 4 Sep 2014 20:26:36 +0000 (22:26 +0200)]
for the tests we need dc
Tobias Oetiker [Thu, 4 Sep 2014 20:20:53 +0000 (22:20 +0200)]
Merge pull request #535 from stamfest/more-tobi-fixes
More tobi fixes
Tobias Oetiker [Thu, 4 Sep 2014 20:16:18 +0000 (22:16 +0200)]
Merge pull request #533 from stamfest/fix-test-for-tobi
Fix rpn1 test to properly report problems
Peter Stamfest [Thu, 4 Sep 2014 18:40:00 +0000 (20:40 +0200)]
Fix NULL pointer dereference error introduced during get_path "fixing"
Peter Stamfest [Thu, 4 Sep 2014 06:58:47 +0000 (08:58 +0200)]
Have travis run rrdcached based tests as well
Peter Stamfest [Thu, 4 Sep 2014 06:55:46 +0000 (08:55 +0200)]
Improve test suite. Allow to have tests run using a local rrdcached instance
using the TESTS_STLYE environment variable (Set it to 'rrdcached')
Peter Stamfest [Thu, 4 Sep 2014 06:54:46 +0000 (08:54 +0200)]
Make rrd create work via the caching daemon
Peter Stamfest [Thu, 4 Sep 2014 06:50:42 +0000 (08:50 +0200)]
fetch data from cached with full double precision to make sure results
obtained with and without rrdcached are the same.
This might be deemed to high a cost, because the line protocol now carries
up to 70% more data
Peter Stamfest [Thu, 4 Sep 2014 06:46:29 +0000 (08:46 +0200)]
Fix rrd create via cached - file name sanitation (absolutation?)
did quietly assume that files would have to exists. Which ist not
quite right for many "create" usecases.
Peter Stamfest [Thu, 4 Sep 2014 06:06:48 +0000 (08:06 +0200)]
fix "Cannot parse value line" errors because rrd_strtodbl cannot handle "-nan"
Peter Stamfest [Tue, 2 Sep 2014 21:55:27 +0000 (23:55 +0200)]
fixup implement new test style
Peter Stamfest [Tue, 2 Sep 2014 21:16:13 +0000 (23:16 +0200)]
add dc package to travis install requirements
Peter Stamfest [Tue, 2 Sep 2014 21:14:49 +0000 (23:14 +0200)]
add --template documentation
Peter Stamfest [Tue, 2 Sep 2014 20:44:18 +0000 (22:44 +0200)]
Implement --template option to rrdtool create
Peter Stamfest [Tue, 2 Sep 2014 19:27:15 +0000 (21:27 +0200)]
support --sources (aka -r) in rrd daemon
Peter Stamfest [Tue, 2 Sep 2014 15:07:53 +0000 (17:07 +0200)]
implement new test "style": valgrind-logfile. This dumps everything to
log files named <test>-valgrind.log and only reports the LEAK SUMMARY to
stderr in case of reported errors. On travis, currently the logfiles
are effectively lost, but this all avoids problems with total test outputs
exceeding the current travis limit of 4MB...
Peter Stamfest [Mon, 1 Sep 2014 19:56:59 +0000 (21:56 +0200)]
speed up modify4 test - especially under valgrind
Peter Stamfest [Mon, 1 Sep 2014 18:39:44 +0000 (20:39 +0200)]
when using valgrind, make sure we set some env vars in order to
have glib behave better and more "understandeable" for valgrind
Peter Stamfest [Mon, 1 Sep 2014 18:37:44 +0000 (20:37 +0200)]
Avoid memory leak and handle out-of-memory in a forgotten case
Peter Stamfest [Mon, 1 Sep 2014 18:36:59 +0000 (20:36 +0200)]
Fix nasty off-by-one error causing access beyond allocated memory
Peter Stamfest [Mon, 1 Sep 2014 18:35:48 +0000 (20:35 +0200)]
Avoid some valgrind errors to be either detected to be supressed.
Peter Stamfest [Sun, 31 Aug 2014 19:04:18 +0000 (21:04 +0200)]
Documentation
Peter Stamfest [Sun, 31 Aug 2014 17:32:58 +0000 (19:32 +0200)]
Remove debug code and make "my" code warning-free.
Peter Stamfest [Sun, 31 Aug 2014 16:28:51 +0000 (18:28 +0200)]
Implement mapping
Peter Stamfest [Wed, 27 Aug 2014 08:34:47 +0000 (10:34 +0200)]
add DS syntax to map data-sources during create with sources. also switch to use regular expressions to parse DS
Peter Stamfest [Sat, 30 Aug 2014 16:27:24 +0000 (18:27 +0200)]
Improve tests
Peter Stamfest [Thu, 28 Aug 2014 21:49:58 +0000 (23:49 +0200)]
CDP prefilling should now mostly work...
Peter Stamfest [Thu, 28 Aug 2014 08:37:11 +0000 (10:37 +0200)]
Generalize RRA candidate finding
Peter Stamfest [Thu, 28 Aug 2014 07:57:34 +0000 (09:57 +0200)]
Factor out adding/removing of temporary RRA for CDP prefilling
Peter Stamfest [Thu, 28 Aug 2014 06:59:23 +0000 (08:59 +0200)]
start to work on prefilling of CDPs
Peter Stamfest [Wed, 27 Aug 2014 09:52:46 +0000 (11:52 +0200)]
prefill last DS values
Peter Stamfest [Wed, 27 Aug 2014 08:55:23 +0000 (10:55 +0200)]
factor out core bin-prefilling to shorten functions
Peter Stamfest [Wed, 27 Aug 2014 08:31:29 +0000 (10:31 +0200)]
take XFF into account when prefilling
Peter Stamfest [Wed, 27 Aug 2014 08:23:32 +0000 (10:23 +0200)]
Allow to use different selection strategies when selecting candidate RRAs
for modify or prefilling
Peter Stamfest [Wed, 27 Aug 2014 07:24:10 +0000 (09:24 +0200)]
add "const" keyword to cf_conv to avoid some warnings
Peter Stamfest [Wed, 27 Aug 2014 06:28:01 +0000 (08:28 +0200)]
add custom quicksort, where the comparison function takes an extra argument for parameters
Using quicksort might in practice actually be overkill, because most of the time we will
sort rather short arrays anyway.
Peter Stamfest [Tue, 26 Aug 2014 09:51:43 +0000 (11:51 +0200)]
Add new test for checking handling of CFs during prefilling
Peter Stamfest [Sun, 24 Aug 2014 21:48:32 +0000 (23:48 +0200)]
add test playing with different bin sizes
Peter Stamfest [Sun, 24 Aug 2014 21:19:32 +0000 (23:19 +0200)]
take start time from sources if unspecified
Peter Stamfest [Sun, 24 Aug 2014 20:59:32 +0000 (22:59 +0200)]
improve tests
Peter Stamfest [Sun, 24 Aug 2014 20:52:50 +0000 (22:52 +0200)]
activate create-with-source tests in standard test suite
Peter Stamfest [Sun, 24 Aug 2014 19:27:38 +0000 (21:27 +0200)]
Fix comment
Peter Stamfest [Sun, 24 Aug 2014 13:46:48 +0000 (15:46 +0200)]
Add interval handling functions. These will be needed in the future to
handle pre filling of RRAs.
Peter Stamfest [Thu, 21 Aug 2014 19:37:55 +0000 (21:37 +0200)]
properly handle DS names - this allows to reorder data sources
Peter Stamfest [Thu, 21 Aug 2014 19:36:45 +0000 (21:36 +0200)]
reduce number of warnings - even if most are triggered by debug code
Peter Stamfest [Thu, 21 Aug 2014 10:13:23 +0000 (12:13 +0200)]
First test for create with old data
Peter Stamfest [Thu, 21 Aug 2014 10:12:05 +0000 (12:12 +0200)]
first real prefill implementation
- this still contains loads of debug output and some real problems and
assumptions, so it won't work correctly for most cases
Peter Stamfest [Thu, 21 Aug 2014 10:11:16 +0000 (12:11 +0200)]
some minor fixes for correctness
Peter Stamfest [Thu, 21 Aug 2014 10:09:06 +0000 (12:09 +0200)]
Move some functions from rrd_modify to rrd_create
Peter Stamfest [Wed, 20 Aug 2014 22:52:01 +0000 (00:52 +0200)]
allow to print the actual rrdtool calls run by a test by setting the VERBOSE
env. variable to a non-empty string before calling the test
Peter Stamfest [Wed, 20 Aug 2014 22:43:18 +0000 (00:43 +0200)]
Move custom logic row-rotation logic from write_fh, originally there to
support rrd_restore with its random cur_row placement to
rrd_restore itself. This makes write_fh a truly reuseable function.
Peter Stamfest [Wed, 20 Aug 2014 22:36:39 +0000 (00:36 +0200)]
Add a dump-restore test
Peter Stamfest [Thu, 14 Aug 2014 07:05:04 +0000 (09:05 +0200)]
Keep a pointer to the internal rrd data structure with rrd_file_t objects
to simplify management of opened RRD files - now it is only required
to keep the rrd_file_t object around to be able to manage the underlying
rrd structure and not both objects in some additional data structure.
Peter Stamfest [Wed, 13 Aug 2014 18:30:13 +0000 (20:30 +0200)]
Get rid of rrd_create_fn and use new creation infrastructure instead.
Peter Stamfest [Mon, 25 Aug 2014 20:33:25 +0000 (22:33 +0200)]
add tests for no-overwrite functionality
Peter Stamfest [Wed, 13 Aug 2014 18:26:55 +0000 (20:26 +0200)]
add new rrdc_create_r2 function to support new sources syntax
Peter Stamfest [Wed, 13 Aug 2014 18:25:27 +0000 (20:25 +0200)]
turn GList based sources list into C array
Peter Stamfest [Sat, 9 Aug 2014 11:22:03 +0000 (13:22 +0200)]
- add support for --source options(s)
- add "destruction" path in rrd_create command line parser
Peter Stamfest [Wed, 13 Aug 2014 18:23:04 +0000 (20:23 +0200)]
Extend rrd_create_r2 with a new (as of now unused) sources argument
Peter Stamfest [Wed, 13 Aug 2014 18:17:58 +0000 (20:17 +0200)]
add rrd_init_data function
Peter Stamfest [Wed, 13 Aug 2014 18:14:31 +0000 (20:14 +0200)]
fix init_cdp. The original code implicitly always used the first pdp_prep
structure of the underlying rrd, which lead to wrong cdp initialization in
experimental code. This change will be needed for future work.
Peter Stamfest [Wed, 13 Aug 2014 18:10:43 +0000 (20:10 +0200)]
move write_rrd and write_fh into rrd_create.c.
While this is purely cosmetic, writing an RRD file is actually creating one, so
it makes sense to concentrate the various writing functions into one place.
Peter Stamfest [Thu, 21 Aug 2014 10:15:34 +0000 (12:15 +0200)]
Fix rpn1 test to properly report problems
Tobias Oetiker [Wed, 27 Aug 2014 20:19:03 +0000 (22:19 +0200)]
Merge pull request #529 from petgit/VS2013
Visual Studio 2013 Support
petgit [Wed, 27 Aug 2014 19:52:53 +0000 (21:52 +0200)]
use of g_free() cause heap damage on windows if memory is allocated by malloc(). Key is allocated by malloc() in sprintf_alloc(), so free() should use.
petgit [Wed, 27 Aug 2014 06:05:22 +0000 (08:05 +0200)]
Exception calling: g_hash_table_destroy(im->rrd_map)
temporary commented out
vcxproj: adjusted for debug
Tobias Oetiker [Wed, 20 Aug 2014 15:40:44 +0000 (17:40 +0200)]
remove duplicate code
Tobias Oetiker [Wed, 20 Aug 2014 15:40:29 +0000 (17:40 +0200)]
better error messages
Tobias Oetiker [Wed, 20 Aug 2014 15:40:00 +0000 (17:40 +0200)]
this is an oportunistic parser, so dont complain
Tobias Oetiker [Wed, 20 Aug 2014 14:00:17 +0000 (16:00 +0200)]
cleanup rrd_strtodbl calls
Tobias Oetiker [Wed, 20 Aug 2014 12:17:34 +0000 (14:17 +0200)]
rrd_strtoding should be called rrd_strtodbl
Tobias Oetiker [Wed, 20 Aug 2014 12:16:52 +0000 (14:16 +0200)]
make sure non of the standard *printf functions get replaced. we only need this in specific places.
Tobias Oetiker [Wed, 20 Aug 2014 11:53:07 +0000 (13:53 +0200)]
wrong argument count
Tobias Oetiker [Thu, 7 Aug 2014 09:07:01 +0000 (11:07 +0200)]
update before install
Tobias Oetiker [Thu, 7 Aug 2014 09:00:19 +0000 (11:00 +0200)]
Merge pull request #524 from pabigot/support-cross-compile
configure.ac: remove explicit default path for libxml2
Peter A. Bigot [Tue, 5 Aug 2014 21:39:58 +0000 (16:39 -0500)]
configure.ac: remove explicit default path for libxml2
OpenEmbedded needs to cross-compile rrdtool, and historically has
applied this patch locally because the implementation of EX_CHECK_ALL
unconditionally added -I/usr/include. Since the correct include path is
automatically provided by a successful pkg-config invocation there is no
need to set it explicitly.
Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Tobias Oetiker [Tue, 5 Aug 2014 04:29:08 +0000 (06:29 +0200)]
Merge pull request #523 from sshipway/master
Adding new RPN stack operations: DEPTH, INDEX, COPY, ROLL
Steve Shipway [Mon, 4 Aug 2014 23:01:11 +0000 (11:01 +1200)]
Added new stack operations
Steve Shipway [Mon, 4 Aug 2014 22:52:00 +0000 (10:52 +1200)]
Added new stack operations
Tobias Oetiker [Mon, 4 Aug 2014 13:33:59 +0000 (15:33 +0200)]
Merge pull request #518 from pabigot/fix-rrd_info-param
rrd_info: make filename argument const
Tobias Oetiker [Mon, 4 Aug 2014 13:33:27 +0000 (15:33 +0200)]
Merge pull request #519 from aelse/python-fix-build-path
Fix src/build paths
Tobias Oetiker [Thu, 31 Jul 2014 13:58:11 +0000 (15:58 +0200)]
exclude xport bits if compiled without graph support
Tobias Oetiker [Thu, 31 Jul 2014 13:40:26 +0000 (15:40 +0200)]
working on a fix for issue #521
Tobias Oetiker [Wed, 30 Jul 2014 06:53:21 +0000 (08:53 +0200)]
only have graph options when there is graph support
Conflicts:
bindings/python/rrdtoolmodule.c
petgit [Thu, 24 Jul 2014 06:27:56 +0000 (08:27 +0200)]
VS2013, modifications to compile as C++ and on Windows .
Alexander Else [Mon, 21 Jul 2014 04:18:36 +0000 (14:18 +1000)]
Fix src/build paths
Peter A. Bigot [Sun, 20 Jul 2014 09:19:22 +0000 (04:19 -0500)]
rrd_info: make filename argument const
Avoids following error:
rrdinfo.cc:10:42: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
rp = rrd_info_r("/home/pab/ted5000.rrd");
Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Tobias Oetiker [Sun, 13 Jul 2014 15:07:35 +0000 (17:07 +0200)]
Merge pull request #517 from petgit/master
Create rrd file: Allow only short integer numbers in rpn formula
petgit [Sun, 13 Jul 2014 14:24:13 +0000 (16:24 +0200)]
Create rrd file: Allow only short integer numbers in rpn formula
Tobias Oetiker [Fri, 11 Jul 2014 21:54:46 +0000 (23:54 +0200)]
Merge pull request #514 from Sweet-kid/strtod_api
Wrote api for rrd_strtod
Upasana [Fri, 11 Jul 2014 18:11:37 +0000 (23:41 +0530)]
Removed printfs left while debugging
Upasana [Fri, 11 Jul 2014 17:17:26 +0000 (22:47 +0530)]
*endptr should be set in rrd_strtoding, not endptr
so that value is reflected in the callee function as well
Upasana [Fri, 11 Jul 2014 17:16:48 +0000 (22:46 +0530)]
Missed this instance of rrd_strtoding earlier
Upasana [Fri, 11 Jul 2014 17:14:48 +0000 (22:44 +0530)]
make sure that sscanf doesn't get too much data
%19[0-9e+-] makes sure that it takes only the characters required for
getting a double variable
Upasana [Wed, 9 Jul 2014 21:28:12 +0000 (02:58 +0530)]
Fixed some bad indentation