summaryrefslogtreecommitdiffstats
path: root/spawn
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 /spawn
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 'spawn')
-rw-r--r--spawn/spawn_server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/spawn/spawn_server.c b/spawn/spawn_server.c
index 342f2f1459..53b143deac 100644
--- a/spawn/spawn_server.c
+++ b/spawn/spawn_server.c
@@ -312,8 +312,8 @@ void spawn_server(void)
{
int error;
- test_clock_boottime();
- test_clock_monotonic_coarse();
+ // initialize the system clocks
+ clocks_init();
// close all open file descriptors, except the standard ones
// the caller may have left open files (lxc-attach has this issue)