consumerd: add health instrumentation into threads
[lttng-tools.git] / src / common / consumer-timer.c
index b02ccbb115a9cdd6337f5214bcd49b8d268aed79..7ece0f6a54a37eb97084e8973cecc63c59b8b8e3 100644 (file)
@@ -472,12 +472,18 @@ void *consumer_timer_thread(void *data)
 
        health_register(health_consumerd, HEALTH_CONSUMERD_TYPE_METADATA_TIMER);
 
+       health_code_update();
+
        /* Only self thread will receive signal mask. */
        setmask(&mask);
        CMM_STORE_SHARED(timer_signal.tid, pthread_self());
 
        while (1) {
+               health_code_update();
+
+               health_poll_entry();
                signr = sigwaitinfo(&mask, &info);
+               health_poll_exit();
                if (signr == -1) {
                        if (errno != EINTR) {
                                PERROR("sigwaitinfo");
This page took 0.023596 seconds and 4 git commands to generate.