Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1462175
| From | Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH v7 7/7] Restartable sequences: self-tests |
| Date | 2016-08-14 19:20 +0200 |
| Message-ID | <s67eN-2rP-3@gated-at.bofh.it> (permalink) |
| References | (3 earlier) <rYhXH-2zD-3@gated-at.bofh.it> <rYw0F-2FM-1@gated-at.bofh.it> <s57Ad-2eX-1@gated-at.bofh.it> <s5qtb-5XR-9@gated-at.bofh.it> <s5qWd-6qZ-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
----- On Aug 12, 2016, at 4:05 PM, Dave Watson davejwatson@fb.com wrote: >>>>> Would pairing one rseq_start with two rseq_finish do the trick >>>>> there ? >>>> >>>> Yes, two rseq_finish works, as long as the extra rseq management overhead >>>> is not substantial. >>> >>> I've added a commit implementing rseq_finish2() in my rseq volatile >>> dev branch. You can fetch it at: >>> >>> https://github.com/compudj/linux-percpu-dev/tree/rseq-fallback >>> >>> I also have a separate test and benchmark tree in addition to the >>> kernel selftests here: >>> >>> https://github.com/compudj/rseq-test >>> >>> I named the first write a "speculative" write, and the second write >>> the "final" write. >>> >>> Would you like to extend the test cases to cover your intended use-case ? >>> >> >>Hi Dave! >> >>I just pushed a rseq_finish2() test in my rseq-fallback branch. It implements >>a per-cpu buffer holding pointers, and pushes/pops items to/from it. >> >>To use it: >> >>cd tools/testing/selftests/rseq >>./param_test -T b >> >>(see -h for advanced usage) >> >>Let me know if I got it right! > FYI, I have started implementing rseq_finish_memcpy() and rseq_finish_memcpy_release(). The idea is to perform an inline memcpy as speculative writes before the final store (offset). I have pushed the work in progress in my dev branch. This would be an alternative to rseq_finish2() (which I still consider very useful) in cases where we want to push a sequence of bytes into a ring buffer before updating the offset counter, without having to rely on memory allocation. Feedback is welcome! Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [RFC PATCH v7 7/7] Restartable sequences: self-tests Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2016-08-12 01:30 +0200
Re: [RFC PATCH v7 7/7] Restartable sequences: self-tests Boqun Feng <boqun.feng@gmail.com> - 2016-08-12 03:30 +0200
Re: [RFC PATCH v7 7/7] Restartable sequences: self-tests Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2016-08-12 05:20 +0200
Re: [RFC PATCH v7 7/7] Restartable sequences: self-tests Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2016-08-12 05:20 +0200
Re: [RFC PATCH v7 7/7] Restartable sequences: self-tests Boqun Feng <boqun.feng@gmail.com> - 2016-08-12 07:40 +0200
Re: [RFC PATCH v7 7/7] Restartable sequences: self-tests Boqun Feng <boqun.feng@gmail.com> - 2016-08-12 18:40 +0200
Re: [RFC PATCH v7 7/7] Restartable sequences: self-tests Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2016-08-12 20:20 +0200
Re: [RFC PATCH v7 7/7] Restartable sequences: self-tests Boqun Feng <boqun.feng@gmail.com> - 2016-08-13 03:30 +0200
Re: [RFC PATCH v7 7/7] Restartable sequences: self-tests Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2016-08-14 17:10 +0200
Re: [RFC PATCH v7 7/7] Restartable sequences: self-tests Boqun Feng <boqun.feng@gmail.com> - 2016-08-15 03:00 +0200
Re: [RFC PATCH v7 7/7] Restartable sequences: self-tests Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2016-08-15 20:10 +0200
Re: [RFC PATCH v7 7/7] Restartable sequences: self-tests Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2016-08-12 21:40 +0200
Re: [RFC PATCH v7 7/7] Restartable sequences: self-tests Dave Watson <davejwatson@fb.com> - 2016-08-12 22:10 +0200
Re: [RFC PATCH v7 7/7] Restartable sequences: self-tests Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2016-08-14 19:20 +0200
csiph-web