Fix enable syscall and bad value of poll set size
authorDavid Goulet <david.goulet@polymtl.ca>
Mon, 3 Oct 2011 18:46:40 +0000 (14:46 -0400)
committerDavid Goulet <david.goulet@polymtl.ca>
Mon, 3 Oct 2011 18:46:40 +0000 (14:46 -0400)
commit5f822d0a2688bb0b085b579dfc37a1958fff072e
tree229149298d45d0b7312b885f31737146708b2d11
parent7272acf55ec512708704dc5f1ad4f447e5b3ca8e
Fix enable syscall and bad value of poll set size

First, when enabling syscall tracing, on success 0 is return so we don't
add this value to the event list or else we were polling on fd 0 which
is not a valid event fd. A normal kernel create event, the fd of that
event is returned from the ioctl which is not the case for syscalls.

Second, the poll size was not reset when updating the kernel poll set so
at each kernel poll update, the value was not coherent with the real
poll size and thus creating unstable behavior (unknown).

This commit MIGHT fix a blocking problem happening when using a custom
channel and enabling syscall on it. This issue was reported by Julien
Desfossez <julien.desfossez@polymtl.ca>.

Signed-off-by: David Goulet <david.goulet@polymtl.ca>
include/lttng-kernel.h
ltt-sessiond/kernel-ctl.c
ltt-sessiond/main.c
ltt-sessiond/session.c
This page took 0.027636 seconds and 4 git commands to generate.