From: Mathieu Desnoyers Date: Thu, 14 May 2015 22:29:58 +0000 (-0400) Subject: Fix: missing statedump end event when block device listing available X-Git-Tag: v2.5.5~5 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d16e1d266350c80935a6624f5091aeb7c70b9135;p=lttng-modules.git Fix: missing statedump end event when block device listing available Incorrect handling of lttng_enumerate_block_devices() return value of 0 (which means "ok"), causing do_lttng_statedump() to return early. To causes missing "lttng_statedump_end" in traces where block device enumeration is available (CONFIG_KALLSYMS=y). Reported-by: Antoine Busque Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-statedump-impl.c b/lttng-statedump-impl.c index b525a815..2d567b3f 100644 --- a/lttng-statedump-impl.c +++ b/lttng-statedump-impl.c @@ -520,6 +520,8 @@ int do_lttng_statedump(struct lttng_session *session) return ret; ret = lttng_enumerate_block_devices(session); switch (ret) { + case 0: + break; case -ENOSYS: printk(KERN_WARNING "LTTng: block device enumeration is not supported by kernel\n"); break;