Make libncurses optional

During the configure, if ncurses is not detected, compile only the
textdump code and print an error if the user tries to use the GUI.
This will allow to create a package with only the textdump code for
platforms that don't have/want ncurses packages.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Handle sys_socket

Just set the filename to "socket" when we receive a sys_socket, we don't
have much more information at this point, but at least it gives the user
some information.

Reported-by: David Goulet <dgoulet@efficios.com>
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Free the filename on sys_close

We don't support yet all the syscalls that can return a FD, so we should
at least make sure that we don't reuse closed filenames.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Add missing headers for packaging

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Filter based on procname

Get rid of the filter based on the hostname since we don't have yet the
required context in LTTng, but replace it with a filter on the procname
(with follow-child support). This filter can be combined with the tid
filter list and executing a binary as well.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
option to test if the GUI is compiled in

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Import live error handling from Babeltrace

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Command to automatically create a local session with all the right parameters

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Command to create a live local session

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Fix: handling of the filename

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
lttngtop without arguments starts a local live trace

Get rid of the code trying to attach to a live mmap session, since the
support for this mode of operation is not going to enter anytime soon in
lttng-tools and babeltrace.

Instead, we try to create a live session on localhost with all the
required parameters and try to attach to it.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
fix: check tracing group before destroying the session

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
fix: unchecked pointer before strcmp

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
missing enable syscalls in create session

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
sync babeltrace headers

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
msg_waitall for now

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
don't seek begin

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
fix: parallel build dependency

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
babeltrace headers sync

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Fix lttngtop live

Babeltrace v1.2.0 minimum required now

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>