Rename and export lib kernel consumer The old liblttkconsumerd is renamed to liblttngkconsumerd and exported publicly having the public header "lttng/lttng-kconsumerd.h". To link with this library, use -llttngkconsumerd. Every public functions now begins with the "lttng_" prefix to fit the lttng public namespace. Comments are changed also to fit 80 lines standard and the rest of the git tree comments. This complete renaming was motivated by the new tool made by Julien Desfossez called 'lttngtop' which uses the kernel consumer library to create a custom consumer. More works will add consumers in the lttv and babeltrace projects. Please see lttng.org to learn about lttngtop. Signed-off-by: David Goulet <david.goulet@polymtl.ca>
Privatize lttng-sessiond-comm With the intent of keeping libust, which is really an instrumentation library, stand-alone, we prefer not to make it depend on a library from the lttng-tools tree. Therefore, we privatize lttng-sessiond-comm, and both package will interact through a communication protocol rather than a shared library. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Don't quit when all FD hang up We now wait for the STOP command to exit the polling thread. When we receive this command and all FD has hung up (all data is consumed) then we can exit cleanly. We also close every fd as soon as they report an error. Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>