From: Greg KH <gregkh@linuxfoundation.org>
To: Daniel Bristot de Oliveira <bristot@kernel.org>
Cc: Steven Rostedt <rostedt@goodmis.org>,
Masami Hiramatsu <mhiramat@kernel.org>,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH] tracing/timerlat: Move hrtimer_init to timerlat_fd open()
Date: Thu, 1 Feb 2024 07:44:31 -0800 [thread overview]
Message-ID: <2024020109-duffel-finally-4f0b@gregkh> (raw)
In-Reply-To: <7324dd3fc0035658c99b825204a66049389c56e3.1706798888.git.bristot@kernel.org>
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
next prev parent reply other threads:[~2024-02-01 15:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-01 15:13 [PATCH] tracing/timerlat: Move hrtimer_init to timerlat_fd open() Daniel Bristot de Oliveira
2024-02-01 15:20 ` kernel test robot
2024-02-01 15:25 ` Steven Rostedt
2024-02-01 15:27 ` Daniel Bristot de Oliveira
2024-02-01 15:44 ` Greg KH [this message]
2024-02-01 16:02 ` Daniel Bristot de Oliveira
2024-02-01 16:10 ` Steven Rostedt
2024-02-01 18:05 ` Greg KH
2024-02-01 18:08 ` Steven Rostedt
2024-02-01 18:12 ` Greg KH
2024-02-01 18:24 ` Steven Rostedt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2024020109-duffel-finally-4f0b@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=bristot@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=mhiramat@kernel.org \
--cc=rostedt@goodmis.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.