Snapshot warning if there are no events in one of the domains
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 16 May 2016 05:20:47 +0000 (01:20 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 16 May 2016 05:34:59 +0000 (01:34 -0400)
commit75e3409c53b1ac22500d17ca99dd2e0f6b1c607a
treefb257022f7666af685541fa624bfe7b1e0184863
parent02208dd5299c595eacc62b1cfe6d00077d916513
Snapshot warning if there are no events in one of the domains

Remove the "no data" check from the UST snapshot code since

1) It would report that no data was recorded in the snapshot even
   if the kernel tracer had recorded events,
2) The kernel consumer does not seem to report such a condition,
   making it hard to perform the check without modifying the
   consumer.

The consumer interfaces could be modified to reliably provide
this information in the future.

However, this warning is not provided in the other tracing
modes, making its usefulness questionable. An empty snapshot is
still a valid trace and users should not always expect a trace
to contain events. Moreover, "warning" that no data was produced
implies an error may have occured and is probably as confusing
as opening an empty trace to the average user.

Fixes #1012

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/cmd.c
src/bin/lttng-sessiond/ust-app.c
This page took 0.024976 seconds and 4 git commands to generate.