summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@netdata.cloud>2022-05-03 00:31:50 +0300
committerGitHub <noreply@github.com>2022-05-03 00:31:50 +0300
commit6bd2dcd29d469274c738d584e2c4cb0f8b6f3da4 (patch)
treec69c53986ef26e890951142e7db2d8facf5d1b29 /daemon
parent87c0cc2d6049c46f38b9c866668a0a24a3e962c0 (diff)
Trace rwlocks of netdata (#12785)
* with -DNETDATA_INTERNAL_CHECKS=1 enable rwlocks tracing * fix strings alignment on terminal * remove wrong addition * removed formating warning; now counting active locks per thread; tracing is enabled with -DNETDATA_TRACE_RWLOCKS=1 * added the missing netdata_mutex_destroy() * optimized clocks usage in locks * added also main * fixed formatting warning * add compiler warning when compiling with -DNETDATA_TRACE_RWLOCKS=1 * cleanup and documentation * fix for old variable * >= not just > to allow proper comparisons * dont print 0x twice and print the lock pointer on every line * trace locks deeper
Diffstat (limited to 'daemon')
-rw-r--r--daemon/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/daemon/main.c b/daemon/main.c
index c187789743..50d4fe417e 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -1087,8 +1087,9 @@ int main(int argc, char **argv) {
if(i > 0)
mallopt(M_ARENA_MAX, 1);
#endif
- test_clock_boottime();
- test_clock_monotonic_coarse();
+
+ // initialize the system clocks
+ clocks_init();
// prepare configuration environment variables for the plugins