This is a series of fixes to the lttng-tools tests to properly
teardown on ctrl-c. It also changes the uses of select() to
the lttng poll compat layer.
Thanks,
Mathieu
Mathieu Desnoyers (9):
Improve handling of test SIGTERM/SIGINT
Fix: tests: error handling in high throughput limits test
F
The select(2) system call is an ancient ABI limited to processes
containing at most FD_SETSIZE file descriptors overall (typically
1024).
This select call will fail if the target file descriptor is above
FD_SETSIZE in a session daemon containing many file descriptors.
This is unlikely to happen in
perl prove closes its child pipes before giving it a chance to execute
the signal trap handler. This means the child will not be able to
complete execution of the trap handler if that handler writes to stdout
or stderr.
Work-around this situation by redirecting stdin, stdout, and stderr
to /dev/nu
The current state of signal handling for test scripts is: on
SIGTERM/SIGINT of the tests (e.g. a CTRL-C on the console), session
daemon and relay daemon are killed with SIGKILL, thus leaking all their
resources, and leaving lttng kernel modules loaded.
Revamp the "stop" functions to take a signal
Scripts implementing their own trap handlers override the generic
one provided by utils.sh (full_cleanup). Invoke it at the end of
the handlers to provide the utils cleanup as well.
Moreover, change use of "rmmod" to "modprobe -r", which is better
in trap handlers because it does not print errors
The select(2) system call is an ancient ABI limited to processes
containing at most FD_SETSIZE file descriptors overall (typically
1024).
Those notification APIs will fail if the target file descriptor
is above FD_SETSIZE in a process containing many file descriptors.
Never use select, use the lt
Signed-off-by: Mathieu Desnoyers
---
tests/utils/utils.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh
index b8ac88c1..42e78d25 100644
--- a/tests/utils/utils.sh
+++ b/tests/utils/utils.sh
@@ -66,6 +66,7 @@ function full_cleanup ()
# The
Each individual call to "tc" should be checked for error, else we
may fail to catch specific tc errors caused, for instance, by a
kernel configuration that only contains some of the required
class modules.
Also, invoke the utils.sh full_cleanup function from the script-specific
interrupt_cleanup t
Some use of the epoll/poll wrapper require interruption
by signals to make the poll call return -1, errno EINTR.
Expose a new lttng_poll_wait_interruptible API for this
purpose.
Signed-off-by: Mathieu Desnoyers
CC: Yannick Lamarre
---
src/common/compat/compat-epoll.c | 9 +
src/common/
Signed-off-by: Mathieu Desnoyers
---
tests/regression/tools/live/test_lttng_ust | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tests/regression/tools/live/test_lttng_ust
b/tests/regression/tools/live/test_lttng_ust
index 06017d01..830fc783 100755
--- a/tests/regression/too
Hi everyone!
We are happy to announce the release of Babeltrace 2.0.0-pre5.
What's new since pre4?
--
- New features
-- Trace merging
It is now possible to merge CTF traces that share the same UUID to a
single CTF trace. This is especially useful when combined with the
trac
11 matches
Mail list logo