Fix: use default agent channel name in disable event

Signed-off-by: David Goulet <dgoulet@efficios.com>
Fix: remove break in lttng cmdline session listing

This was causing to only list the first session with a "lttng list"
command.

Reported-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
sessiond: Add --extra-kmod-probes option

This patch adds the --extra-kmod-probes option to lttng-sessiond. The
LTTNG_EXTRA_KMOD_PROBES environment variable may also be used.

The option specifies a list of extra probe kernel modules to be loaded
(and unloaded) by lttng-sessiond. The list is appended to either the
default list or to the user-supplied --kmod-probes list.

This option is especially useful for kernel developers who need the
default LTTng kernel probes plus additional probes in order to
instrument their custom kernel or module. This becomes easy with
--extra-kmod-probes:

    lttng-sessiond --extra-kmod-probes=custom_subsys,other

would load all known and available LTTng kernel probes plus
lttng_probe_custom_subsys and lttng_probe_other.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
Fix: ignore error when loading optional kmod

This commit also improves the accuracy of debug messages: a module is
not "successfully" loaded when it's optional and actually not loaded.

Fixes: #837

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
[HEAD MERGE] Test: Add Java agent log4j and use new java agent

This adds the log4j java agent test.

It also moves the JUL test and build system to use the new UST java
agent jar.

FIXME: This commit still hardcode the path to log4j 1.2 jar file on an
Ubuntu system.

Signed-off-by: David Goulet <dgoulet@efficios.com>
[MERGE] add Java m4 macro and detect log4j in configure

Signed-off-by: David Goulet <dgoulet@efficios.com>
[MERGE] Use javaflags in buildsystem for classpath

Signed-off-by: David Goulet <dgoulet@efficios.com>