Add return code to the testpoint mechanism
authorChristian Babeux <christian.babeux@efficios.com>
Thu, 13 Dec 2012 23:38:56 +0000 (18:38 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 14 Dec 2012 01:03:29 +0000 (20:03 -0500)
commit6993eeb37fb4caf9b92c09d4ab1730dcc2b8b097
tree601768c2274110291971d411a66c2c9539685eea
parent28d96b8c01104f96bb27b93bec0cd4a4a0532d21
Add return code to the testpoint mechanism

The testpoint processing could fail and currently there is no mechanism
to notify the caller of such failures. This patch adds an int return
code to the testpoint prototype. Non-zero return code indicate failure.

When using the testpoint mechanism, the caller should properly handle
testpoint failure cases and trigger the appropriate response (error
handling, thread teardown, etc.).

Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/main.c
src/common/testpoint/testpoint.h
tests/tools/health/health_exit.c
tests/tools/health/health_stall.c
This page took 0.025713 seconds and 4 git commands to generate.