]> git.ipfire.org Git - thirdparty/collectd.git/log
thirdparty/collectd.git
4 years agofix dereferencing null pointer 3538/head
Svetlana Shmidt [Fri, 21 Aug 2020 12:11:52 +0000 (12:11 +0000)] 
fix dereferencing null pointer

4 years agoMerge pull request #3537 from yath/bootstrap
Svetlana Shmidt [Fri, 21 Aug 2020 11:47:20 +0000 (16:47 +0500)] 
Merge pull request #3537 from yath/bootstrap

[interns] Add a bootstrapping script and a sample configuration

4 years agoAdd a bootstrapping script and a sample configuration 3537/head
Sebastian Schmidt [Fri, 21 Aug 2020 10:41:45 +0000 (12:41 +0200)] 
Add a bootstrapping script and a sample configuration

This adds a script that installs necessary build dependencies to the
system, builds and installs collectd into an 'install/' subdirectory,
installs a sample config and starts collectd in foreground mode
afterwards.

Note that this script is entirely optional but it may help you to get
started (some plugins don't compile, so this script is only building a
few). Once installed this way, another 'make install' will re-install
collectd into install/sbin/collectd and it can be started normally.

NOTE: collectd segfaults in src/daemon/metric.c:208 (called from
src/cpu.c:545) when build this way from the current branch HEAD. It
works on tree 630b948, so it's likely caused by your code and you
already got something to fix. :-)

ChangeLog: collectd: added bootstrap helper script

4 years agoMerge pull request #3531 from bkjg/cache
Barbara Kaczorowska [Wed, 19 Aug 2020 10:35:18 +0000 (10:35 +0000)] 
Merge pull request #3531 from bkjg/cache

Add support for the distribution metrics to the collectd core

4 years agoFormat Makefile.am 3531/head
Barbara Kaczorowska [Wed, 19 Aug 2020 09:48:35 +0000 (11:48 +0200)] 
Format Makefile.am

4 years agoclang format
Barbara Kaczorowska [Wed, 19 Aug 2020 08:21:00 +0000 (08:21 +0000)] 
clang format

4 years agoRemove debug messages
Barbara Kaczorowska [Wed, 19 Aug 2020 08:20:17 +0000 (08:20 +0000)] 
Remove debug messages

4 years agoFix seg fault in tests
Barbara Kaczorowska [Wed, 19 Aug 2020 08:19:22 +0000 (08:19 +0000)] 
Fix seg fault in tests

4 years agoRemove debug messages
Barbara Kaczorowska [Wed, 19 Aug 2020 07:50:23 +0000 (07:50 +0000)] 
Remove debug messages

4 years agoclang format
Barbara Kaczorowska [Wed, 19 Aug 2020 07:20:55 +0000 (07:20 +0000)] 
clang format

4 years agoFix the bug in the uc_update function
Barbara Kaczorowska [Wed, 19 Aug 2020 07:05:01 +0000 (07:05 +0000)] 
Fix the bug in the uc_update function

4 years agoChange the signature of getters for time to return status of operation
Barbara Kaczorowska [Wed, 19 Aug 2020 06:54:21 +0000 (06:54 +0000)] 
Change the signature of getters for time to return status of operation

4 years agoDelete finished TODOs
Barbara Kaczorowska [Tue, 18 Aug 2020 23:58:10 +0000 (23:58 +0000)] 
Delete finished TODOs

4 years agoIntegrate utils_cache_test.c file with new distribution_t structure
Barbara Kaczorowska [Tue, 18 Aug 2020 23:54:45 +0000 (23:54 +0000)] 
Integrate utils_cache_test.c file with new distribution_t structure

4 years agoAdd updating total_sum in distribution_sub function
Barbara Kaczorowska [Tue, 18 Aug 2020 23:34:37 +0000 (23:34 +0000)] 
Add updating total_sum in distribution_sub function

4 years agoFix bug in distribution_percentile function
Barbara Kaczorowska [Tue, 18 Aug 2020 23:22:22 +0000 (23:22 +0000)] 
Fix bug in distribution_percentile function

This commit will add fix to the distribution_percentile function.
Before this commit, distribution_percentile function didn't check
if it received null pointer as an argument and didn't handle this
case and in result it had seg fault. Now this bug is fixed.

4 years agoAdd implementation of distribution_sub to the distribution.c file
Barbara Kaczorowska [Tue, 18 Aug 2020 23:21:51 +0000 (23:21 +0000)] 
Add implementation of distribution_sub to the distribution.c file

4 years agoAdd VALUE_TYPE_DISTRIBUTION to the metric.h file
Barbara Kaczorowska [Tue, 18 Aug 2020 22:58:18 +0000 (22:58 +0000)] 
Add VALUE_TYPE_DISTRIBUTION to the metric.h file

4 years agoImplement additional functions to the plugin_mock.c file
Barbara Kaczorowska [Tue, 18 Aug 2020 22:31:49 +0000 (22:31 +0000)] 
Implement additional functions to the plugin_mock.c file

This commit will add the implementation of
plugin_dispatch_cache_event and plugin_dispatch_missing mock
functions.

4 years agoDelete finished TODOs
Barbara Kaczorowska [Tue, 18 Aug 2020 22:27:02 +0000 (22:27 +0000)] 
Delete finished TODOs

4 years agoclang format
Barbara Kaczorowska [Tue, 18 Aug 2020 22:21:47 +0000 (22:21 +0000)] 
clang format

4 years agoFix tests for uc_get_rate_by_name function
Barbara Kaczorowska [Tue, 18 Aug 2020 22:21:09 +0000 (22:21 +0000)] 
Fix tests for uc_get_rate_by_name function

4 years agoFix tests for uc_get_percentile function
Barbara Kaczorowska [Tue, 18 Aug 2020 21:57:55 +0000 (21:57 +0000)] 
Fix tests for uc_get_percentile function

4 years agoFix tests for uc_get_percentile_by_name function
Barbara Kaczorowska [Tue, 18 Aug 2020 21:37:33 +0000 (21:37 +0000)] 
Fix tests for uc_get_percentile_by_name function

4 years agoAdd more test cases to unit tests for uc_update function
Barbara Kaczorowska [Tue, 18 Aug 2020 21:03:27 +0000 (21:03 +0000)] 
Add more test cases to unit tests for uc_update function

4 years agoReplace custom initialization functions with universal ones
Barbara Kaczorowska [Tue, 18 Aug 2020 20:48:19 +0000 (20:48 +0000)] 
Replace custom initialization functions with universal ones

4 years agoclang format
Barbara Kaczorowska [Tue, 18 Aug 2020 19:46:06 +0000 (19:46 +0000)] 
clang format

4 years agoImplement tests for uc_get_rate function
Barbara Kaczorowska [Tue, 18 Aug 2020 19:45:20 +0000 (19:45 +0000)] 
Implement tests for uc_get_rate function

4 years agoFix updating utils cache
Barbara Kaczorowska [Tue, 18 Aug 2020 18:42:39 +0000 (18:42 +0000)] 
Fix updating utils cache

4 years agoImplement draft of tests for uc_rate_by_name function
Barbara Kaczorowska [Tue, 18 Aug 2020 18:42:03 +0000 (18:42 +0000)] 
Implement draft of tests for uc_rate_by_name function

4 years agoRemove DS_TYPE_DISTRIBUTION define
Barbara Kaczorowska [Tue, 18 Aug 2020 17:29:22 +0000 (17:29 +0000)] 
Remove DS_TYPE_DISTRIBUTION define

4 years agoAdd DS_TYPE_DISTRIBUTION to the plugin.h file
Barbara Kaczorowska [Tue, 18 Aug 2020 17:28:20 +0000 (17:28 +0000)] 
Add DS_TYPE_DISTRIBUTION to the plugin.h file

4 years agoAdd nickname of the new author to the license
Barbara Kaczorowska [Tue, 18 Aug 2020 17:24:34 +0000 (17:24 +0000)] 
Add nickname of the new author to the license

4 years agoAdd new author to the license
Barbara Kaczorowska [Tue, 18 Aug 2020 17:23:52 +0000 (17:23 +0000)] 
Add new author to the license

4 years agoAdd support for distribution metrics in rate functions
Barbara Kaczorowska [Tue, 18 Aug 2020 17:20:08 +0000 (17:20 +0000)] 
Add support for distribution metrics in rate functions

4 years agoAdd functions for getting last time and update time of cache entry in avl tree
Barbara Kaczorowska [Tue, 18 Aug 2020 15:46:29 +0000 (15:46 +0000)] 
Add functions for getting last time and update time of cache entry in avl tree

4 years agoRemove finished TODO in tests
Barbara Kaczorowska [Tue, 18 Aug 2020 15:42:56 +0000 (15:42 +0000)] 
Remove finished TODO in tests

4 years agoAdd checking correctness of uc_update in tests
Barbara Kaczorowska [Tue, 18 Aug 2020 15:40:25 +0000 (15:40 +0000)] 
Add checking correctness of uc_update in tests

4 years agoImplement tests for uc_get_percentile_by_name function
Barbara Kaczorowska [Tue, 18 Aug 2020 14:52:44 +0000 (14:52 +0000)] 
Implement tests for uc_get_percentile_by_name function

4 years agoImplement tests for uc_get_percentile function
Barbara Kaczorowska [Tue, 18 Aug 2020 10:29:28 +0000 (10:29 +0000)] 
Implement tests for uc_get_percentile function

4 years agoAdd checking if the percent argument is correct
Barbara Kaczorowska [Tue, 18 Aug 2020 09:49:37 +0000 (09:49 +0000)] 
Add checking if the percent argument is correct

This commit will add checking if the percent argument in
uc_get_percentile and uc_get_percentile_by_name functions is correct,
i.e. is not smaller than zero and not greater than 100.

4 years agoAdd test for uc_update function
Barbara Kaczorowska [Tue, 18 Aug 2020 06:54:37 +0000 (06:54 +0000)] 
Add test for uc_update function

4 years agoSuccessfully add tests to Makefile.am
Barbara Kaczorowska [Mon, 17 Aug 2020 13:00:41 +0000 (13:00 +0000)] 
Successfully add tests to Makefile.am

4 years agoAdd checking status after returning from distribution_sub function
Barbara Kaczorowska [Mon, 17 Aug 2020 10:00:47 +0000 (10:00 +0000)] 
Add checking status after returning from distribution_sub function

4 years agoClang format
Barbara Kaczorowska [Mon, 17 Aug 2020 07:26:13 +0000 (07:26 +0000)] 
Clang format

4 years agoAdd skeleton of tests for functions from utils_test.h file
Barbara Kaczorowska [Fri, 14 Aug 2020 14:00:48 +0000 (14:00 +0000)] 
Add skeleton of tests for functions from utils_test.h file

4 years agoAdd utils_cache_test to the Makefile.am
Barbara Kaczorowska [Fri, 14 Aug 2020 12:22:03 +0000 (12:22 +0000)] 
Add utils_cache_test to the Makefile.am

4 years agoAdd uc_get_percentile and uc_get_percentile_by_name functions
Barbara Kaczorowska [Fri, 14 Aug 2020 11:26:03 +0000 (11:26 +0000)] 
Add uc_get_percentile and uc_get_percentile_by_name functions

4 years agoAdd prototype of uc_get_percentile function
Barbara Kaczorowska [Fri, 14 Aug 2020 07:44:23 +0000 (07:44 +0000)] 
Add prototype of uc_get_percentile function

4 years agoStarting implementing support for distribution metrics to the cache
Barbara Kaczorowska [Thu, 13 Aug 2020 12:38:10 +0000 (12:38 +0000)] 
Starting implementing support for distribution metrics to the cache

This commit will begin providing support for distribution metrics to the
cache. distribution_t now is added to the cache_entry_t structure and
also to the uc_insert and uc_update functions.

4 years agoMerge pull request #3529 from Lana243/add_squares
Svetlana Shmidt [Wed, 19 Aug 2020 07:36:09 +0000 (12:36 +0500)] 
Merge pull request #3529 from Lana243/add_squares

Add getter functions to distribution data structure

4 years agofix metric test 3529/head
Svetlana Shmidt [Wed, 19 Aug 2020 07:26:52 +0000 (07:26 +0000)] 
fix metric test

4 years agofix code style
Svetlana Shmidt [Tue, 18 Aug 2020 14:00:48 +0000 (14:00 +0000)] 
fix code style

4 years agoadd unit tests for getters
Svetlana Shmidt [Tue, 18 Aug 2020 13:55:57 +0000 (13:55 +0000)] 
add unit tests for getters

4 years agoadd getters for total sum and total counter. Add square deviation sum
Svetlana Shmidt [Tue, 18 Aug 2020 13:02:03 +0000 (13:02 +0000)] 
add getters for total sum and total counter. Add square deviation sum

4 years agoMerge pull request #3530 from elene-margalit/google-interns-2020
Elene Margalitadze [Tue, 18 Aug 2020 16:09:11 +0000 (18:09 +0200)] 
Merge pull request #3530 from elene-margalit/google-interns-2020

Fixed unit test to work with adjusted metric_reset function

4 years agoFormatted code. 3530/head
elene-margalit [Tue, 18 Aug 2020 15:36:38 +0000 (17:36 +0200)] 
Formatted code.

4 years agoAdjusted existing unit test to work with changed metric_reset function.
elene-margalit [Tue, 18 Aug 2020 15:30:08 +0000 (17:30 +0200)] 
Adjusted existing unit test to work with changed metric_reset function.

4 years agoMerge branch 'google-interns-2020' of https://github.com/collectd/collectd into googl... 3527/head
elene-margalit [Mon, 17 Aug 2020 15:46:42 +0000 (17:46 +0200)] 
Merge branch 'google-interns-2020' of https://github.com/collectd/collectd into google-interns-2020

4 years agoMerge pull request #3525 from collectd/revert-3523-google-interns-2020
Elene Margalitadze [Mon, 17 Aug 2020 15:38:24 +0000 (17:38 +0200)] 
Merge pull request #3525 from collectd/revert-3523-google-interns-2020

Revert "Integrate distribution metrics into collectd core"

4 years agoRevert "Integrate distribution metrics into collectd core: add new distribution_t... 3525/head
Elene Margalitadze [Mon, 17 Aug 2020 15:35:56 +0000 (17:35 +0200)] 
Revert "Integrate distribution metrics into collectd core: add new distribution_t value to metric_type_t enum, add distribution_t* to the value_t pointer, modify function metric_reset to call distribution_destroy when appropriate, add according documentation to metric.h. Modify metric_list_clone to call distribution_clone when appropriate."

This reverts commit ce53eb79ae455131e28c1869a28150e0c48cfad3.

4 years agoRevert "Formatted the code."
Elene Margalitadze [Mon, 17 Aug 2020 15:35:56 +0000 (17:35 +0200)] 
Revert "Formatted the code."

This reverts commit 6214e862a84bf9c6613b009bdc744fa040e6c872.

4 years agoRevert "Formatted the code."
Elene Margalitadze [Mon, 17 Aug 2020 15:35:56 +0000 (17:35 +0200)] 
Revert "Formatted the code."

This reverts commit 9948fdcad48786b45445eb3b85af24e1e22797e0.

4 years agoFormatted the code.
elene-margalit [Sun, 16 Aug 2020 17:31:16 +0000 (19:31 +0200)] 
Formatted the code.

4 years agoFormatted the code.
elene-margalit [Sun, 16 Aug 2020 17:30:13 +0000 (19:30 +0200)] 
Formatted the code.

4 years agoIntegrate distribution metrics into collectd core: add new distribution_t value to...
elene-margalit [Sun, 16 Aug 2020 17:18:28 +0000 (19:18 +0200)] 
Integrate distribution metrics into collectd core: add new distribution_t value to metric_type_t enum, add distribution_t* to the value_t pointer, modify function metric_reset to call distribution_destroy when appropriate, add according documentation to metric.h. Modify metric_list_clone to call distribution_clone when appropriate.

4 years agoAdded unit test for metric_reset.
elene-margalit [Mon, 17 Aug 2020 15:33:22 +0000 (17:33 +0200)] 
Added unit test for metric_reset.

4 years agoMerge pull request #3522 from Lana243/google-interns-2020
Svetlana Shmidt [Mon, 17 Aug 2020 15:11:03 +0000 (20:11 +0500)] 
Merge pull request #3522 from Lana243/google-interns-2020

Create a benchmark for the distribution

4 years agoMerge pull request #3524 from Lana243/project-sshmidt
Svetlana Shmidt [Mon, 17 Aug 2020 15:10:34 +0000 (20:10 +0500)] 
Merge pull request #3524 from Lana243/project-sshmidt

Add distribution data structure

4 years agofix distbench/Makefile.am 3522/head
Svetlana [Mon, 17 Aug 2020 13:18:43 +0000 (13:18 +0000)] 
fix distbench/Makefile.am

4 years agofix memory leaks in clone unit test 3524/head
Svetlana [Mon, 17 Aug 2020 13:06:35 +0000 (13:06 +0000)] 
fix memory leaks in clone unit test

4 years agofix Makefile.am
Svetlana [Mon, 17 Aug 2020 12:41:39 +0000 (12:41 +0000)] 
fix Makefile.am

4 years agoremove benchmark from Makefile
Svetlana [Mon, 17 Aug 2020 11:56:09 +0000 (11:56 +0000)] 
remove benchmark from Makefile

4 years agoremove benchmark csv files
Svetlana [Mon, 17 Aug 2020 11:53:11 +0000 (11:53 +0000)] 
remove benchmark csv files

4 years agoremove distribution benchmark as full benchmark was created in google-interns-2020...
Svetlana [Mon, 17 Aug 2020 11:31:54 +0000 (11:31 +0000)] 
remove distribution benchmark as full benchmark was created in google-interns-2020 branch

4 years agoFormatted the code. 3523/head
elene-margalit [Sun, 16 Aug 2020 17:31:16 +0000 (19:31 +0200)] 
Formatted the code.

4 years agoFormatted the code.
elene-margalit [Sun, 16 Aug 2020 17:30:13 +0000 (19:30 +0200)] 
Formatted the code.

4 years agoIntegrate distribution metrics into collectd core: add new distribution_t value to...
elene-margalit [Sun, 16 Aug 2020 17:18:28 +0000 (19:18 +0200)] 
Integrate distribution metrics into collectd core: add new distribution_t value to metric_type_t enum, add distribution_t* to the value_t pointer, modify function metric_reset to call distribution_destroy when appropriate, add according documentation to metric.h. Modify metric_list_clone to call distribution_clone when appropriate.

4 years agofix the redefinition of bucket_t data structure
Svetlana [Fri, 14 Aug 2020 11:30:53 +0000 (11:30 +0000)] 
fix the redefinition of bucket_t data structure

4 years agofix codestyle in distribution data structure
Svetlana [Fri, 14 Aug 2020 11:12:02 +0000 (11:12 +0000)] 
fix codestyle in distribution data structure

4 years agofix codestyle for the benchmark
Svetlana [Fri, 14 Aug 2020 10:55:29 +0000 (10:55 +0000)] 
fix codestyle for the benchmark

4 years agofix the codestyle
Svetlana [Fri, 14 Aug 2020 10:52:08 +0000 (10:52 +0000)] 
fix the codestyle

4 years agoMerge pull request #2 from Lana243/benchmark
Svetlana Shmidt [Fri, 14 Aug 2020 10:35:27 +0000 (15:35 +0500)] 
Merge pull request #2 from Lana243/benchmark

Benchmark

4 years agofull benchmark done
Svetlana [Thu, 13 Aug 2020 16:57:24 +0000 (16:57 +0000)] 
full benchmark done

4 years agoNANOS_PER_SEC fixed
Svetlana [Thu, 13 Aug 2020 15:33:29 +0000 (15:33 +0000)] 
NANOS_PER_SEC fixed

4 years agochange output style for benchmark
Svetlana [Thu, 13 Aug 2020 15:20:11 +0000 (15:20 +0000)] 
change output style for benchmark

4 years agoadd benchmark
Svetlana [Thu, 13 Aug 2020 15:17:36 +0000 (15:17 +0000)] 
add benchmark

4 years agofix header
Svetlana [Thu, 13 Aug 2020 10:38:02 +0000 (10:38 +0000)] 
fix header

4 years agofix implementations that way that they were compiled with new header
Svetlana [Thu, 13 Aug 2020 10:37:05 +0000 (10:37 +0000)] 
fix implementations that way that they were compiled with new header

4 years agoadd bkjg implementation
Svetlana Shmidt [Thu, 13 Aug 2020 10:01:28 +0000 (15:01 +0500)] 
add bkjg implementation

4 years agoadd margalit implementation
Svetlana Shmidt [Thu, 13 Aug 2020 10:00:01 +0000 (15:00 +0500)] 
add margalit implementation

4 years agoadd sshmidt implementation
Svetlana Shmidt [Thu, 13 Aug 2020 09:53:50 +0000 (14:53 +0500)] 
add sshmidt implementation

4 years agoRename function.h to distribution.h
Svetlana Shmidt [Thu, 13 Aug 2020 09:48:45 +0000 (14:48 +0500)] 
Rename function.h to distribution.h

4 years agoremove bucket_t definition from the header file
Svetlana Shmidt [Thu, 13 Aug 2020 09:46:29 +0000 (14:46 +0500)] 
remove bucket_t definition from the header file

4 years agoadd header file
Svetlana Shmidt [Thu, 13 Aug 2020 09:45:07 +0000 (14:45 +0500)] 
add header file

4 years agochange includes to collectd.h
Svetlana [Thu, 13 Aug 2020 09:36:34 +0000 (09:36 +0000)] 
change includes to collectd.h

4 years agochange benchmark
Svetlana [Wed, 12 Aug 2020 13:01:25 +0000 (13:01 +0000)] 
change benchmark

4 years agoadd unit test for clone function
Svetlana [Wed, 12 Aug 2020 12:53:17 +0000 (12:53 +0000)] 
add unit test for clone function

4 years agoadd mutexes
Svetlana [Wed, 12 Aug 2020 12:29:20 +0000 (12:29 +0000)] 
add mutexes

4 years agofix distribution clone function
Svetlana [Wed, 12 Aug 2020 11:57:34 +0000 (11:57 +0000)] 
fix distribution clone function