]> git.baikalelectronics.ru Git - kernel.git/commit
ring-buffer: Add page_stamp to iterator for synchronization
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 17 Mar 2020 21:32:26 +0000 (17:32 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 19 Mar 2020 23:11:19 +0000 (19:11 -0400)
commitf178feb70d7133c55b9cb944959c6ad7e48c9b30
tree275503831fd1bda35539ca09e2e9d88360f32e0e
parent6cd53c4a6a6967fce384890856362e501867d2bd
ring-buffer: Add page_stamp to iterator for synchronization

Have the ring_buffer_iter structure contain a page_stamp, such that it can
be used to see if the writer entered the page the iterator is on. When going
to a new page, the iterator will record the time stamp of that page. When
reading events, it can copy the event to an internal buffer on the iterator
(to be implemented later), then check the page's time stamp with its own to
see if the writer entered the page. If so, it will need to try to read the
event again.

Link: http://lkml.kernel.org/r/20200317213416.163549674@goodmis.org
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ring_buffer.c