diff --git a/utils/kernel.c b/utils/kernel.c index 0b08a67d0..fabe50fd7 100644 --- a/utils/kernel.c +++ b/utils/kernel.c @@ -615,10 +615,10 @@ int record_kernel_trace_pipe(struct uftrace_kernel_writer *kernel, int cpu, int if (n < 0) { if (errno == EINTR) goto retry; - if (errno == EAGAIN) + if (errno == EAGAIN || errno == ENODEV) return 0; - else - return -errno; + + return -errno; } if (n == 0)