Thread (10 messages) flat view 10 messages, 3 authors, 2024-02-01

Re: [PATCH] tracing/timerlat: Move hrtimer_init to timerlat_fd open()

From: Greg KH <gregkh@linuxfoundation.org>
Date: 2024-02-01 15:44:32
Also in: lkml, stable

On Thu, Feb 01, 2024 at 04:13:39PM +0100, Daniel Bristot de Oliveira wrote:
Currently, the timerlat's hrtimer is initialized at the first read of
timerlat_fd, and destroyed at close(). It works, but it causes an error
if the user program open() and close() the file without reading.
What error exactly happens?  Userspace, or the kernel crashes?

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help