Project

General

Profile

Actions

Bug #411

closed

health check reporting should use TLS

Added by Mathieu Desnoyers almost 12 years ago. Updated almost 12 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
Start date:
12/13/2012
Due date:
% Done:

100%

Estimated time:

Description

In order to be able to put health check reporting into code shared between threads, we should use TLS variables to store the status (counters), and register those memory areas through a "register" method called at beginning of thread life, and unregister method called at unregister.

As a side-benefit, this will ensure that a thread never updates the health check counter of another thread by mistake, and therefore removes a risk of programming error that would prevent detection of health state of some threads.


Related issues 1 (0 open1 closed)

Related to LTTng-tools - Bug #428: SessionD occasionally returns error for lttng_health_check (LTTNG_HEALTH_CMD)ResolvedDavid Goulet01/23/2013

Actions
Actions

Also available in: Atom PDF