Fix: do not warn on unknown counter ioctl
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 8 Apr 2022 18:33:20 +0000 (14:33 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 8 Apr 2022 18:34:16 +0000 (14:34 -0400)
It is perfectly valid for a newer lttng-tools to try to use an unknown
ioctl and handle -ENOSYS.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ia9f6472ca1196f983eee1327805b0ad69d028a98

src/lttng-abi.c

index fa7eca6ff69109f5de3b6f93abe4b98ef299a68c..c3e676902d787fe88c84d0ef034930f169cd4372 100644 (file)
@@ -730,7 +730,6 @@ long lttng_counter_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
                return lttng_kernel_counter_clear(counter, indexes);
        }
        default:
-               WARN_ON_ONCE(1);
                return -ENOSYS;
        }
 }
This page took 0.026279 seconds and 4 git commands to generate.