rbd-replay: Add assertions

Signed-off-by: Adam Crume <adamcrume@gmail.com>
rbd-replay: Add --pool option

Signed-off-by: Adam Crume <adamcrume@gmail.com>
rbd-replay: Add --map-image option for image name mapping

Signed-off-by: Adam Crume <adamcrume@gmail.com>
lttng: Fix 'make check' by setting up fake HOME

If the HOME variable is not set, LTTng complains, and the extra output
fails to match what the tests expect, so they fail.

Signed-off-by: Adam Crume <adamcrume@gmail.com>
lttng: Disable LTTng by default, add --with-lttng configure option

Signed-off-by: Adam Crume <adamcrume@gmail.com>
lttng: Preload liblttng-ust-fork.so in TESTS_ENVIRONMENT

This adds LD_PRELOAD=liblttng-ust-fork.so to TESTS_ENVIRONMENT.
This prevents lttng from complaining when processes are forked.
The complaints otherwise taint the output and cause tests to fail.

Signed-off-by: Adam Crume <adamcrume@gmail.com>
Convert static libcommon library to dynamic libceph_common library

libcommon as a static library causes issues with LTTng, because it ends
up linked statically into both executables and dynamic libraries.
When the executables load the dynamic libraries, the same tracepoints
get loaded twice, and LTTng aborts the process.  This is why libcommon
was changed to a dynamic library.

libcommon was renamed to libceph_common because it will now be an
installed library, and the name libcommon is too generic and prone to
clashes.  The new installed library will probably require packaging
changes in the future.

Many test outputs (*.t) were modified to change "toolname: <msg>" to
"*toolname: <msg> (glob)".  Now that libcommon is a dynamic library,
many tools which previously did not rely on any Ceph dynamic libraries
changed from being invoked directly in tests to being invoked through a
libtool-generated script, which changed argv[0] in the program, which
changed the program's output.

Signed-off-by: Adam Crume <adamcrume@gmail.com>