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.6.2~9 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1131e49b78a76922bc605496a47f8b432ca1ea68;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 fcbdfa58..dddd34dd 100644 --- a/lttng-statedump-impl.c +++ b/lttng-statedump-impl.c @@ -522,6 +522,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;