mbox series

[0/2] libtracefs: Fixups to tracefs_cpu_stop()

Message ID 20230105215252.224044-1-rostedt@goodmis.org (mailing list archive)
Headers show
Series libtracefs: Fixups to tracefs_cpu_stop() | expand

Message

Steven Rostedt Jan. 5, 2023, 9:52 p.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

Working on trace-cmd stream, there were some issues with stopping the
recorders, as they were getting stuck in the read state. It appears that
tracefs_cpu_stop() doesn't guarantee that the readers are awake. Until it can
be straiten out, always tell the callers that there needs to be a nudge to the
readers (ie. a signal).

Steven Rostedt (Google) (2):
  libtracefs: Have tracefs_cpu_stop() do nothing only with PERM_NONBLOCK
  libtracefs: Have tracefs_cpu_stop() always suggesting nudging

 src/tracefs-record.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)