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:34 +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 864df6fc41d5f1ab393e078ec4aaa5beb55477b9..f8004e9b708a6a840b162a6fb6f99e70706aa444 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.027061 seconds and 4 git commands to generate.